Package org.jmol.awtjs2d
Class JSPopupHelper
java.lang.Object
org.jmol.awtjs2d.JSPopupHelper
- All Implemented Interfaces:
PopupHelper
For menus, popup-related awt/swing class references are in this file.
We can ignore all the event/listener references because JSmol will create a
simple object with just the elements getSource and getActionCommand.
No need to have the entire classes fleshed out.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ButtonGroup
(package private) GenericPopup
used here and by SwingController to refer to the Java class being handled by this helper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getCheckBox
(String name) int
getItemType
(SC m) getMenuItem
(String text) getSwingComponent
(Object component) void
void
void
menuAddButtonGroup
(SC item) void
menuClearListeners
(SC menu) menuCreatePopup
(String name, Object applet) void
menuInsertSubMenu
(SC menu, SC subMenu, int index) void
void
-
Field Details
-
popup
GenericPopup popupused here and by SwingController to refer to the Java class being handled by this helper. -
buttonGroup
-
-
Constructor Details
-
JSPopupHelper
-
-
Method Details
-
getMenu
- Specified by:
getMenu
in interfacePopupHelper
-
getMenuItem
- Specified by:
getMenuItem
in interfacePopupHelper
-
getRadio
- Specified by:
getRadio
in interfacePopupHelper
-
getCheckBox
- Specified by:
getCheckBox
in interfacePopupHelper
-
getItemType
- Specified by:
getItemType
in interfacePopupHelper
-
getSwingComponent
- Specified by:
getSwingComponent
in interfacePopupHelper
-
itemStateChanged
-
actionPerformed
-
getButtonGroup
- Specified by:
getButtonGroup
in interfacePopupHelper
-
handleEvent
-
mouseEntered
-
mouseExited
-
dispose
- Specified by:
dispose
in interfacePopupHelper