public class ButtonDropDownHandler extends AbstractDropDownHandler<ButtonDockAction>
ButtonDockAction and a drop-down-button.action, dockable, item| Constructor and Description |
|---|
ButtonDropDownHandler(ButtonDockAction action,
Dockable dockable,
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, setViewgetAction, getDockable, getItempublic ButtonDropDownHandler(ButtonDockAction action, Dockable dockable, JMenuItem item)
action - the action to observedockable - the Dockable for which the action is shownitem - the item that represents the action, can be nullpublic void triggered()
DropDownViewItempublic void bind()
AbstractMenuHandlerbind in interface ViewItem<JComponent>bind in class AbstractDropDownHandler<ButtonDockAction>public void unbind()
AbstractMenuHandlerunbind in interface ViewItem<JComponent>unbind in class AbstractDropDownHandler<ButtonDockAction>Copyright © 2017 Docking Frames. All rights reserved.