|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.TypedActionGuard<T> bibliothek.gui.dock.action.SimpleTypedActionGuard<T>
T
- the type a Dockable
must have such that this
ActionGuard
reactspublic class SimpleTypedActionGuard<T extends Dockable>
An ActionGuard
that reacts
if the
Dockable
has the exact type that was set through the
constructor
.
Constructor Summary | |
---|---|
SimpleTypedActionGuard(java.lang.Class<T> type,
DockActionSource source)
Sets the type and the source of this guard |
Method Summary | |
---|---|
DockActionSource |
getSource()
Gets the DockActionSource that will be added to all
Dockables with the correct type. |
protected DockActionSource |
getTypedSource(T dockable)
Gets the DockActionSource that will be returned by
getSource . |
void |
setSource(DockActionSource source)
Sets the source of this ActionGuard. |
Methods inherited from class bibliothek.gui.dock.action.TypedActionGuard |
---|
getSource, react |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTypedActionGuard(java.lang.Class<T> type, DockActionSource source)
type
- The type for which this SimpleTypedActionGuard will react.
The method TypedActionGuard.react(Dockable)
will return true
only
if the Dockable
has this typesource
- The source that will be returned by TypedActionGuard.getSource(Dockable)
Method Detail |
---|
public DockActionSource getSource()
DockActionSource
that will be added to all
Dockables
with the correct type.
public void setSource(DockActionSource source)
TypedActionGuard.getSource(Dockable)
and so it will be added to all
Dockables on which this ActionGuard
reacts
.
source
- The source, not null
protected DockActionSource getTypedSource(T dockable)
TypedActionGuard
DockActionSource
that will be returned by
getSource
.
getTypedSource
in class TypedActionGuard<T extends Dockable>
dockable
- The Dockable
for which a source is required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |