<< lib/java/javax/swing/JList.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.JList. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class JList { < ---- 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 = 5000; 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.JList"; 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.JList 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 heldUIClassID; int heldAnchorSelectionIndex; int heldLeadSelectionIndex; int heldMinSelectionIndex; int heldMaxSelectionIndex; int heldLayoutOrientation; int heldSelectionMode; int heldFixedCellWidth; int heldFixedCellHeight; int heldFirstVisibleIndex; int heldLastVisibleIndex; boolean heldValueIsAdjusting; int heldSelectedIndex; boolean heldDragEnabled; boolean heldScrollableTracksViewportWidth; boolean heldScrollableTracksViewportHeight; boolean heldSelectionEmpty; int heldVisibleRowCount; public JList() { this.heldUIClassID = "ListUI"; this.heldAnchorSelectionIndex = -1; this.heldLeadSelectionIndex = -1; this.heldMinSelectionIndex = -1; this.heldMaxSelectionIndex = -1; this.heldLayoutOrientation = 0; this.heldSelectionMode = 2; this.heldFixedCellWidth = -1; this.heldFixedCellHeight = -1; this.heldFirstVisibleIndex = -1; this.heldLastVisibleIndex = -1; this.heldValueIsAdjusting = false; this.heldSelectedIndex = -1; this.heldDragEnabled = false; this.heldScrollableTracksViewportWidth = false; this.heldScrollableTracksViewportHeight = false; this.heldSelectionEmpty = true; this.heldVisibleRowCount = 8; } public java.lang.String getUIClassID() { return this.heldUIClassID; } public int getAnchorSelectionIndex() { return this.heldAnchorSelectionIndex; } public int getLeadSelectionIndex() { return this.heldLeadSelectionIndex; } public int getMinSelectionIndex() { return this.heldMinSelectionIndex; } public int getMaxSelectionIndex() { return this.heldMaxSelectionIndex; } public int getLayoutOrientation() { return this.heldLayoutOrientation; } public int getSelectionMode() { return this.heldSelectionMode; } public int getFixedCellWidth() { return this.heldFixedCellWidth; } public int getFixedCellHeight() { return this.heldFixedCellHeight; } public int getFirstVisibleIndex() { return this.heldFirstVisibleIndex; } public int getLastVisibleIndex() { return this.heldLastVisibleIndex; } public boolean getValueIsAdjusting() { return this.heldValueIsAdjusting; } public int getSelectedIndex() { return this.heldSelectedIndex; } public boolean getDragEnabled() { return this.heldDragEnabled; } public boolean getScrollableTracksViewportWidth() { return this.heldScrollableTracksViewportWidth; } public boolean getScrollableTracksViewportHeight() { return this.heldScrollableTracksViewportHeight; } public boolean isSelectionEmpty() { return this.heldSelectionEmpty; } public int getVisibleRowCount() { return this.heldVisibleRowCount; } < ---- 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 VERTICAL = 0; static final int VERTICAL_WRAP = 1; static final int HORIZONTAL_WRAP = 2; < ---- 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 java.lang.String paramString() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.paramString()"); } public void updateUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.updateUI()"); } public void setSelectionModel(javax.swing.ListSelectionModel selectionModel) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectionModel(javax.swing.ListSelectionModel)"); } public void setUI(javax.swing.plaf.ListUI ui) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setUI(javax.swing.plaf.ListUI)"); } public javax.swing.plaf.ListUI getUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getUI()"); } public javax.swing.ListSelectionModel getSelectionModel() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectionModel()"); } public java.lang.String getToolTipText(java.awt.event.MouseEvent event) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getToolTipText(java.awt.event.MouseEvent)"); } public void setCellRenderer(javax.swing.ListCellRenderer cellRenderer) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setCellRenderer(javax.swing.ListCellRenderer)"); } public void setSelectionInterval(int anchor, int lead) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectionInterval(int, int)"); } public void addSelectionInterval(int anchor, int lead) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.addSelectionInterval(int, int)"); } public void removeSelectionInterval(int index0, int index1) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.removeSelectionInterval(int, int)"); } public void setVisibleRowCount(int visibleRowCount) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setVisibleRowCount(int)"); } public int getNextMatch(java.lang.String prefix, int startIndex, javax.swing.text.Position.Bias bias) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getNextMatch(java.lang.String, int, javax.swing.text.Position.Bias)"); } public void setSelectionMode(int selectionMode) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectionMode(int)"); } public int[] getSelectedIndices() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectedIndices()"); } public boolean isSelectedIndex(int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.isSelectedIndex(int)"); } public void removeListSelectionListener(javax.swing.event.ListSelectionListener listener) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.removeListSelectionListener(javax.swing.event.ListSelectionListener)"); } public void addListSelectionListener(javax.swing.event.ListSelectionListener listener) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.addListSelectionListener(javax.swing.event.ListSelectionListener)"); } public java.awt.Color getSelectionForeground() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectionForeground()"); } public void setSelectionForeground(java.awt.Color selectionForeground) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectionForeground(java.awt.Color)"); } public java.awt.Color getSelectionBackground() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectionBackground()"); } public void setSelectionBackground(java.awt.Color selectionBackground) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectionBackground(java.awt.Color)"); } public void setSelectedIndex(int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectedIndex(int)"); } public javax.swing.ListCellRenderer getCellRenderer() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getCellRenderer()"); } public void setDragEnabled(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setDragEnabled(boolean)"); } public final void setDropMode(javax.swing.DropMode dropMode) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setDropMode(javax.swing.DropMode)"); } public final javax.swing.DropMode getDropMode() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getDropMode()"); } public final javax.swing.JList.DropLocation getDropLocation() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getDropLocation()"); } public java.awt.Dimension getPreferredScrollableViewportSize() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getPreferredScrollableViewportSize()"); } public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getScrollableUnitIncrement(java.awt.Rectangle, int, int)"); } public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getScrollableBlockIncrement(java.awt.Rectangle, int, int)"); } public void setValueIsAdjusting(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setValueIsAdjusting(boolean)"); } public javax.swing.ListModel getModel() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getModel()"); } public void clearSelection() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.clearSelection()"); } public void setModel(javax.swing.ListModel model) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setModel(javax.swing.ListModel)"); } @JavaProtected javax.swing.ListSelectionModel createSelectionModel() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.createSelectionModel()"); } public E getPrototypeCellValue() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getPrototypeCellValue()"); } public int locationToIndex(java.awt.Point location) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.locationToIndex(java.awt.Point)"); } public java.awt.Rectangle getCellBounds(int index0, int index1) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getCellBounds(int, int)"); } public void setSelectedIndices(int[] indices) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectedIndices(int[])"); } public java.awt.Point indexToLocation(int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.indexToLocation(int)"); } public E getSelectedValue() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectedValue()"); } public void ensureIndexIsVisible(int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.ensureIndexIsVisible(int)"); } public void setPrototypeCellValue(E prototypeCellValue) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setPrototypeCellValue(E)"); } public void setFixedCellWidth(int width) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setFixedCellWidth(int)"); } public void setFixedCellHeight(int height) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setFixedCellHeight(int)"); } public void setLayoutOrientation(int layoutOrientation) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setLayoutOrientation(int)"); } public void setListData(java.util.Vector listData) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setListData(java.util.Vector)"); } public void setListData(E[] listData) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setListData(E[])"); } @JavaProtected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.fireSelectionValueChanged(int, int, boolean)"); } public javax.swing.event.ListSelectionListener[] getListSelectionListeners() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getListSelectionListeners()"); } public java.lang.Object[] getSelectedValues() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectedValues()"); } public java.util.List getSelectedValuesList() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getSelectedValuesList()"); } public void setSelectedValue(java.lang.Object anObject, boolean shouldScroll) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.setSelectedValue(java.lang.Object, boolean)"); } public javax.accessibility.AccessibleContext getAccessibleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.getAccessibleContext()"); } < ---- 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 JList(java.util.Vector listData) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.(java.util.Vector)"); } public JList(E[] listData) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JList.(E[])"); } < ---- END java constructors ---- > }