|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.action.AbstractDockActionSource
bibliothek.gui.dock.station.stack.action.DockActionDistributorSource
public class DockActionDistributorSource
A wrapper around a DockActionSource, this source can be used in combination with
DockActionDistributor to completely hide the existence of the DockActionDistributor.
Clients can use setDockable(Dockable) to enable or disable this source.
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource |
|---|
listeners |
| Constructor Summary | |
|---|---|
DockActionDistributorSource(DockActionDistributor.Target target,
PropertyKey<DockActionDistributor> key)
Creates a new action source |
|
DockActionDistributorSource(DockActionDistributor.Target target,
PropertyKey<DockActionDistributor> key,
Dockable dockable)
Creates a new action source |
|
| Method Summary | |
|---|---|
void |
addDockActionSourceListener(DockActionSourceListener listener)
Adds a listener to this source. |
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 |
removeDockActionSourceListener(DockActionSourceListener listener)
Removes an earlier added listener. |
void |
setDockable(Dockable dockable)
Sets the Dockable whose DockActionSource this should be. |
| Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource |
|---|
fireAdded, fireRemoved, hasListeners, indexOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DockActionDistributorSource(DockActionDistributor.Target target,
PropertyKey<DockActionDistributor> key)
target - where this action source will be shownkey - the name of the property pointing to a DockActionDistributor
public DockActionDistributorSource(DockActionDistributor.Target target,
PropertyKey<DockActionDistributor> key,
Dockable dockable)
target - where this action source will be shownkey - the name of the property pointing to a DockActionDistributordockable - the item for which this source will be used| Method Detail |
|---|
public DockAction getDockAction(int index)
DockActionSourceDockAction of this source.
index - The index of the action
public int getDockActionCount()
DockActionSourceDockActions which are
provided by this source.
DockActionspublic LocationHint getLocationHint()
DockActionSourceActionOffer can choose to ignore these hints, or interpret
them in an unexpected way.
public Iterator<DockAction> iterator()
public void setDockable(Dockable dockable)
Dockable whose DockActionSource this should be.
dockable - the new owner, can be nullpublic void addDockActionSourceListener(DockActionSourceListener listener)
DockActionSourceDockActionSourceListener should
be informed whenever some DockActions are added or
removed from this source.
addDockActionSourceListener in interface DockActionSourceaddDockActionSourceListener in class AbstractDockActionSourcelistener - The listenerpublic void removeDockActionSourceListener(DockActionSourceListener listener)
DockActionSource
removeDockActionSourceListener in interface DockActionSourceremoveDockActionSourceListener in class AbstractDockActionSourcelistener - The listener to removeDockActionSource.addDockActionSourceListener(DockActionSourceListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||