<< lib/java/javax/swing/text/StyleContext.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.text.StyleContext. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class StyleContext { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 8704; String metaAuthor = "Oracle / OpenJDK"; String metaDate = "2026-10-16"; String metaCopyright = "GPLv2 with Classpath Exception (OpenJDK)"; String metaTrademark = "Java"; String metaCorporation = "Oracle Corporation"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-09-29"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "OpenJDK (JDK 28 API)"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } String javaType = "javax.swing.text.StyleContext"; String typeName() { return javaType; } boolean available() { return javaType != ""; } String construct() { return "java.construct:" + javaType; } String invoke(String operation) { return "java.invoke:" + javaType + ":" + operation; } String invokeStatic(String operation) { return "java.static:" + javaType + ":" + operation; } < ---- BEGIN java declarations (generated by tools/jdk_api_declare.py) ---- > < constants and static fields (values reflected from the JDK) > static final String DEFAULT_STYLE = "default"; < ---- END java declarations ---- > < ---- BEGIN java signatures (generated by tools/jdk_api_signatures.py) ---- > << Exact Java signatures (from the JDK). A method body that is not yet SLeeLa logic throws: AbstractMethodError for an abstract method, else UnsupportedOperationException naming the Java signature. >> public java.lang.String toString() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.toString()"); } public void writeAttributes(java.io.ObjectOutputStream out, javax.swing.text.AttributeSet a) throws java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.writeAttributes(java.io.ObjectOutputStream, javax.swing.text.AttributeSet)"); } public void readAttributes(java.io.ObjectInputStream in, javax.swing.text.MutableAttributeSet a) throws java.lang.ClassNotFoundException, java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.readAttributes(java.io.ObjectInputStream, javax.swing.text.MutableAttributeSet)"); } public synchronized javax.swing.text.AttributeSet addAttribute(javax.swing.text.AttributeSet old, java.lang.Object name, java.lang.Object value) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.addAttribute(javax.swing.text.AttributeSet, java.lang.Object, java.lang.Object)"); } public javax.swing.text.Style getStyle(java.lang.String nm) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getStyle(java.lang.String)"); } public synchronized javax.swing.text.AttributeSet addAttributes(javax.swing.text.AttributeSet old, javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.addAttributes(javax.swing.text.AttributeSet, javax.swing.text.AttributeSet)"); } public java.awt.Color getForeground(javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getForeground(javax.swing.text.AttributeSet)"); } public java.awt.Color getBackground(javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getBackground(javax.swing.text.AttributeSet)"); } @JavaProtected javax.swing.text.StyleContext.SmallAttributeSet createSmallAttributeSet(javax.swing.text.AttributeSet a) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.createSmallAttributeSet(javax.swing.text.AttributeSet)"); } @JavaProtected javax.swing.text.MutableAttributeSet createLargeAttributeSet(javax.swing.text.AttributeSet a) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.createLargeAttributeSet(javax.swing.text.AttributeSet)"); } @JavaProtected int getCompressionThreshold() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getCompressionThreshold()"); } public void reclaim(javax.swing.text.AttributeSet a) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.reclaim(javax.swing.text.AttributeSet)"); } public static void writeAttributeSet(java.io.ObjectOutputStream out, javax.swing.text.AttributeSet a) throws java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.writeAttributeSet(java.io.ObjectOutputStream, javax.swing.text.AttributeSet)"); } public static void readAttributeSet(java.io.ObjectInputStream in, javax.swing.text.MutableAttributeSet a) throws java.lang.ClassNotFoundException, java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.readAttributeSet(java.io.ObjectInputStream, javax.swing.text.MutableAttributeSet)"); } public static void registerStaticAttributeKey(java.lang.Object key) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.registerStaticAttributeKey(java.lang.Object)"); } public static final javax.swing.text.StyleContext getDefaultStyleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getDefaultStyleContext()"); } public java.util.Enumeration getStyleNames() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getStyleNames()"); } public javax.swing.text.AttributeSet getEmptySet() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getEmptySet()"); } public static java.lang.Object getStaticAttribute(java.lang.Object key) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getStaticAttribute(java.lang.Object)"); } public static java.lang.Object getStaticAttributeKey(java.lang.Object key) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getStaticAttributeKey(java.lang.Object)"); } public synchronized javax.swing.text.AttributeSet removeAttribute(javax.swing.text.AttributeSet old, java.lang.Object name) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.removeAttribute(javax.swing.text.AttributeSet, java.lang.Object)"); } public synchronized javax.swing.text.AttributeSet removeAttributes(javax.swing.text.AttributeSet old, javax.swing.text.AttributeSet attrs) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.removeAttributes(javax.swing.text.AttributeSet, javax.swing.text.AttributeSet)"); } public javax.swing.text.Style addStyle(java.lang.String nm, javax.swing.text.Style parent) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.addStyle(java.lang.String, javax.swing.text.Style)"); } public void removeStyle(java.lang.String nm) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.removeStyle(java.lang.String)"); } public java.awt.FontMetrics getFontMetrics(java.awt.Font f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getFontMetrics(java.awt.Font)"); } public void removeChangeListener(javax.swing.event.ChangeListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.removeChangeListener(javax.swing.event.ChangeListener)"); } public void addChangeListener(javax.swing.event.ChangeListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.addChangeListener(javax.swing.event.ChangeListener)"); } public javax.swing.event.ChangeListener[] getChangeListeners() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getChangeListeners()"); } public java.awt.Font getFont(java.lang.String family, int style, int size) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getFont(java.lang.String, int, int)"); } public java.awt.Font getFont(javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.getFont(javax.swing.text.AttributeSet)"); } < ---- END java signatures ---- > < ---- BEGIN java constructors (generated by tools/jdk_api_signatures.py) ---- > << Exact Java constructor signatures (from the JDK). Overload resolution binds a call by arity, then best type match. Each body throws UnsupportedOperationException until its SLeeLa logic is written. >> public StyleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.StyleContext.()"); } < ---- END java constructors ---- > }