T - the type a Dockable must have such that this
ActionGuard reactspublic class SimpleTypedActionGuard<T extends Dockable> extends TypedActionGuard<T>
| Constructor and Description |
|---|
SimpleTypedActionGuard(Class<T> type,
DockActionSource source)
Sets the type and the source of this guard
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getSource, reactpublic SimpleTypedActionGuard(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)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 nullprotected DockActionSource getTypedSource(T dockable)
TypedActionGuardDockActionSource that will be returned by
getSource.getTypedSource in class TypedActionGuard<T extends Dockable>dockable - The Dockable for which a source is requiredCopyright © 2017 Docking Frames. All rights reserved.