|
||||||||||
| 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<JMenuItem,S>
bibliothek.gui.dock.themes.basic.action.dropdown.AbstractDropDownHandler<SelectableDockAction>
bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler
public class SelectableDropDownHandler
A connection between a SelectableDockAction and a
drop-down-button.
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
|---|
action, dockable, item |
| Constructor Summary | |
|---|---|
SelectableDropDownHandler(SelectableDockAction action,
Dockable dockable,
JMenuItem item)
Creates a new handler. |
|
| Method Summary | |
|---|---|
void |
bind()
Connects this handler to its action. |
protected void |
itemTriggered()
Called if the menuitem was clicked. |
void |
setView(DropDownView view)
Sends the current settings of this item to the view. |
void |
triggered()
Invoked if the item is triggered from outside. |
void |
unbind()
Disconnects this handler from its action |
| Methods inherited from class bibliothek.gui.dock.themes.basic.action.dropdown.AbstractDropDownHandler |
|---|
addActionListener, getView, isSelectable, isTriggerable, removeActionListener |
| 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 |
| Methods inherited from interface bibliothek.gui.dock.action.view.ViewItem |
|---|
getAction, getItem |
| Constructor Detail |
|---|
public SelectableDropDownHandler(SelectableDockAction action,
Dockable dockable,
JMenuItem item)
action - the action to observedockable - the Dockable for which the action is shownitem - the graphical representation of the action| Method Detail |
|---|
public void bind()
AbstractMenuHandler
bind in interface ViewItem<JComponent>bind in class AbstractDropDownHandler<SelectableDockAction>public void unbind()
AbstractMenuHandler
unbind in interface ViewItem<JComponent>unbind in class AbstractDropDownHandler<SelectableDockAction>public void setView(DropDownView view)
DropDownViewItem
setView in interface DropDownViewItemsetView in class AbstractDropDownHandler<SelectableDockAction>view - the view, might be nullprotected void itemTriggered()
triggered(). This method is not called if the item
if in a drop-down-menu and cannot be triggered in the unselected-state.
public void triggered()
DropDownViewItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||