|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.api.MenuComponent
This is the base class for MenuItems
, Menus
and anything that can be placed
into a MenuContainer
.
Method Summary | |
void |
addActionListener(ActionListener l)
Adds a listener to this menu item. |
MenuContainer |
getParent()
Returns the container of this component. |
void |
removeActionListener(ActionListener l)
Removes the specified action listener from this menu item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addActionListener(ActionListener l)
ActionListener.actionPerformed(com.droplets.api.event.ActionEvent)
method of the listener is
called when the menu item is selected. It is passed an ActionEvent
which
contains the following information:
l
- the listener to add.public MenuContainer getParent()
public void removeActionListener(ActionListener l)
l
- com.droplets.api.event.ActionListener
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |