<< lib/java/javax/swing/JPopupMenu.sleela SLeeLa Java 28 source envelope. Definition: SLeeLa source declaration for the Java type javax.swing.JPopupMenu. Java behavior is supplied through the SLeeLa Java conformance boundary. >> #sleela 3.0 material; class JPopupMenu { < ---- 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 = 5056; 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.JPopupMenu"; 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.JPopupMenu 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 heldLabel; String heldUIClassID; boolean heldLightWeightPopupEnabled; boolean heldBorderPainted; boolean heldVisible; public JPopupMenu(java.lang.String label) { this.heldLabel = label; this.heldUIClassID = "PopupMenuUI"; this.heldLightWeightPopupEnabled = true; this.heldBorderPainted = true; this.heldVisible = false; } public java.lang.String getLabel() { return this.heldLabel; } public java.lang.String getUIClassID() { return this.heldUIClassID; } public boolean isLightWeightPopupEnabled() { return this.heldLightWeightPopupEnabled; } public boolean isBorderPainted() { return this.heldBorderPainted; } public boolean isVisible() { return this.heldVisible; } < ---- 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 void remove(int pos) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.remove(int)"); } public void insert(java.awt.Component component, int index) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.insert(java.awt.Component, int)"); } public javax.swing.JMenuItem add(javax.swing.JMenuItem menuItem) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.add(javax.swing.JMenuItem)"); } public javax.swing.JMenuItem add(java.lang.String s) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.add(java.lang.String)"); } @JavaProtected java.lang.String paramString() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.paramString()"); } public java.awt.Component getComponent() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getComponent()"); } public void setVisible(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setVisible(boolean)"); } public void pack() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.pack()"); } public void show(java.awt.Component invoker, int x, int y) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.show(java.awt.Component, int, int)"); } @JavaProtected void processKeyEvent(java.awt.event.KeyEvent evt) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.processKeyEvent(java.awt.event.KeyEvent)"); } 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.JPopupMenu.processKeyEvent(java.awt.event.KeyEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)"); } public boolean isPopupTrigger(java.awt.event.MouseEvent e) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.isPopupTrigger(java.awt.event.MouseEvent)"); } @JavaProtected void processFocusEvent(java.awt.event.FocusEvent evt) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.processFocusEvent(java.awt.event.FocusEvent)"); } 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.JPopupMenu.processMouseEvent(java.awt.event.MouseEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)"); } public void updateUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.updateUI()"); } @JavaProtected void paintBorder(java.awt.Graphics g) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.paintBorder(java.awt.Graphics)"); } public void setSelectionModel(javax.swing.SingleSelectionModel model) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setSelectionModel(javax.swing.SingleSelectionModel)"); } public void setUI(javax.swing.plaf.PopupMenuUI ui) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setUI(javax.swing.plaf.PopupMenuUI)"); } public javax.swing.plaf.PopupMenuUI getUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getUI()"); } public java.awt.Component getComponentAtIndex(int i) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getComponentAtIndex(int)"); } public javax.swing.SingleSelectionModel getSelectionModel() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getSelectionModel()"); } public javax.swing.MenuElement[] getSubElements() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getSubElements()"); } public void setSelected(java.awt.Component sel) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setSelected(java.awt.Component)"); } public void setBorderPainted(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setBorderPainted(boolean)"); } public java.awt.Insets getMargin() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getMargin()"); } public void menuSelectionChanged(boolean isIncluded) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.menuSelectionChanged(boolean)"); } public void addMenuKeyListener(javax.swing.event.MenuKeyListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.addMenuKeyListener(javax.swing.event.MenuKeyListener)"); } public void removeMenuKeyListener(javax.swing.event.MenuKeyListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.removeMenuKeyListener(javax.swing.event.MenuKeyListener)"); } public javax.swing.event.MenuKeyListener[] getMenuKeyListeners() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getMenuKeyListeners()"); } @JavaProtected javax.swing.JMenuItem createActionComponent(javax.swing.Action a) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.createActionComponent(javax.swing.Action)"); } public java.awt.Component getInvoker() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getInvoker()"); } public void setInvoker(java.awt.Component invoker) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setInvoker(java.awt.Component)"); } public void setPopupSize(int width, int height) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setPopupSize(int, int)"); } public void setPopupSize(java.awt.Dimension d) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setPopupSize(java.awt.Dimension)"); } public static void setDefaultLightWeightPopupEnabled(boolean aFlag) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setDefaultLightWeightPopupEnabled(boolean)"); } @JavaProtected java.beans.PropertyChangeListener createActionChangeListener(javax.swing.JMenuItem b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.createActionChangeListener(javax.swing.JMenuItem)"); } public void setLabel(java.lang.String label) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setLabel(java.lang.String)"); } public void addSeparator() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.addSeparator()"); } public int getComponentIndex(java.awt.Component c) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getComponentIndex(java.awt.Component)"); } public static boolean getDefaultLightWeightPopupEnabled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getDefaultLightWeightPopupEnabled()"); } public void setLightWeightPopupEnabled(boolean aFlag) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setLightWeightPopupEnabled(boolean)"); } public void addPopupMenuListener(javax.swing.event.PopupMenuListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.addPopupMenuListener(javax.swing.event.PopupMenuListener)"); } public void removePopupMenuListener(javax.swing.event.PopupMenuListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.removePopupMenuListener(javax.swing.event.PopupMenuListener)"); } public javax.swing.event.PopupMenuListener[] getPopupMenuListeners() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.getPopupMenuListeners()"); } @JavaProtected void firePopupMenuWillBecomeVisible() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.firePopupMenuWillBecomeVisible()"); } @JavaProtected void firePopupMenuWillBecomeInvisible() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.firePopupMenuWillBecomeInvisible()"); } @JavaProtected void firePopupMenuCanceled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.firePopupMenuCanceled()"); } public void setLocation(int x, int y) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.setLocation(int, int)"); } public javax.accessibility.AccessibleContext getAccessibleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.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 JPopupMenu() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JPopupMenu.()"); } < ---- END java constructors ---- > }