@ClientOnly public class ReplaceActionGuard extends Object implements ActionGuard
ActionGuard that adds a ReplaceAction to all elements
that are Dockable and DockStation at the same time.| Constructor and Description |
|---|
ReplaceActionGuard(DockController controller)
Creates a new guard
|
| Modifier and Type | Method and Description |
|---|---|
DockActionSource |
getSource(Dockable dockable) |
boolean |
isVisible()
Tells whether the action of this guard can be seen or not
|
boolean |
react(Dockable dockable) |
void |
setVisible(boolean visible)
Sets the visibility of the action.
|
public ReplaceActionGuard(DockController controller)
controller - The controller for which actions are created.public void setVisible(boolean visible)
visible - the new statepublic boolean isVisible()
true if the action can be seenpublic DockActionSource getSource(Dockable dockable)
getSource in interface ActionGuardpublic boolean react(Dockable dockable)
react in interface ActionGuardCopyright © 2018. All rights reserved.