Class CloseActionSource

java.lang.Object
bibliothek.gui.dock.action.AbstractDockActionSource
bibliothek.gui.dock.common.intern.action.CloseActionSource
All Implemented Interfaces:
DockActionSource, Iterable<DockAction>

public class CloseActionSource extends AbstractDockActionSource
An action source that observes one CDockable and either adds or removes a close-action from itself.
Author:
Benjamin Sigg
  • Constructor Details

    • CloseActionSource

      public CloseActionSource(CDockable dockable)
      Creates a new source
      Parameters:
      dockable - the element which will be observed for changes
  • Method Details

    • setControl

      public void setControl(CControlAccess control)
      Grants access to the CControl and allows to create the default action.
      Parameters:
      control - the access or null
    • update

      protected void update()
      Called when the content of this source needs to be updated.
    • getDockAction

      public DockAction getDockAction(int index)
    • getDockActionCount

      public int getDockActionCount()
    • getLocationHint

      public LocationHint getLocationHint()
    • iterator

      public Iterator<DockAction> iterator()