bibliothek.gui.dock.common.perspective
Class DefaultMissingPerspectiveFactory

java.lang.Object
  extended by bibliothek.gui.dock.common.perspective.DefaultMissingPerspectiveFactory
All Implemented Interfaces:
MissingPerspectiveStrategy

public class DefaultMissingPerspectiveFactory
extends Object
implements MissingPerspectiveStrategy

This default implementation of a MissingPerspectiveStrategy creates CStationPerspectives for the CStations that are already known to the framework.

Author:
Benjamin Sigg

Constructor Summary
DefaultMissingPerspectiveFactory()
           
 
Method Summary
 CStationPerspective createStation(String id, Path typeId)
          Creates the station that represented id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMissingPerspectiveFactory

public DefaultMissingPerspectiveFactory()
Method Detail

createStation

public CStationPerspective createStation(String id,
                                         Path typeId)
Description copied from interface: MissingPerspectiveStrategy
Creates the station that represented id.

Specified by:
createStation in interface MissingPerspectiveStrategy
Parameters:
id - the identifier of the station
typeId - the type of the station, this is the identifier that was returned by CStation.getTypeId(), can be null
Returns:
the new perspective, can be null