Class AwtPopupHelper
java.lang.Object
org.jmol.awt.AwtPopupHelper
- All Implemented Interfaces:
ActionListener, ItemListener, MouseListener, EventListener, PopupHelper
public class AwtPopupHelper
extends Object
implements ActionListener, ItemListener, MouseListener, PopupHelper
all popup-related awt/swing class references are in this file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetCheckBox(String name) intgetItemType(SC m) getMenuItem(String name) getSwingComponent(Object component) voidvoidmenuAddButtonGroup(SC item) voidListener methodsmenuCreatePopup(String title, Object applet) voidmenuInsertSubMenu(SC menu, SC subMenu, int index) voidvoidvoidvoidvoidvoidreinstateMenu(JMenuItem item, MenuElement[] path) Cause the menu to persist in its open state.
-
Constructor Details
-
AwtPopupHelper
-
-
Method Details
-
getRadio
- Specified by:
getRadioin interfacePopupHelper
-
getCheckBox
- Specified by:
getCheckBoxin interfacePopupHelper
-
getMenu
- Specified by:
getMenuin interfacePopupHelper
-
getMenuItem
- Specified by:
getMenuItemin interfacePopupHelper
-
getButtonGroup
- Specified by:
getButtonGroupin interfacePopupHelper
-
getItemType
- Specified by:
getItemTypein interfacePopupHelper
-
getSwingComponent
- Specified by:
getSwingComponentin interfacePopupHelper
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
reinstateMenu
Cause the menu to persist in its open state. Path is set in the setArmed() method of the item, and it is checked in the doClick() method. Persist only if (a) somewhere in the path of names there is "Persist", and nowhere in that path is "!Persist".- Parameters:
item-path-
-
dispose
- Specified by:
disposein interfacePopupHelper