|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.AbstractDockActionSource bibliothek.gui.dock.common.intern.action.CloseActionSource
public class CloseActionSource
An action source that observes one CDockable
and either adds
or removes a close-action from itself.
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource |
---|
listeners |
Constructor Summary | |
---|---|
CloseActionSource(CDockable dockable)
Creates a new source |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource |
---|
addDockActionSourceListener, fireAdded, fireRemoved, indexOf, removeDockActionSourceListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseActionSource(CDockable dockable)
dockable
- the element which will be observed for changesMethod Detail |
---|
public 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 action
public 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 Iterator<DockAction> iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |