Package org.pentaho.di.ui.spoon
Class SpoonBrowser
java.lang.Object
org.pentaho.di.ui.spoon.SpoonBrowser
- All Implemented Interfaces:
TabItemInterface,org.pentaho.ui.xul.impl.XulEventHandler
public class SpoonBrowser
extends Object
implements TabItemInterface, org.pentaho.ui.xul.impl.XulEventHandler
This class handles the display of help information like the welcome page and JDBC info in an embedded browser.
- Since:
- November 2006
- Author:
- Matt
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpoonBrowser(org.eclipse.swt.widgets.Composite parent, Spoon spoon, String stringUrl, boolean isURL) SpoonBrowser(org.eclipse.swt.widgets.Composite parent, Spoon spoon, String stringUrl, boolean isURL, boolean showControls, org.eclipse.swt.browser.LocationListener listener) SpoonBrowser(org.eclipse.swt.widgets.Composite parent, Spoon spoon, String stringUrl, boolean isURL, org.eclipse.swt.browser.LocationListener listener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocationListener(org.eclipse.swt.browser.LocationListener listener) protected voidbooleanvoidvoidbooleanCloses the content behind the tab, de-allocates resources.booleanprotected org.eclipse.swt.browser.Browserorg.eclipse.swt.browser.Browserorg.eclipse.swt.widgets.CompositegetData()org.pentaho.di.core.EngineMetaInterfacegetMeta()getName()org.eclipse.swt.widgets.ShellgetShell()getSpoon()org.pentaho.ui.xul.XulDomContainerbooleanvoidopenFile()voidsetComposite(org.eclipse.swt.widgets.Composite composite) voidvoidbooleansetFocus()voidvoidvoidsetXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer) int
-
Field Details
-
shell
protected org.eclipse.swt.widgets.Shell shell -
spoon
-
composite
protected org.eclipse.swt.widgets.Composite composite -
toolbar
protected org.pentaho.ui.xul.containers.XulToolbar toolbar -
browser
protected org.eclipse.swt.browser.Browser browser
-
-
Constructor Details
-
SpoonBrowser
public SpoonBrowser(org.eclipse.swt.widgets.Composite parent, Spoon spoon, String stringUrl, boolean isURL) throws org.eclipse.swt.SWTError - Throws:
org.eclipse.swt.SWTError
-
SpoonBrowser
public SpoonBrowser(org.eclipse.swt.widgets.Composite parent, Spoon spoon, String stringUrl, boolean isURL, org.eclipse.swt.browser.LocationListener listener) throws org.eclipse.swt.SWTError - Throws:
org.eclipse.swt.SWTError
-
SpoonBrowser
public SpoonBrowser(org.eclipse.swt.widgets.Composite parent, Spoon spoon, String stringUrl, boolean isURL, boolean showControls, org.eclipse.swt.browser.LocationListener listener) throws org.eclipse.swt.SWTError - Throws:
org.eclipse.swt.SWTError
-
-
Method Details
-
createBrowser
protected org.eclipse.swt.browser.Browser createBrowser() -
addLocationListener
public void addLocationListener(org.eclipse.swt.browser.LocationListener listener) -
addToolBar
protected void addToolBar() -
openFile
public void openFile() -
browseBack
public void browseBack() -
browseForward
public void browseForward() -
getBrowser
public org.eclipse.swt.browser.Browser getBrowser()- Returns:
- the browser
-
getShell
public org.eclipse.swt.widgets.Shell getShell()- Returns:
- the shell
-
getSpoon
- Returns:
- the spoon
-
setSpoon
- Parameters:
spoon- the spoon to set
-
applyChanges
public boolean applyChanges()- Specified by:
applyChangesin interfaceTabItemInterface
-
canBeClosed
public boolean canBeClosed()Description copied from interface:TabItemInterfaceCloses the content behind the tab, de-allocates resources.- Specified by:
canBeClosedin interfaceTabItemInterface- Returns:
- true if the tab was closed, false if it was prevented by the user. (are you sure dialog)
-
getManagedObject
- Specified by:
getManagedObjectin interfaceTabItemInterface
-
hasContentChanged
public boolean hasContentChanged()- Specified by:
hasContentChangedin interfaceTabItemInterface
-
showChangedWarning
public int showChangedWarning()- Specified by:
showChangedWarningin interfaceTabItemInterface
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite()- Returns:
- the composite
-
setComposite
public void setComposite(org.eclipse.swt.widgets.Composite composite) - Parameters:
composite- the composite to set
-
getMeta
public org.pentaho.di.core.EngineMetaInterface getMeta()- Specified by:
getMetain interfaceTabItemInterface
-
canHandleSave
public boolean canHandleSave()- Specified by:
canHandleSavein interfaceTabItemInterface
-
setFocus
public boolean setFocus()- Specified by:
setFocusin interfaceTabItemInterface
-
getData
- Specified by:
getDatain interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getName
- Specified by:
getNamein interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getXulDomContainer
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()- Specified by:
getXulDomContainerin interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setData
- Specified by:
setDatain interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setName
- Specified by:
setNamein interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setXulDomContainer
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer) - Specified by:
setXulDomContainerin interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setControlStates
public void setControlStates()- Specified by:
setControlStatesin interfaceTabItemInterface
-
getChangedWarning
- Specified by:
getChangedWarningin interfaceTabItemInterface
-