public class CloseActionSource extends AbstractDockActionSource
CDockable
and either adds
or removes a close-action from itself.listeners
Constructor and Description |
---|
CloseActionSource(CDockable dockable)
Creates a new source
|
Modifier and Type | Method and Description |
---|---|
DockAction |
getDockAction(int index)
Gets the index'th
DockAction of this source. |
int |
getDockActionCount()
Gets the number of
DockActions which are
provided by this source. |
LocationHint |
getLocationHint()
Gets a hint where to put this source in relation to other sources.
|
java.util.Iterator<DockAction> |
iterator() |
void |
setControl(CControlAccess control)
Grants access to the
CControl and allows to create the default
action. |
protected void |
update()
Called when the content of this source needs to be updated.
|
addDockActionSourceListener, fireAdded, fireRemoved, hasListeners, indexOf, removeDockActionSourceListener
public CloseActionSource(CDockable dockable)
dockable
- the element which will be observed for changespublic void setControl(CControlAccess control)
CControl
and allows to create the default
action.control
- the access or null
protected void update()
public DockAction getDockAction(int index)
DockActionSource
DockAction
of this source.index
- The index of the actionpublic int getDockActionCount()
DockActionSource
DockActions
which are
provided by this source.DockActions
public LocationHint getLocationHint()
DockActionSource
ActionOffer
can choose to ignore these hints, or interpret
them in an unexpected way.public java.util.Iterator<DockAction> iterator()