<< lib/java/javax/swing/JMenu.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.JMenu. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class JMenu { < ---- 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 = 5036; 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.JMenu"; 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.JMenu 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; boolean heldPopupMenuVisible; int heldMenuComponentCount; boolean heldTopLevelMenu; int heldItemCount; int heldDelay; boolean heldSelected; public JMenu(java.lang.String s, boolean b) { this.heldUIClassID = "MenuUI"; this.heldPopupMenuVisible = false; this.heldMenuComponentCount = 0; this.heldTopLevelMenu = false; this.heldItemCount = 0; this.heldDelay = 200; this.heldSelected = false; } public JMenu(java.lang.String s) { this.heldUIClassID = "MenuUI"; this.heldPopupMenuVisible = false; this.heldMenuComponentCount = 0; this.heldTopLevelMenu = false; this.heldItemCount = 0; this.heldDelay = 200; this.heldSelected = false; } public JMenu() { this.heldUIClassID = "MenuUI"; this.heldPopupMenuVisible = false; this.heldMenuComponentCount = 0; this.heldTopLevelMenu = false; this.heldItemCount = 0; this.heldDelay = 200; this.heldSelected = false; } public java.lang.String getUIClassID() { return this.heldUIClassID; } public boolean isPopupMenuVisible() { return this.heldPopupMenuVisible; } public int getMenuComponentCount() { return this.heldMenuComponentCount; } public boolean isTopLevelMenu() { return this.heldTopLevelMenu; } public int getItemCount() { return this.heldItemCount; } public int getDelay() { return this.heldDelay; } public boolean isSelected() { return this.heldSelected; } < ---- END java implementation ---- > < ---- BEGIN java declarations (generated by tools/jdk_api_declare.py) ---- > < public and protected instance fields > Any popupListener; < ---- 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 remove(int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.remove(int)"); } public void remove(javax.swing.JMenuItem item) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.remove(javax.swing.JMenuItem)"); } public void insert(java.lang.String s, int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.insert(java.lang.String, int)"); } public javax.swing.JMenuItem insert(javax.swing.JMenuItem mi, int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.insert(javax.swing.JMenuItem, int)"); } public java.awt.Component add(java.awt.Component c, int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.add(java.awt.Component, int)"); } public java.awt.Component add(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.add(java.awt.Component)"); } public javax.swing.JMenuItem add(java.lang.String s) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.add(java.lang.String)"); } @JavaProtected java.lang.String paramString() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.paramString()"); } public void removeAll() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.removeAll()"); } public java.awt.Component getComponent() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getComponent()"); } public void applyComponentOrientation(java.awt.ComponentOrientation o) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.applyComponentOrientation(java.awt.ComponentOrientation)"); } @JavaProtected void processKeyEvent(java.awt.event.KeyEvent evt) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.processKeyEvent(java.awt.event.KeyEvent)"); } public void setComponentOrientation(java.awt.ComponentOrientation o) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setComponentOrientation(java.awt.ComponentOrientation)"); } public void updateUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.updateUI()"); } public javax.swing.MenuElement[] getSubElements() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getSubElements()"); } public void setSelected(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setSelected(boolean)"); } public void menuSelectionChanged(boolean isIncluded) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.menuSelectionChanged(boolean)"); } public void setAccelerator(javax.swing.KeyStroke keyStroke) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setAccelerator(javax.swing.KeyStroke)"); } @JavaProtected javax.swing.JMenuItem createActionComponent(javax.swing.Action a) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.createActionComponent(javax.swing.Action)"); } public void setPopupMenuVisible(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setPopupMenuVisible(boolean)"); } @JavaProtected java.beans.PropertyChangeListener createActionChangeListener(javax.swing.JMenuItem b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.createActionChangeListener(javax.swing.JMenuItem)"); } public void addSeparator() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.addSeparator()"); } public boolean isTearOff() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.isTearOff()"); } public void insertSeparator(int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.insertSeparator(int)"); } @JavaProtected java.awt.Point getPopupMenuOrigin() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getPopupMenuOrigin()"); } @JavaProtected javax.swing.JMenu.WinListener createWinListener(javax.swing.JPopupMenu p) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.createWinListener(javax.swing.JPopupMenu)"); } public java.awt.Component getMenuComponent(int n) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getMenuComponent(int)"); } public boolean isMenuComponent(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.isMenuComponent(java.awt.Component)"); } public void setDelay(int d) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setDelay(int)"); } public void setMenuLocation(int x, int y) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setMenuLocation(int, int)"); } public void addMenuListener(javax.swing.event.MenuListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.addMenuListener(javax.swing.event.MenuListener)"); } public void removeMenuListener(javax.swing.event.MenuListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.removeMenuListener(javax.swing.event.MenuListener)"); } public javax.swing.event.MenuListener[] getMenuListeners() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getMenuListeners()"); } @JavaProtected void fireMenuSelected() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.fireMenuSelected()"); } @JavaProtected void fireMenuDeselected() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.fireMenuDeselected()"); } @JavaProtected void fireMenuCanceled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.fireMenuCanceled()"); } public javax.swing.JPopupMenu getPopupMenu() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getPopupMenu()"); } public javax.swing.JMenuItem getItem(int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getItem(int)"); } public void doClick(int pressTime) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.doClick(int)"); } public void setModel(javax.swing.ButtonModel newModel) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.setModel(javax.swing.ButtonModel)"); } public java.awt.Component[] getMenuComponents() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getMenuComponents()"); } public javax.accessibility.AccessibleContext getAccessibleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenu.getAccessibleContext()"); } < ---- END java signatures ---- > }