T - the type of Dockables on which this
ActionGuard will reactpublic abstract class TypedActionGuard<T extends Dockable> extends Object implements ActionGuard
ActionGuard reacts only on Dockables
with a given type.| Constructor and Description |
|---|
TypedActionGuard(Class<T> type)
Constructs the TypedActionGuard and sets the type to react on.
|
| Modifier and Type | Method and Description |
|---|---|
DockActionSource |
getSource(Dockable dockable)
Gets a list of actions for the
Dockable |
protected abstract DockActionSource |
getTypedSource(T dockable)
Gets the
DockActionSource that will be returned by
getSource. |
boolean |
react(Dockable dockable)
|
public boolean react(Dockable dockable)
ActionGuardDockable and tells whether this
ActionGuard is interested in it and wants to add some additional
actions to it, or if this guard
is not made for the dockable.react in interface ActionGuarddockable - The Dockable to testtrue if the ActionGuard.getSource(Dockable)-method
should be invoked, false otherwisepublic DockActionSource getSource(Dockable dockable)
ActionGuardDockablegetSource in interface ActionGuarddockable - The Dockable for which ActionGuard.react(Dockable)
is truedockable.protected abstract DockActionSource getTypedSource(T dockable)
DockActionSource that will be returned by
getSource.dockable - The Dockable for which a source is requiredCopyright © 2017 Docking Frames. All rights reserved.