public class CloseAction extends SimpleButtonAction implements ListeningDockAction
close-method is invoked with the
Dockable to close. This method will then remove the Dockable
from it's parent.BUTTON_CONTENT_FILTER| Constructor and Description |
|---|
CloseAction(DockController controller)
Sets the icon and the text of this action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action(Dockable dockable) |
protected void |
close(Dockable dockable)
Invoked when the
dockable has to be closed. |
DockActionIcon |
getCloseIcon()
Gets the
DockActionIcon which is responsible for automatically setting the close
icon. |
DockActionIcon |
getCloseIconHover()
Gets the
DockActionIcon which is responsible for automatically setting the close icon
when the mouse is hovering over the button. |
DockActionIcon |
getCloseIconPressed()
Gets the
DockActionIcon which is responsible for automatically setting the close icon
if the mouse is pressed. |
void |
setController(DockController controller) |
addActionListener, createView, getCommand, removeActionListener, setCommand, triggerisDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedbound, 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, unboundaddDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, createView, trigger, unbindisDropDownSelectable, isDropDownTriggerableaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenergetAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltippublic CloseAction(DockController controller)
controller - The controller from which this action should read
properties, might be null and can be changed by the
method setControllerpublic DockActionIcon getCloseIcon()
DockActionIcon which is responsible for automatically setting the close
icon.public DockActionIcon getCloseIconHover()
DockActionIcon which is responsible for automatically setting the close icon
when the mouse is hovering over the button.public DockActionIcon getCloseIconPressed()
DockActionIcon which is responsible for automatically setting the close icon
if the mouse is pressed.public void setController(DockController controller)
setController in interface ListeningDockActionpublic void action(Dockable dockable)
action in interface ButtonDockActionaction in class SimpleButtonActionCopyright © 2018. All rights reserved.