Package org.jmol.awt
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidprivate voidclearListeners(Object[] subMenus) voidgetCheckBox(String name) intgetItemType(SC m) getMenuItem(String name) private SCreturns the SwingComponent wrapper for this itemgetSwingComponent(Object component) voidvoidmenuAddButtonGroup(SC item) voidmenuCreatePopup(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.
-
Field Details
-
popup
-
htSources
-
buttonGroup
-
-
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
-
clearListener
-
clearListeners
-
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
-
getSource
returns the SwingComponent wrapper for this item- Parameters:
e-- Returns:
- wrapped component
-
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