|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<javax.swing.JMenuItem,ButtonDockAction> bibliothek.gui.dock.themes.basic.action.menu.ButtonMenuHandler
public class ButtonMenuHandler
A handler building a connection between a JMenuItem
and a ButtonDockAction
.
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
---|
action, dockable, item |
Constructor Summary | |
---|---|
ButtonMenuHandler(ButtonDockAction action,
Dockable dockable)
Creates a new handler. |
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Adds a listener which will be called if this view is triggered. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes a listener from this view. |
Methods inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
---|
bind, getAction, getDockable, getItem, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonMenuHandler(ButtonDockAction action, Dockable dockable)
action
- the action to observedockable
- the dockable for which actions are dispatchedMethod Detail |
---|
public void addActionListener(java.awt.event.ActionListener listener)
MenuViewItem
listener
- the new listenerpublic void removeActionListener(java.awt.event.ActionListener listener)
MenuViewItem
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |