API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. MenuSelectionManager View Source
Author(s)
Arnaud Weber
Since
Version
1.41 05/04/06
Serial
Hierarchy
 Object
      MenuSelectionManager
Implements
Subclasses
Description
public class MenuSelectionManager
A MenuSelectionManager owns the selection in menu hierarchy.
See also:   
Constructors
public MenuSelectionManager ()
Methods
Hide/Show inherited methods
public void addChangeListener (ChangeListener l)
  Adds a ChangeListener to the button.
public void clearSelectedPath ()
  Tell the menu selection to close and unselect all the menu components.
public Component componentForPoint (Component source, Point sourcePoint)
  Returns the component in the currently selected path which contains sourcePoint.
publicstatic MenuSelectionManager defaultManager ()
  Returns the default menu selection manager.
protected void fireStateChanged ()
  Notifies all listeners that have registered interest for notification on this event type.
public ChangeListener getChangeListeners ()
  Returns an array of all the ChangeListeners added to this MenuSelectionManager with addChangeListener().
public MenuElement getSelectedPath ()
  Returns the path to the currently selected menu item
public boolean isComponentPartOfCurrentMenu (Component c)
Return true if c is part of the currently used menu
public void processKeyEvent (KeyEvent e)
  When a MenuElement receives an event from a KeyListener, it should never process the event directly.
public void processMouseEvent (MouseEvent event)
  When a MenuElement receives an event from a MouseListener, it should never process the event directly.
public void removeChangeListener (ChangeListener l)
  Removes a ChangeListener from the button.
public void setSelectedPath (MenuElement path)
  Changes the selection in the menu hierarchy.
Fields
Hide/Show inherited fields
protectedtransient ChangeEvent changeEvent
  Only one ChangeEvent is needed per button model instance since the event's only state is the source property.
protected EventListenerList listenerList
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar