|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.ui.spoon.SpoonPerspectiveManager
public class SpoonPerspectiveManager
Singleton Object controlling SpoonPerspectives. A Perspective is an optional Spoon mode that can be added by a SpoonPlugin. Perspectives take over the look of the entire application by replacing the main UI area.
Method Summary | |
---|---|
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. |
boolean |
isForcePerspective()
Returns whether this perspective manager is prevented from switching perspectives |
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 |
setXulDoc(org.pentaho.ui.xul.XulDomContainer doc)
Receives the main XUL document comprising the menuing system and main layout of Spoon. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 KettleException
clazz
- SpoonPerspective class literal
KettleException
- throws a KettleException if no perspective is found for the given parameterpublic SpoonPerspective getActivePerspective()
public boolean isForcePerspective()
public void setForcePerspective(boolean forcePerspective)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |