public class SpoonPerspectiveManager extends Object
| Modifier and Type | Method and Description | 
|---|---|
void | 
activatePerspective(Class<? extends SpoonPerspective> clazz)
Activates the given instance of the class literal passed in. 
 | 
void | 
addPerspective(SpoonPerspective perspective)
Adds a SpoonPerspective making it available to be activated later. 
 | 
SpoonPerspective | 
getActivePerspective()
Returns the current active perspective. 
 | 
static SpoonPerspectiveManager | 
getInstance()
Returns the single instance of this class. 
 | 
List<SpoonPerspective> | 
getPerspectives()
Returns an unmodifiable List of perspectives in no set order. 
 | 
String | 
getStartupPerspective()  | 
void | 
initialize()  | 
boolean | 
isForcePerspective()
Returns whether this perspective manager is prevented from switching perspectives 
 | 
void | 
removePerspective(SpoonPerspective per)  | 
void | 
setDeck(org.pentaho.ui.xul.containers.XulDeck deck)
Sets the deck used by the Perspective Manager to display Perspectives in. 
 | 
void | 
setForcePerspective(boolean forcePerspective)
Sets whether this perspective manager is prevented from switching perspectives. 
 | 
void | 
setStartupPerspective(String startupPerspective)  | 
void | 
setXulDoc(org.pentaho.ui.xul.XulDomContainer doc)
Receives the main XUL document comprising the menuing system and main layout of Spoon. 
 | 
public String getStartupPerspective()
public void setStartupPerspective(String startupPerspective)
public static SpoonPerspectiveManager getInstance()
public void setDeck(org.pentaho.ui.xul.containers.XulDeck deck)
deck - public void setXulDoc(org.pentaho.ui.xul.XulDomContainer doc)
doc - public void addPerspective(SpoonPerspective perspective)
perspective - public List<SpoonPerspective> getPerspectives()
public void activatePerspective(Class<? extends SpoonPerspective> clazz) throws org.pentaho.di.core.exception.KettleException
clazz - SpoonPerspective class literalorg.pentaho.di.core.exception.KettleException - throws a KettleException if no perspective is found for the given parameterpublic SpoonPerspective getActivePerspective()
public boolean isForcePerspective()
public void setForcePerspective(boolean forcePerspective)
public void removePerspective(SpoonPerspective per)
public void initialize()