Class CloseActionSource
java.lang.Object
bibliothek.gui.dock.action.AbstractDockActionSource
bibliothek.gui.dock.common.intern.action.CloseActionSource
- All Implemented Interfaces:
DockActionSource,Iterable<DockAction>
An action source that observes one
CDockable and either adds
or removes a close-action from itself.- Author:
- Benjamin Sigg
-
Field Summary
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDockAction(int index) intiterator()voidsetControl(CControlAccess control) Grants access to theCControland allows to create the default action.protected voidupdate()Called when the content of this source needs to be updated.Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
addDockActionSourceListener, fireAdded, fireRemoved, hasListeners, indexOf, removeDockActionSourceListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CloseActionSource
Creates a new source- Parameters:
dockable- the element which will be observed for changes
-
-
Method Details
-
setControl
Grants access to theCControland allows to create the default action.- Parameters:
control- the access ornull
-
update
protected void update()Called when the content of this source needs to be updated. -
getDockAction
-
getDockActionCount
public int getDockActionCount() -
getLocationHint
-
iterator
-