@EclipseTabDockAction public class DockFrontend.Hider extends SimpleButtonAction implements ActionGuard
ActionGuard
at the same time. The
action is always to invoke hide
of
the enclosing a DockFrontend
. The guard reacts on all
Dockables
which are known to the enclosing frontend.BUTTON_CONTENT_FILTER
Constructor and Description |
---|
Hider()
Creates a new action/guard.
|
Modifier and Type | Method and Description |
---|---|
void |
action(Dockable dockable)
Invoked when this action is triggered by the user.
|
DockActionSource |
getSource(Dockable dockable)
Gets a list of actions for the
Dockable |
void |
iconChanged(String key,
Icon icon) |
boolean |
react(Dockable dockable)
|
addActionListener, createView, getCommand, removeActionListener, setCommand, trigger
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
bound, getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger, unbound
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDropDownSelectable, isDropDownTriggerable
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
bind, unbind
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
public DockActionSource getSource(Dockable dockable)
ActionGuard
Dockable
getSource
in interface ActionGuard
dockable
- The Dockable
for which ActionGuard.react(Dockable)
is true
dockable
.public boolean react(Dockable dockable)
ActionGuard
Dockable
and tells whether this
ActionGuard is interested in it and wants to add some additional
actions
to it, or if this guard
is not made for the dockable
.react
in interface ActionGuard
dockable
- The Dockable
to testtrue
if the ActionGuard.getSource(Dockable)
-method
should be invoked, false
otherwisepublic void action(Dockable dockable)
ButtonDockAction
action
in interface ButtonDockAction
action
in class SimpleButtonAction
dockable
- The Dockable
which is associated with
this DockAction, and which shall be used for the current action.