<< lib/java/javax/swing/JMenuBar.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.JMenuBar. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class JMenuBar { < ---- 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 = 5038; 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.JMenuBar"; 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.JMenuBar 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 heldBorderPainted; boolean heldSelected; int heldMenuCount; public JMenuBar() { this.heldUIClassID = "MenuBarUI"; this.heldBorderPainted = true; this.heldSelected = false; this.heldMenuCount = 0; } public java.lang.String getUIClassID() { return this.heldUIClassID; } public boolean isBorderPainted() { return this.heldBorderPainted; } public boolean isSelected() { return this.heldSelected; } public int getMenuCount() { return this.heldMenuCount; } < ---- END java implementation ---- > < ---- 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 javax.swing.JMenu add(javax.swing.JMenu c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.add(javax.swing.JMenu)"); } @JavaProtected java.lang.String paramString() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.paramString()"); } public java.awt.Component getComponent() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getComponent()"); } public void processKeyEvent(java.awt.event.KeyEvent e, javax.swing.MenuElement[] path, javax.swing.MenuSelectionManager manager) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.processKeyEvent(java.awt.event.KeyEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)"); } public void processMouseEvent(java.awt.event.MouseEvent event, javax.swing.MenuElement[] path, javax.swing.MenuSelectionManager manager) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.processMouseEvent(java.awt.event.MouseEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)"); } public void updateUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.updateUI()"); } @JavaProtected void paintBorder(java.awt.Graphics g) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.paintBorder(java.awt.Graphics)"); } public void setSelectionModel(javax.swing.SingleSelectionModel model) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.setSelectionModel(javax.swing.SingleSelectionModel)"); } public void setUI(javax.swing.plaf.MenuBarUI ui) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.setUI(javax.swing.plaf.MenuBarUI)"); } public javax.swing.plaf.MenuBarUI getUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getUI()"); } public java.awt.Component getComponentAtIndex(int i) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getComponentAtIndex(int)"); } public javax.swing.SingleSelectionModel getSelectionModel() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getSelectionModel()"); } @JavaProtected boolean processKeyBinding(javax.swing.KeyStroke ks, java.awt.event.KeyEvent e, int condition, boolean pressed) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean)"); } public javax.swing.MenuElement[] getSubElements() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getSubElements()"); } public javax.swing.JMenu getMenu(int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getMenu(int)"); } public void setHelpMenu(javax.swing.JMenu menu) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.setHelpMenu(javax.swing.JMenu)"); } public javax.swing.JMenu getHelpMenu() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getHelpMenu()"); } public void setSelected(java.awt.Component sel) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.setSelected(java.awt.Component)"); } public void setBorderPainted(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.setBorderPainted(boolean)"); } public void setMargin(java.awt.Insets m) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.setMargin(java.awt.Insets)"); } public java.awt.Insets getMargin() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getMargin()"); } public void menuSelectionChanged(boolean isIncluded) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.menuSelectionChanged(boolean)"); } public int getComponentIndex(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getComponentIndex(java.awt.Component)"); } public javax.accessibility.AccessibleContext getAccessibleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.getAccessibleContext()"); } public void addNotify() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.addNotify()"); } public void removeNotify() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JMenuBar.removeNotify()"); } < ---- END java signatures ---- > }