<< lib/java/javax/swing/text/DefaultStyledDocument.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.text.DefaultStyledDocument. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class DefaultStyledDocument { < ---- 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 = 3119; 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.DefaultStyledDocument"; 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 int BUFFER_SIZE_DEFAULT = 4096; < public and protected instance fields > Any buffer; < ---- 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. >> @JavaProtected void insert(int offset, javax.swing.text.DefaultStyledDocument.ElementSpec[] data) throws javax.swing.text.BadLocationException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.insert(int, javax.swing.text.DefaultStyledDocument.ElementSpec[])"); } @JavaProtected void create(javax.swing.text.DefaultStyledDocument.ElementSpec[] data) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.create(javax.swing.text.DefaultStyledDocument.ElementSpec[])"); } public javax.swing.text.Style getStyle(java.lang.String nm) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.getStyle(java.lang.String)"); } public java.awt.Color getForeground(javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.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.DefaultStyledDocument.getBackground(javax.swing.text.AttributeSet)"); } public java.util.Enumeration getStyleNames() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.getStyleNames()"); } @JavaProtected javax.swing.text.AbstractDocument.AbstractElement createDefaultRoot() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.createDefaultRoot()"); } public javax.swing.text.Element getDefaultRootElement() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.getDefaultRootElement()"); } public javax.swing.text.Element getParagraphElement(int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.getParagraphElement(int)"); } public void setCharacterAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.setCharacterAttributes(int, int, javax.swing.text.AttributeSet, boolean)"); } @JavaProtected void insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent chng, javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AttributeSet)"); } @JavaProtected void removeUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent chng) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.removeUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)"); } public void removeElement(javax.swing.text.Element elem) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.removeElement(javax.swing.text.Element)"); } 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.DefaultStyledDocument.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.DefaultStyledDocument.removeStyle(java.lang.String)"); } public void setLogicalStyle(int pos, javax.swing.text.Style s) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.setLogicalStyle(int, javax.swing.text.Style)"); } public javax.swing.text.Style getLogicalStyle(int p) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.getLogicalStyle(int)"); } public void setParagraphAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.setParagraphAttributes(int, int, javax.swing.text.AttributeSet, boolean)"); } public void removeDocumentListener(javax.swing.event.DocumentListener listener) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.removeDocumentListener(javax.swing.event.DocumentListener)"); } public void addDocumentListener(javax.swing.event.DocumentListener listener) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.addDocumentListener(javax.swing.event.DocumentListener)"); } @JavaProtected void styleChanged(javax.swing.text.Style style) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.styleChanged(javax.swing.text.Style)"); } public javax.swing.text.Element getCharacterElement(int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.getCharacterElement(int)"); } public java.awt.Font getFont(javax.swing.text.AttributeSet attr) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.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 DefaultStyledDocument() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.()"); } public DefaultStyledDocument(javax.swing.text.StyleContext styles) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.(javax.swing.text.StyleContext)"); } public DefaultStyledDocument(javax.swing.text.AbstractDocument.Content c, javax.swing.text.StyleContext styles) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.text.DefaultStyledDocument.(javax.swing.text.AbstractDocument.Content, javax.swing.text.StyleContext)"); } < ---- END java constructors ---- > }