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 TypeMethodDescriptionvoid
private void
private void
clearListeners
(Object[] subMenus) void
getCheckBox
(String name) int
getItemType
(SC m) getMenuItem
(String name) private SC
returns the SwingComponent wrapper for this itemgetSwingComponent
(Object component) void
void
menuAddButtonGroup
(SC item) void
menuCreatePopup
(String title, Object applet) void
menuInsertSubMenu
(SC menu, SC subMenu, int index) void
void
void
void
void
void
reinstateMenu
(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:
getRadio
in interfacePopupHelper
-
getCheckBox
- Specified by:
getCheckBox
in interfacePopupHelper
-
getMenu
- Specified by:
getMenu
in interfacePopupHelper
-
getMenuItem
- Specified by:
getMenuItem
in interfacePopupHelper
-
getButtonGroup
- Specified by:
getButtonGroup
in interfacePopupHelper
-
getItemType
- Specified by:
getItemType
in interfacePopupHelper
-
getSwingComponent
- Specified by:
getSwingComponent
in interfacePopupHelper
-
clearListener
-
clearListeners
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in 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:
dispose
in interfacePopupHelper