public interface SelectableDockAction extends StandardDockAction, StandardDropDownItemAction
BUTTON_CONTENT_FILTER
Modifier and Type | Method and Description |
---|---|
void |
addSelectableListener(SelectableDockActionListener listener)
Adds a listener to this action.
|
boolean |
isSelected(Dockable dockable)
Tells whether this DockAction is selected or not (in respect
to the given
dockable ). |
void |
removeSelectableListener(SelectableDockActionListener listener)
Removes a listener from this action.
|
void |
setSelected(Dockable dockable,
boolean selected)
Sets the selected state for
dockable . |
isDropDownSelectable, isDropDownTriggerable
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
bind, createView, trigger, unbind
boolean isSelected(Dockable dockable)
dockable
).dockable
- The Dockable
for which this action may be selected
or not selectedtrue
if this DockAction is selcted, false
otherwisevoid setSelected(Dockable dockable, boolean selected)
dockable
.dockable
- the affected dockableselected
- the new statevoid addSelectableListener(SelectableDockActionListener listener)
Dockable
changes.listener
- the new listenervoid removeSelectableListener(SelectableDockActionListener listener)
listener
- the listener to remove