Java Platform 1.2
Beta 4

Class com.sun.java.swing.MenuSelectionManager

java.lang.Object
  |
  +--com.sun.java.swing.MenuSelectionManager

public class MenuSelectionManager
extends Object

Field Summary
protected  ChangeEvent changeEvent
          Only one ChangeEvent is needed per button model instance since the event's only state is the source property.
protected  EventListenerList listenerList
           
 
Method Summary
 void addChangeListener(ChangeListener l)
          Adds a ChangeListener to the button.
 void clearSelectedPath()
           
 Component componentForPoint(Component source, Point sourcePoint)
           
static MenuSelectionManager defaultManager()
           
protected  void fireStateChanged()
           
 MenuElement[] getSelectedPath()
           
 boolean isComponentPartOfCurrentMenu(Component c)
          Return true if c is part of the currently used menu
 void processKeyEvent(KeyEvent e)
           
 void processMouseEvent(MouseEvent event)
           
 void removeChangeListener(ChangeListener l)
          Removes a ChangeListener from the button.
 void setSelectedPath(MenuElement[] path)
           
 
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Field Detail

changeEvent

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".

listenerList

protected EventListenerList listenerList
Method Detail

defaultManager

public static MenuSelectionManager defaultManager()

setSelectedPath

public void setSelectedPath(MenuElement[] path)

getSelectedPath

public MenuElement[] getSelectedPath()

clearSelectedPath

public void clearSelectedPath()

addChangeListener

public void addChangeListener(ChangeListener l)
Adds a ChangeListener to the button.
Parameters:
l - the listener to add

removeChangeListener

public void removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button.
Parameters:
l - the listener to remove

fireStateChanged

protected void fireStateChanged()

processMouseEvent

public void processMouseEvent(MouseEvent event)

componentForPoint

public Component componentForPoint(Component source,
                                   Point sourcePoint)

processKeyEvent

public void processKeyEvent(KeyEvent e)

isComponentPartOfCurrentMenu

public boolean isComponentPartOfCurrentMenu(Component c)
Return true if c is part of the currently used menu

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.