public class SpoonPerspectiveManager extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SpoonPerspectiveManager.SpoonPerspectiveComparator |
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 |
hidePerspective(String perspectiveId)
Hides perspective with
perspectiveId . |
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.
|
void |
showPerspective(String perspectiveId)
Shows perspective with
perspectiveId if it is not shown yet. |
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 void showPerspective(String perspectiveId)
perspectiveId
if it is not shown yet.public void hidePerspective(String perspectiveId)
perspectiveId
.public List<SpoonPerspective> getPerspectives()
public void activatePerspective(Class<? extends SpoonPerspective> clazz) throws KettleException
clazz
- SpoonPerspective class literalKettleException
- 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()
Copyright © 2019 Hitachi Vantara. All rights reserved.