AbstractButton.sleela
lib/java/jdk-28/java.desktop/javax/swing/AbstractButton.sleela · 313 line(s) · sleela
<< lib/java/jdk-28/java.desktop/javax/swing/AbstractButton.sleela
SLeeLa file for the Java type javax.swing.AbstractButton (module java.desktop). One Java type, one SLeeLa file.
Java Source (JDK 28 API): https://download.java.net/java/early_access/jdk28/docs/api/java.desktop/javax/swing/AbstractButton.html
Java kind: class; extends javax.swing.JComponent; implements java.awt.ItemSelectable, javax.swing.SwingConstants
Status: members from the JDK 28 API (exact signatures).
The SLeeLa functions here are produced from that Java Source. No Java source text is copied. >>
#sleela 3.0
material;
class AbstractButton extends JComponent {
< ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- >
<< Eleven catalogued attributes with getter/setter pairs. Values are faithful
to the real origin of the Java type: the Java SE / JDK 28 API by Oracle
and the OpenJDK community. >>
String metaVersion = "1.0.0";
int metaId = 1036;
String metaAuthor = "Oracle / OpenJDK";
String metaDate = "2026-11-12";
String metaCopyright = "GPLv2 with Classpath Exception (OpenJDK)";
String metaTrademark = "Java";
String metaCorporation = "Oracle Corporation";
< metaOrigin: National | <nation> | International | Galactic >
String metaOrigin = "International";
String metaBirthDate = "2026-11-12";
< metaScienceRating: maturity/robustness on a 1..10 scale >
int metaScienceRating = 9;
< metaNationalSchedule: a real, citable instrument or "none" >
String metaNationalSchedule = "Java SE 28 API Specification (JDK 28 early access)";
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.AbstractButton";
String javaModule = "java.desktop";
String javaSource = "https://download.java.net/java/early_access/jdk28/docs/api/java.desktop/javax/swing/AbstractButton.html";
String javaKind = "class";
String javaSuper = "javax.swing.JComponent";
< ---- generics (SLeeLa erasure, SLEELA.syntax 16.3 and 38.1) ---- >
<< The class is written without Java type parameters: every type variable and
every parameterized or package-qualified reference type erases to Any, and
java.lang.String erases to String. A value of a type parameter travels as
Any; test it with instanceof and cast it where it is used. The Java type
parameters are kept as data in JAVA_TYPE_PARAMETERS. An instance may record
the type arguments its caller means with bindGenericTypeArguments (for an
ArrayList of String, bind the single name java.lang.String). Nothing is
checked against them at run time. >>
static final String JAVA_TYPE_PARAMETERS = "";
String[] genericTypeArguments = new String[0];
public static String genericTypeParameters() { return JAVA_TYPE_PARAMETERS; }
public static int genericTypeParameterCount() { return 0; }
public static String genericTypeParameterName(int index) { return null; }
public AbstractButton bindGenericTypeArguments(String[] arguments) { if (arguments == null) { this.genericTypeArguments = new String[0]; } else { this.genericTypeArguments = arguments; } return this; }
public String genericTypeArgument(int index) { if (index < 0 || index >= arrayLength(genericTypeArguments)) { return null; } return genericTypeArguments[index]; }
public int genericTypeArgumentCount() { return arrayLength(genericTypeArguments); }
< ---- BEGIN java declarations (from the JDK 28 API) ---- >
< constants and static fields (values reflected from the JDK) >
static final String MODEL_CHANGED_PROPERTY = "model";
static final String TEXT_CHANGED_PROPERTY = "text";
static final String MNEMONIC_CHANGED_PROPERTY = "mnemonic";
static final String MARGIN_CHANGED_PROPERTY = "margin";
static final String VERTICAL_ALIGNMENT_CHANGED_PROPERTY = "verticalAlignment";
static final String HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY = "horizontalAlignment";
static final String VERTICAL_TEXT_POSITION_CHANGED_PROPERTY = "verticalTextPosition";
static final String HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY = "horizontalTextPosition";
static final String BORDER_PAINTED_CHANGED_PROPERTY = "borderPainted";
static final String FOCUS_PAINTED_CHANGED_PROPERTY = "focusPainted";
static final String ROLLOVER_ENABLED_CHANGED_PROPERTY = "rolloverEnabled";
static final String CONTENT_AREA_FILLED_CHANGED_PROPERTY = "contentAreaFilled";
static final String ICON_CHANGED_PROPERTY = "icon";
static final String PRESSED_ICON_CHANGED_PROPERTY = "pressedIcon";
static final String SELECTED_ICON_CHANGED_PROPERTY = "selectedIcon";
static final String ROLLOVER_ICON_CHANGED_PROPERTY = "rolloverIcon";
static final String ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY = "rolloverSelectedIcon";
static final String DISABLED_ICON_CHANGED_PROPERTY = "disabledIcon";
static final String DISABLED_SELECTED_ICON_CHANGED_PROPERTY = "disabledSelectedIcon";
< public and protected instance fields >
Any model;
Any changeListener;
Any actionListener;
Any itemListener;
Any changeEvent;
< ---- END java declarations ---- >
< ---- BEGIN java constructors (exact JDK 28 API signatures) ---- >
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
AbstractButton() { }
< ---- END java constructors ---- >
< ---- BEGIN java signatures (exact JDK 28 API signatures) ---- >
<< Not yet SLeeLa logic: each method returns the default value of its
Java return type. @throwable names what Java throws for it (abstract:
AbstractMethodError, else UnsupportedOperationException, plus the
declared throws). Write the logic from the Java Source above into the
java implementation block; the generator then drops the stub. >>
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void init(String text, Any icon) { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
String paramString() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public String getLabel() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public String getText() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setText(String text) { }
@throwable("java.lang.UnsupportedOperationException")
public void setEnabled(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public void updateUI() { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void paintBorder(Any g) { }
@throwable("java.lang.UnsupportedOperationException")
public void setUI(Any ui) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getUI() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public boolean isSelected() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public boolean isBorderPainted() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setSelected(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public void setBorderPainted(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public void setMargin(Any m) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getMargin() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setLabel(String label) { }
@throwable("java.lang.UnsupportedOperationException")
public void addActionListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public void setActionCommand(String actionCommand) { }
@throwable("java.lang.UnsupportedOperationException")
public void removeActionListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getActionListeners() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void addItemListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getSelectedObjects() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void removeItemListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getItemListeners() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getIcon() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getAction() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public boolean imageUpdate(Any img, int infoflags, int x, int y, int w, int h) { return false; }
@throwable("java.lang.UnsupportedOperationException")
public String getActionCommand() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public int getMnemonic() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void doClick() { }
@throwable("java.lang.UnsupportedOperationException")
public void doClick(int pressTime) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getModel() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setRolloverEnabled(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getDisabledIcon() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getSelectedIcon() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getDisabledSelectedIcon() { return null; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
int checkVerticalKey(int key, String exception) { return 0; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
int checkHorizontalKey(int key, String exception) { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public boolean isRolloverEnabled() { return false; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void configurePropertiesFromAction(Any a) { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
Any createActionPropertyChangeListener(Any a) { return null; }
@throwable("java.lang.UnsupportedOperationException")
public boolean getHideActionText() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setHideActionText(boolean hideActionText) { }
@throwable("java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException")
public void setDisplayedMnemonicIndex(int index) { }
@throwable("java.lang.UnsupportedOperationException")
public void setMnemonic(char mnemonic) { }
@throwable("java.lang.UnsupportedOperationException")
public void setMnemonic(int mnemonic) { }
@throwable("java.lang.UnsupportedOperationException")
public void setIcon(Any defaultIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public void removeChangeListener(Any l) { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
Any createChangeListener() { return null; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
Any createActionListener() { return null; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
Any createItemListener() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void addChangeListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public void setDisabledIcon(Any disabledIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public void setDisabledSelectedIcon(Any disabledSelectedIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public void setAction(Any a) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getPressedIcon() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getRolloverSelectedIcon() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getRolloverIcon() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setIconTextGap(int iconTextGap) { }
@throwable("java.lang.UnsupportedOperationException")
public void setContentAreaFilled(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public void setPressedIcon(Any pressedIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public void setSelectedIcon(Any selectedIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public void setRolloverIcon(Any rolloverIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public void setRolloverSelectedIcon(Any rolloverSelectedIcon) { }
@throwable("java.lang.UnsupportedOperationException")
public int getVerticalAlignment() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setVerticalAlignment(int alignment) { }
@throwable("java.lang.UnsupportedOperationException")
public int getHorizontalAlignment() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setHorizontalAlignment(int alignment) { }
@throwable("java.lang.UnsupportedOperationException")
public int getVerticalTextPosition() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setVerticalTextPosition(int textPosition) { }
@throwable("java.lang.UnsupportedOperationException")
public int getHorizontalTextPosition() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setHorizontalTextPosition(int textPosition) { }
@throwable("java.lang.UnsupportedOperationException")
public int getIconTextGap() { return 0; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void actionPropertyChanged(Any action, String propertyName) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean isFocusPainted() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setFocusPainted(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean isContentAreaFilled() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public int getDisplayedMnemonicIndex() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setMultiClickThreshhold(long threshold) { }
@throwable("java.lang.UnsupportedOperationException")
public long getMultiClickThreshhold() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setModel(Any newModel) { }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getChangeListeners() { return null; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void fireStateChanged() { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void fireActionPerformed(Any event) { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void fireItemStateChanged(Any event) { }
@throwable("java.lang.UnsupportedOperationException")
public void setLayout(Any mgr) { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void addImpl(Any comp, Any constraints, int index) { }
@throwable("java.lang.UnsupportedOperationException")
public void removeNotify() { }
< ---- END java signatures ---- >
}