|
||||||||||
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.action.FilteredDockActionSource
public abstract class FilteredDockActionSource
A DockActionSource
which shows a selection of DockActions
fetched from another DockActionSource
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource |
---|
listeners |
Constructor Summary | |
---|---|
FilteredDockActionSource(DockActionSource source)
Creates a new filtered DockActionSource. |
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. |
protected abstract boolean |
include(DockAction action)
Tells whether action should be included in the list of
actions of this source, or not. |
Iterator<DockAction> |
iterator()
|
void |
removeDockActionSourceListener(DockActionSourceListener listener)
Removes an earlier added listener. |
Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource |
---|
fireAdded, fireRemoved, indexOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilteredDockActionSource(DockActionSource source)
source
- the source from which DockActions
are fetched,
must not be null
Method Detail |
---|
public Iterator<DockAction> iterator()
public void addDockActionSourceListener(DockActionSourceListener listener)
DockActionSource
DockActionSourceListener
should
be informed whenever some DockActions
are added or
removed from this source.
addDockActionSourceListener
in interface DockActionSource
addDockActionSourceListener
in class AbstractDockActionSource
listener
- The listenerpublic void removeDockActionSourceListener(DockActionSourceListener listener)
DockActionSource
removeDockActionSourceListener
in interface DockActionSource
removeDockActionSourceListener
in class AbstractDockActionSource
listener
- The listener to removeDockActionSource.addDockActionSourceListener(DockActionSourceListener)
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.
protected abstract boolean include(DockAction action)
action
should be included in the list of
actions of this source, or not.
action
- the action to test
true
if action
should be shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |