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

Field Summary
static CloseActionFactory DEFAULT
          A default implementation of CloseActionFactory, always returns a new CCloseAction.
 
Method Summary
 CAction create(CControl control, CDockable dockable)
          Creates a new action.
 

Field Detail

DEFAULT

static final CloseActionFactory DEFAULT
A default implementation of CloseActionFactory, always returns a new CCloseAction.

Method Detail

create

CAction create(CControl control,
               CDockable dockable)
Creates a new action.

Parameters:
control - the control in whose realm the action is used
dockable - 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