@EclipseTabDockAction public class CCloseAction extends CDropDownItem<CCloseAction.Action>
CDockable by calling
CDockable.setVisible(boolean). Clients can either create one
CCloseAction for each CDockable or use one action for many CDockables at the
same time.| Modifier and Type | Class and Description |
|---|---|
class |
CCloseAction.Action
Internal representation of the
CCloseAction, just calls
close(CDockable) when triggered. |
| Constructor and Description |
|---|
CCloseAction(CControl control)
Creates a new action
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(CDockable dockable)
Closes
dockable now. |
protected CCloseAction.Action |
createAction()
Creates the action that is used for
CDecorateableAction.intern(). |
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedaddDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, init, intern, isAcceleratorGlobal, isEnabled, isShowTextOnButtons, removeDecorateableActionListener, setAccelerator, setAcceleratorIsGlobal, setDisabledHoverIcon, setDisabledIcon, setDisabledPressedIcon, setEnabled, setHoverIcon, setIcon, setPressedIcon, setShowTextOnButtons, setText, setTooltippublic CCloseAction(CControl control)
control - the control for which this action will be usedprotected CCloseAction.Action createAction()
CDecorateableAction.intern().public void close(CDockable dockable)
dockable now. This method is always called when
this action is triggered, so this is the optimal method to be overridden
and extended with new features like a JOptionPane asking whether
dockable should really be closed.CVetoClosingListener instead, it can
handle all kind of closing events.dockable - the element to closeCopyright © 2018. All rights reserved.