Class ReplaceActionGuard
java.lang.Object
bibliothek.gui.dock.facile.action.ReplaceActionGuard
- All Implemented Interfaces:
ActionGuard
An
ActionGuard that adds a ReplaceAction to all elements
that are Dockable and DockStation at the same time.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether the action of this guard can be seen or notbooleanvoidsetVisible(boolean visible) Sets the visibility of the action.
-
Constructor Details
-
ReplaceActionGuard
Creates a new guard- Parameters:
controller- The controller for which actions are created.
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) Sets the visibility of the action. The visibility can be changed at any time and has effect on all occurrences of the action.- Parameters:
visible- the new state
-
isVisible
public boolean isVisible()Tells whether the action of this guard can be seen or not- Returns:
trueif the action can be seen
-
getSource
- Specified by:
getSourcein interfaceActionGuard
-
react
- Specified by:
reactin interfaceActionGuard
-