| Modifier and Type | Field and Description |
|---|---|
| protected transient ChangeEvent | changeEvent
Only one ChangeEvent is needed per button model instance since the event's only state is the source property. |
| private static final boolean | |
| private static final MenuSelectionManager | |
| protected EventListenerList | listenerList
The collection of registered listeners |
| private Vector | |
| private static final boolean | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Component | Returns: The component in the currently selected path which contains sourcePoint (relative to the source component's coordinate space. If sourcePoint is not inside a component on the currently selected path, null is returned.The component in whose coordinate space sourcePoint
is given source, Point The point which is being tested sourcePoint)Returns the component in the currently selected path which contains sourcePoint. |
| public static MenuSelectionManager | |
| protected void | fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. |
| public ChangeListener[] | Returns: all of theChangeListeners added or an empty
array if no listeners have been addedReturns an array of all the |
| public MenuElement[] | Returns: an array of MenuElement objects representing the selected pathReturns the path to the currently selected menu item |
| public boolean | Returns: true ifc is part of the currently used menu,
false otherwisea c)ComponentReturn true if |
| private boolean | |
| private void | |
| private void | |
| public void | processKeyEvent(KeyEvent
a KeyEvent object e)When a MenuElement receives an event from a KeyListener, it should never process the event directly. |
| public void | processMouseEvent(MouseEvent
a MouseEvent object event)When a MenuElement receives an event from a MouseListener, it should never process the event directly. |
| public void | removeChangeListener(ChangeListener
the listener to remove l)Removes a ChangeListener from the button. |
| public void | setSelectedPath(MenuElement[]
an array of path)MenuElement objects specifying
the selected pathChanges the selection in the menu hierarchy. |
| changeEvent | back to summary |
|---|---|
| protected transient ChangeEvent changeEvent Only one ChangeEvent is needed per button model instance since the event's only state is the source property. The source of events generated is always "this". | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| DEFAULT_MSM | back to summary |
|---|---|
| private static final MenuSelectionManager DEFAULT_MSM | |
| listenerList | back to summary |
|---|---|
| protected EventListenerList listenerList The collection of registered listeners | |
| selection | back to summary |
|---|---|
| private Vector<MenuElement> selection | |
| TRACE | back to summary |
|---|---|
| private static final boolean TRACE | |
| VERBOSE | back to summary |
|---|---|
| private static final boolean VERBOSE | |
| MenuSelectionManager | back to summary |
|---|---|
| public MenuSelectionManager() Constructs a | |
| addChangeListener | back to summary |
|---|---|
| public void addChangeListener(ChangeListener l) Adds a ChangeListener to the button.
| |
| clearSelectedPath | back to summary |
|---|---|
| public void clearSelectedPath() Tell the menu selection to close and unselect all the menu components. Call this method when a choice has been made | |
| componentForPoint | back to summary |
|---|---|
| public Component componentForPoint(Component source, Point sourcePoint) Returns the component in the currently selected path which contains sourcePoint.
| |
| defaultManager | back to summary |
|---|---|
| public static MenuSelectionManager defaultManager() Returns the default menu selection manager.
| |
| fireStateChanged | back to summary |
|---|---|
| protected void fireStateChanged() Notifies all listeners that have registered interest for notification on this event type. The event instance is created lazily.
| |
| getChangeListeners | back to summary |
|---|---|
| public ChangeListener[] getChangeListeners() Returns an array of all the
| |
| getSelectedPath | back to summary |
|---|---|
| public MenuElement[] getSelectedPath() Returns the path to the currently selected menu item
| |
| isComponentPartOfCurrentMenu | back to summary |
|---|---|
| public boolean isComponentPartOfCurrentMenu(Component c) Return true if
| |
| isComponentPartOfCurrentMenu | back to summary |
|---|---|
| private boolean isComponentPartOfCurrentMenu(MenuElement root, Component c) | |
| printMenuElementArray | back to summary |
|---|---|
| private void printMenuElementArray(MenuElement[] path) | |
| printMenuElementArray | back to summary |
|---|---|
| private void printMenuElementArray(MenuElement[] path, boolean dumpStack) | |
| processKeyEvent | back to summary |
|---|---|
| public void processKeyEvent(KeyEvent e) When a MenuElement receives an event from a KeyListener, it should never process the event directly. Instead all MenuElements should call this method with the event.
| |
| processMouseEvent | back to summary |
|---|---|
| public void processMouseEvent(MouseEvent event) When a MenuElement receives an event from a MouseListener, it should never process the event directly. Instead all MenuElements should call this method with the event.
| |
| removeChangeListener | back to summary |
|---|---|
| public void removeChangeListener(ChangeListener l) Removes a ChangeListener from the button.
| |
| setSelectedPath | back to summary |
|---|---|
| public void setSelectedPath(MenuElement[] path) Changes the selection in the menu hierarchy. The elements in the array are sorted in order from the root menu element to the currently selected menu element. Note that this method is public but is used by the look and feel engine and should not be called by client applications.
| |