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.
-
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
-
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