bibliothek.gui.dock.common.action
Interface CloseActionFactory
public interface CloseActionFactory
This factory is responsible for creating a CAction
that is shown on a CDockable
which is CDockable.isCloseable()
. The action should call CDockable.setVisible(boolean)
when invoked (to close the dockable).
- Author:
- Benjamin Sigg
DEFAULT
static final CloseActionFactory DEFAULT
- A default implementation of
CloseActionFactory
, always returns a new
CCloseAction
.
create
CAction create(CControl control,
CDockable dockable)
- Creates a new action.
- Parameters:
control
- the control in whose realm the action is useddockable
- the item which is going to show the action
- Returns:
- the action, must not be
null
, but may be an action that is already used
at other places