|
||||||||||
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<I,D>
I
- DropDownItemHandle used by this handlerD
- Action used by this handlerpublic abstract class AbstractMenuHandler<I extends javax.swing.JMenuItem,D extends StandardDockAction>
A handler that connects a JMenuItem
with a DockAction
.
Nested Class Summary | |
---|---|
private class |
AbstractMenuHandler.Listener
A listener to an action, changes the values of the item of the enclosing handler. |
Field Summary | |
---|---|
protected D |
action
the action shown by the item of this handler, may be null |
protected Dockable |
dockable
the Dockable for which actions are dispatched |
protected I |
item
the visual representation of the action, may be null |
private AbstractMenuHandler.Listener |
listener
a listener to the action, changes text, icon, etc.. |
Constructor Summary | |
---|---|
AbstractMenuHandler(D action,
Dockable dockable,
I item)
Creates a new handler with predefined item. |
Method Summary | |
---|---|
void |
bind()
Connects this handler to its action. |
D |
getAction()
Gets the action that is observed by this handler. |
Dockable |
getDockable()
Gets the element for which actions are dispatched. |
javax.swing.JMenuItem |
getItem()
Gets the item whose values are updated by this handler. |
void |
unbind()
Disconnects this handler from its action |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.themes.basic.action.menu.MenuViewItem |
---|
addActionListener, removeActionListener |
Field Detail |
---|
protected I extends javax.swing.JMenuItem item
null
protected Dockable dockable
protected D extends StandardDockAction action
null
private AbstractMenuHandler.Listener listener
Constructor Detail |
---|
public AbstractMenuHandler(D action, Dockable dockable, I item)
action
- the action to observedockable
- the dockable for which actions are dispatcheditem
- the item whose values have to be updatedMethod Detail |
---|
public Dockable getDockable()
public D getAction()
getAction
in interface ViewItem<javax.swing.JComponent>
null
public javax.swing.JMenuItem getItem()
getItem
in interface ViewItem<javax.swing.JComponent>
null
public void bind()
bind
in interface ViewItem<javax.swing.JComponent>
public void unbind()
unbind
in interface ViewItem<javax.swing.JComponent>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |