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)
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)
Dockable
dockable
- The Dockable
for which react(Dockable)
is true
dockable
.