Package org.pentaho.di.ui.spoon
Class MainSpoonPerspective
java.lang.Object
org.pentaho.di.ui.spoon.MainSpoonPerspective
- All Implemented Interfaces:
SpoonPerspective,SpoonPerspectiveImageProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMainSpoonPerspective(org.eclipse.swt.widgets.Composite ui, TabSet tabfolder) -
Method Summary
Modifier and TypeMethodDescriptionvoidAllows outside code to register to for activation events for this perspective.org.pentaho.di.core.EngineMetaInterfaceReturn the active EngineMeta in the case of perspectives with save-able content.Returns a localized name for the perspectiveList<org.pentaho.ui.xul.impl.XulEventHandler>Returns a list of Xul Event Handlers (controllers) to be added to Xul Containers in Spoon.getId()Returns a unique identifier for this perspectiveList<org.pentaho.ui.xul.XulOverlay>A list of Xul Overlays to be applied and removed when the perspective is loaded or unloadedPerspectives will be represented in spoon by an icon on the main toolbar.Get the path to the perspective's icon, can be within a jar (classLoader) or file-system.org.eclipse.swt.widgets.CompositegetUI()Returns the main UI for the perspective.voidsetActive(boolean active) Called by Spoon whenever the active state of a perspective changes.
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
MainSpoonPerspective
-
-
Method Details
-
getId
Description copied from interface:SpoonPerspectiveReturns a unique identifier for this perspective- Specified by:
getIdin interfaceSpoonPerspective- Returns:
- unique ID
-
getDisplayName
Description copied from interface:SpoonPerspectiveReturns a localized name for the perspective- Specified by:
getDisplayNamein interfaceSpoonPerspective- Parameters:
l- current Locale- Returns:
- localized name
-
getPerspectiveIcon
Description copied from interface:SpoonPerspectivePerspectives will be represented in spoon by an icon on the main toolbar. This method returns the InputStream for that icon.- Specified by:
getPerspectiveIconin interfaceSpoonPerspective- Returns:
- icon InputStream
-
getPerspectiveIconPath
Description copied from interface:SpoonPerspectiveImageProviderGet the path to the perspective's icon, can be within a jar (classLoader) or file-system.- Specified by:
getPerspectiveIconPathin interfaceSpoonPerspectiveImageProvider- Returns:
- the path to the perspective's icon
-
getUI
public org.eclipse.swt.widgets.Composite getUI()Description copied from interface:SpoonPerspectiveReturns the main UI for the perspective.- Specified by:
getUIin interfaceSpoonPerspective- Returns:
- UI Composite
-
setActive
public void setActive(boolean active) Description copied from interface:SpoonPerspectiveCalled by Spoon whenever the active state of a perspective changes.- Specified by:
setActivein interfaceSpoonPerspective
-
getEventHandlers
Description copied from interface:SpoonPerspectiveReturns a list of Xul Event Handlers (controllers) to be added to Xul Containers in Spoon. Perspectives may overwrite existing event handlers by registering one with the same ID.- Specified by:
getEventHandlersin interfaceSpoonPerspective- Returns:
- list of XulEventHandlers
-
getOverlays
Description copied from interface:SpoonPerspectiveA list of Xul Overlays to be applied and removed when the perspective is loaded or unloaded- Specified by:
getOverlaysin interfaceSpoonPerspective- Returns:
- List of XulOverlays.
-
addPerspectiveListener
Description copied from interface:SpoonPerspectiveAllows outside code to register to for activation events for this perspective.- Specified by:
addPerspectiveListenerin interfaceSpoonPerspective
-
getActiveMeta
public org.pentaho.di.core.EngineMetaInterface getActiveMeta()Description copied from interface:SpoonPerspectiveReturn the active EngineMeta in the case of perspectives with save-able content.- Specified by:
getActiveMetain interfaceSpoonPerspective- Returns:
- active EngineMetaInterface
-