bibliothek.gui.dock.common.action.predefined
Class CCloseAction
java.lang.Object
bibliothek.gui.dock.common.action.CAction
bibliothek.gui.dock.common.intern.CDecorateableAction
bibliothek.gui.dock.common.intern.action.CDropDownItem
bibliothek.gui.dock.common.action.predefined.CCloseAction
public class CCloseAction
- extends CDropDownItem
An action that can close any CDockable
in the way that "common"
requires. Clients can either create on CCloseAction
for each
CDockable
or use one action for many CDockable
s at the
same time.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.common.intern.CDecorateableAction |
getAccelerator, getDisabledIcon, getIcon, getText, getTooltip, init, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setIcon, setText, setTooltip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CCloseAction
public CCloseAction(CControl control)
- Creates a new action
- Parameters:
control
- the control for which this action will be used
close
public void close(CDockable dockable)
- Closes
dockable
now.
- Parameters:
dockable
- the element to close