|
||||||||||
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,S>
bibliothek.gui.dock.themes.basic.action.dropdown.AbstractDropDownHandler<SelectableDockAction>
bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler
public abstract class SelectableDropDownHandler
A connection between a SelectableDockAction
and a
drop-down-button.
Nested Class Summary | |
---|---|
static class |
SelectableDropDownHandler.Check
A connection representing a check-box. |
private class |
SelectableDropDownHandler.Listener
A listener that ensures, that the menuitem and the action have always the same selected-state. |
static class |
SelectableDropDownHandler.Radio
A connection representing a radio-button. |
Field Summary | |
---|---|
private SelectableDropDownHandler.Listener |
listener
a listener to the action and the view |
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler |
---|
action, dockable, item |
Constructor Summary | |
---|---|
SelectableDropDownHandler(SelectableDockAction action,
Dockable dockable,
javax.swing.JMenuItem item)
Creates a new handler. |
Method Summary | |
---|---|
void |
bind()
Connects this handler to its action. |
protected abstract void |
itemTriggered()
Called if the menuitem was clicked. |
void |
setView(DropDownView view)
Sends the current settings of this item to the view. |
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.themes.basic.action.dropdown.DropDownViewItem |
---|
triggered |
Methods inherited from interface bibliothek.gui.dock.action.view.ViewItem |
---|
getAction, getItem |
Field Detail |
---|
private SelectableDropDownHandler.Listener listener
Constructor Detail |
---|
public SelectableDropDownHandler(SelectableDockAction action, Dockable dockable, javax.swing.JMenuItem item)
action
- the action to observedockable
- the Dockable for which the action is shownitem
- the graphical representation of the actionMethod Detail |
---|
public void bind()
AbstractMenuHandler
bind
in interface ViewItem<javax.swing.JComponent>
bind
in class AbstractDropDownHandler<SelectableDockAction>
public void unbind()
AbstractMenuHandler
unbind
in interface ViewItem<javax.swing.JComponent>
unbind
in class AbstractDropDownHandler<SelectableDockAction>
public void setView(DropDownView view)
DropDownViewItem
setView
in interface DropDownViewItem
setView
in class AbstractDropDownHandler<SelectableDockAction>
view
- the view, might be null
protected abstract void itemTriggered()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |