|
||||||||||
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<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
.
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 |
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
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 updated, null
is
only valid if action
is null
too.Method 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 |