bibliothek.gui.dock.common.perspective
Class CPerspectiveMultipleIdentifierCollection

java.lang.Object
  extended by 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 Summary
CPerspectiveMultipleIdentifierCollection(String factoryId, CPerspective perspective)
          Creates a new object
 
Method Summary
 CPerspective getPerspective()
          Gets the owner of this access object.
 String getUniqueId(MultipleCDockablePerspective element)
          Searches or creates a unique identifier that matches element.
 void putDockable(String id, MultipleCDockablePerspective perspective)
          Stores the element perspective using the identifier id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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