public interface ActionGuard
added
to a DockController, and whenever the actions
of a Dockable have to be determined, all known ActionGuards are
asked, if they may add some additional actions.DockController.addActionGuard(ActionGuard),
DockController.removeActionGuard(ActionGuard),
DockController.listOffers(Dockable)| Modifier and Type | Method and Description |
|---|---|
DockActionSource |
getSource(Dockable dockable)
Gets a list of actions for the
Dockable |
boolean |
react(Dockable dockable)
|
boolean react(Dockable dockable)
Dockable 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.dockable - The Dockable to testtrue if the getSource(Dockable)-method
should be invoked, false otherwiseDockActionSource getSource(Dockable dockable)
Dockabledockable - The Dockable for which react(Dockable)
is truedockable.Copyright © 2017 Docking Frames. All rights reserved.