Package org.pentaho.mantle.client.ui
Class PerspectiveManager
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- org.pentaho.mantle.client.ui.PerspectiveManager
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Iterable<com.google.gwt.user.client.ui.Widget>
public class PerspectiveManager extends com.google.gwt.user.client.ui.SimplePanel
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADMIN_PERSPECTIVE
static String
BROWSER_PERSPECTIVE
static String
HOME_PERSPECTIVE
static String
OPENED_PERSPECTIVE
static String
PROPERTIES_EXTENSION
static String
SCHEDULES_PERSPECTIVE
static String
SEPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enablePerspective(String perspectiveId, boolean enabled)
org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective
getActivePerspective()
static PerspectiveManager
getInstance()
boolean
isLoaded()
void
setActivePerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective activePerspective)
void
setBrowserMenuItem(org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem menuItem)
void
setLoaded(boolean loaded)
boolean
setPerspective(String perspectiveId)
protected void
setPluginPerspectives(ArrayList<org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective> perspectives)
void
setSchedulesMenuItem(org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem menuItem)
void
showPerspectiveWithHighestPriority()
Show the perspective defined as with the highest priority-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
ADMIN_PERSPECTIVE
public static final String ADMIN_PERSPECTIVE
- See Also:
- Constant Field Values
-
SCHEDULES_PERSPECTIVE
public static final String SCHEDULES_PERSPECTIVE
- See Also:
- Constant Field Values
-
OPENED_PERSPECTIVE
public static final String OPENED_PERSPECTIVE
- See Also:
- Constant Field Values
-
HOME_PERSPECTIVE
public static final String HOME_PERSPECTIVE
- See Also:
- Constant Field Values
-
BROWSER_PERSPECTIVE
public static final String BROWSER_PERSPECTIVE
- See Also:
- Constant Field Values
-
PROPERTIES_EXTENSION
public static final String PROPERTIES_EXTENSION
- See Also:
- Constant Field Values
-
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static PerspectiveManager getInstance()
-
setPluginPerspectives
protected void setPluginPerspectives(ArrayList<org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective> perspectives)
-
enablePerspective
public void enablePerspective(String perspectiveId, boolean enabled)
-
setPerspective
public boolean setPerspective(String perspectiveId)
-
showPerspectiveWithHighestPriority
public void showPerspectiveWithHighestPriority()
Show the perspective defined as with the highest priority
-
getActivePerspective
public org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective getActivePerspective()
-
setActivePerspective
public void setActivePerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective activePerspective)
-
setBrowserMenuItem
public void setBrowserMenuItem(org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem menuItem)
-
setSchedulesMenuItem
public void setSchedulesMenuItem(org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem menuItem)
-
isLoaded
public boolean isLoaded()
-
setLoaded
public void setLoaded(boolean loaded)
-
-