<< lib/java/javax/swing/border/TitledBorder.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.border.TitledBorder. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class TitledBorder { < ---- 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 = 9163; 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.border.TitledBorder"; 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 implementation ---- > < ---- javax.swing.border.TitledBorder accessor contract (generated by tools/jdk_api_accessors.py) ---- > << State and accessors whose behavior was observed on the JDK by tools/ApiAccessorProbe.java: getters returning a constructor argument, the initial state of a property, and setter / getter round trips, for every probed constructor that determines all of that state. Methods beyond these keep their exact-signature stubs. >> String heldTitle; boolean heldBorderOpaque; int heldTitlePosition; int heldTitleJustification; public TitledBorder(java.lang.String title) { this.heldTitle = title; this.heldBorderOpaque = false; this.heldTitlePosition = 0; this.heldTitleJustification = 4; } public java.lang.String getTitle() { return this.heldTitle; } public boolean isBorderOpaque() { return this.heldBorderOpaque; } public int getTitlePosition() { return this.heldTitlePosition; } public int getTitleJustification() { return this.heldTitleJustification; } public void setTitle(java.lang.String title) { this.heldTitle = title; } < ---- END java implementation ---- > < ---- BEGIN java declarations (generated by tools/jdk_api_declare.py) ---- > < constants and static fields (values reflected from the JDK) > static final int DEFAULT_POSITION = 0; static final int ABOVE_TOP = 1; static final int TOP = 2; static final int BELOW_TOP = 3; static final int ABOVE_BOTTOM = 4; static final int BOTTOM = 5; static final int BELOW_BOTTOM = 6; static final int DEFAULT_JUSTIFICATION = 0; static final int LEFT = 1; static final int CENTER = 2; static final int RIGHT = 3; static final int LEADING = 4; static final int TRAILING = 5; static int EDGE_SPACING = 0; static int TEXT_SPACING = 0; static int TEXT_INSET_H = 0; < public and protected instance fields > String title; Any border; int titlePosition; int titleJustification; Any titleFont; Any titleColor; < ---- 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 void setBorder(javax.swing.border.Border border) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.setBorder(javax.swing.border.Border)"); } public java.awt.Dimension getMinimumSize(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getMinimumSize(java.awt.Component)"); } public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)"); } public javax.swing.border.Border getBorder() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getBorder()"); } public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getBorderInsets(java.awt.Component, java.awt.Insets)"); } public int getBaseline(java.awt.Component c, int width, int height) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getBaseline(java.awt.Component, int, int)"); } public java.awt.Component.BaselineResizeBehavior getBaselineResizeBehavior(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getBaselineResizeBehavior(java.awt.Component)"); } public void setTitleJustification(int titleJustification) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.setTitleJustification(int)"); } public void setTitlePosition(int titlePosition) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.setTitlePosition(int)"); } public java.awt.Font getTitleFont() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getTitleFont()"); } public java.awt.Color getTitleColor() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getTitleColor()"); } public void setTitleFont(java.awt.Font titleFont) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.setTitleFont(java.awt.Font)"); } public void setTitleColor(java.awt.Color titleColor) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.setTitleColor(java.awt.Color)"); } @JavaProtected java.awt.Font getFont(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.getFont(java.awt.Component)"); } < ---- 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 TitledBorder(javax.swing.border.Border border, java.lang.String title, int titleJustification, int titlePosition, java.awt.Font titleFont, java.awt.Color titleColor) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font, java.awt.Color)"); } public TitledBorder(javax.swing.border.Border border, java.lang.String title, int titleJustification, int titlePosition, java.awt.Font titleFont) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font)"); } public TitledBorder(javax.swing.border.Border border, java.lang.String title, int titleJustification, int titlePosition) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.(javax.swing.border.Border, java.lang.String, int, int)"); } public TitledBorder(javax.swing.border.Border border, java.lang.String title) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.border.TitledBorder.(javax.swing.border.Border, java.lang.String)"); } < ---- END java constructors ---- > }