bibliothek.gui.dock.perspective
Class Perspective

java.lang.Object
  extended by bibliothek.gui.dock.perspective.Perspective

public abstract class Perspective
extends Object

A Perspective is a helper class that allows clients to create a layout without the need to create DockStations or Dockables.
Perspectives cannot be created directly, clients must first set up the DockSituation that would load the layout and then call the method DockSituation.createPerspective() to create a Perspective which in return is able to write a file that matches the need of its owner DockSituation.

Author:
Benjamin Sigg

Constructor Summary
Perspective()
           
 
Method Summary
protected abstract  DockFactory<?,?> getFactory(String id)
          Gets the factory which is responsible to store an element whose id is id.
protected abstract  String getID(PerspectiveElement<?> element)
          Gets the identifier of the factory that is responsible for element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Perspective

public Perspective()
Method Detail

getID

protected abstract String getID(PerspectiveElement<?> element)
Gets the identifier of the factory that is responsible for element.

Parameters:
element - the element to store
Returns:
the factory that is responsible for element

getFactory

protected abstract DockFactory<?,?> getFactory(String id)
Gets the factory which is responsible to store an element whose id is id.

Parameters:
id - the identifier of the element to store or read
Returns:
the factory, can be null