public abstract class BasicSelectableHandler extends BasicHandler<SelectableDockAction>
SelectableDockAction
with a
BasicButtonModel
.Modifier and Type | Class and Description |
---|---|
static class |
BasicSelectableHandler.Check
An implementation used to connect a
SelectableDockAction of
type ActionType.CHECK with a BasicButtonModel |
static class |
BasicSelectableHandler.Radio
An implementation used to connect a
SelectableDockAction of
type ActionType.RADIO with a BasicButtonModel |
Constructor and Description |
---|
BasicSelectableHandler(SelectableDockAction action,
Dockable dockable)
Creates a new handler
|
Modifier and Type | Method and Description |
---|---|
void |
bind()
Binds this item to its action
|
void |
unbind()
Unbinds this item from its action
|
createListener, getItem, setBackground, setForeground, setOrientation, triggered
addBorder, ensureBorder, getAction, getDockable, getModel, isBound, setModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAction, getDockable
public BasicSelectableHandler(SelectableDockAction action, Dockable dockable)
action
- the action which is observed by this handlerdockable
- the dockable for which the action is shownpublic void bind()
ViewItem
bind
in interface ViewItem<JComponent>
bind
in class BasicHandler<SelectableDockAction>
public void unbind()
ViewItem
unbind
in interface ViewItem<JComponent>
unbind
in class BasicHandler<SelectableDockAction>