Class CPerspectiveMultipleIdentifierCollection

java.lang.Object
bibliothek.gui.dock.common.perspective.CPerspectiveMultipleIdentifierCollection

public class CPerspectiveMultipleIdentifierCollection extends Object
A helper class for CommonMultipleDockableFactory, used when interacting with a CPerspective.
Author:
Benjamin Sigg
  • Constructor Details

    • CPerspectiveMultipleIdentifierCollection

      public CPerspectiveMultipleIdentifierCollection(String factoryId, CPerspective perspective)
      Creates a new object
      Parameters:
      factoryId - the unique identifier of the factory that is using this collection
      perspective - the owner of this object, not null
  • Method Details

    • getPerspective

      public CPerspective getPerspective()
      Gets the owner of this access object.
      Returns:
      the owner
    • getUniqueId

      public String getUniqueId(MultipleCDockablePerspective element)
      Searches or creates a unique identifier that matches element.
      Parameters:
      element - the element whose identifier is searched
      Returns:
      the identifier, may be null
    • putDockable

      public void putDockable(String id, MultipleCDockablePerspective perspective)
      Stores the element perspective using the identifier id.
      Parameters:
      id - the unique identifier of perspective
      perspective - the new perspective