|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<JMenu,MenuDockAction>
bibliothek.gui.dock.themes.basic.action.menu.MenuMenuHandler
public class MenuMenuHandler
A handler that manages a menu. The menu can either be toplevel (like a popup-menu) or a submenu of another menu.
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
---|
action, dockable, item |
Constructor Summary | |
---|---|
MenuMenuHandler(DockActionSource source,
Dockable dockable,
JPopupMenu menu)
Creates a new handler |
|
MenuMenuHandler(MenuDockAction action,
Dockable dockable)
Creates a new handler |
Method Summary | |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener which will be called if this view is triggered. |
void |
bind()
Connects this handler to its action. |
void |
removeActionListener(ActionListener listener)
Removes a listener from this view. |
void |
unbind()
Disconnects this handler from its action |
Methods inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
---|
getAction, getDockable, getItem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuMenuHandler(MenuDockAction action, Dockable dockable)
action
- the observed actiondockable
- the dockable for which items are inserted into the menupublic MenuMenuHandler(DockActionSource source, Dockable dockable, JPopupMenu menu)
source
- the observed sourcedockable
- the dockable for which actions are dispatchedmenu
- the menu where items will be insertedMethod Detail |
---|
public void addActionListener(ActionListener listener)
MenuViewItem
listener
- the new listenerpublic void removeActionListener(ActionListener listener)
MenuViewItem
listener
- the listener to removepublic void bind()
AbstractMenuHandler
bind
in interface ViewItem<JComponent>
bind
in class AbstractMenuHandler<JMenu,MenuDockAction>
public void unbind()
AbstractMenuHandler
unbind
in interface ViewItem<JComponent>
unbind
in class AbstractMenuHandler<JMenu,MenuDockAction>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |