|
||||||||||
| 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<javax.swing.JMenuItem,SelectableDockAction>
bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler
public class SelectableMenuHandler
A handler which ensures that the selected-state of a JMenuItem and
a SelectableDockAction are always the same.
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
|---|
action, dockable, item |
| Constructor Summary | |
|---|---|
SelectableMenuHandler(SelectableDockAction action,
Dockable dockable,
javax.swing.JMenuItem item)
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 |
bind()
Connects this handler to its action. |
void |
removeActionListener(java.awt.event.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 SelectableMenuHandler(SelectableDockAction action,
Dockable dockable,
javax.swing.JMenuItem item)
action - the action to observedockable - the Dockable for which actions are dispatcheditem - the item to manage| Method 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 removepublic void bind()
AbstractMenuHandler
bind in interface ViewItem<javax.swing.JComponent>bind in class AbstractMenuHandler<javax.swing.JMenuItem,SelectableDockAction>public void unbind()
AbstractMenuHandler
unbind in interface ViewItem<javax.swing.JComponent>unbind in class AbstractMenuHandler<javax.swing.JMenuItem,SelectableDockAction>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||