Class ReplaceActionGuard

java.lang.Object
bibliothek.gui.dock.facile.action.ReplaceActionGuard
All Implemented Interfaces:
ActionGuard

@ClientOnly public class ReplaceActionGuard extends Object implements ActionGuard
An ActionGuard that adds a ReplaceAction to all elements that are Dockable and DockStation at the same time.
Author:
Benjamin Sigg
  • Constructor Details

    • ReplaceActionGuard

      public ReplaceActionGuard(DockController controller)
      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:
      true if the action can be seen
    • getSource

      public DockActionSource getSource(Dockable dockable)
      Specified by:
      getSource in interface ActionGuard
    • react

      public boolean react(Dockable dockable)
      Specified by:
      react in interface ActionGuard