public class ButtonDropDownHandler extends AbstractDropDownHandler<ButtonDockAction>
ButtonDockAction
and a drop-down-button.action, dockable, item
Constructor and Description |
---|
ButtonDropDownHandler(ButtonDockAction action,
Dockable dockable,
javax.swing.JMenuItem item)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
void |
bind()
Connects this handler to its action.
|
void |
triggered()
Invoked if the item is triggered from outside.
|
void |
unbind()
Disconnects this handler from its action
|
addActionListener, getView, isSelectable, isTriggerable, removeActionListener, setView
getAction, getDockable, getItem
public ButtonDropDownHandler(ButtonDockAction action, Dockable dockable, javax.swing.JMenuItem item)
action
- the action to observedockable
- the Dockable for which the action is shownitem
- the item that represents the action, can be null
public void triggered()
DropDownViewItem
public void bind()
AbstractMenuHandler
bind
in interface ViewItem<javax.swing.JComponent>
bind
in class AbstractDropDownHandler<ButtonDockAction>
public void unbind()
AbstractMenuHandler
unbind
in interface ViewItem<javax.swing.JComponent>
unbind
in class AbstractDropDownHandler<ButtonDockAction>