Class 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 Detail

      • shell

        protected org.eclipse.swt.widgets.Shell shell
      • spoon

        protected Spoon 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 Detail

      • 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 Detail

      • 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

        public Spoon getSpoon()
        Returns:
        the spoon
      • setSpoon

        public void setSpoon​(Spoon spoon)
        Parameters:
        spoon - the spoon to set
      • canBeClosed

        public boolean canBeClosed()
        Description copied from interface: TabItemInterface
        Closes the content behind the tab, de-allocates resources.
        Specified by:
        canBeClosed in interface TabItemInterface
        Returns:
        true if the tab was closed, false if it was prevented by the user. (are you sure dialog)
      • 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:
        getMeta in interface TabItemInterface
      • getData

        public Object getData()
        Specified by:
        getData in interface org.pentaho.ui.xul.impl.XulEventHandler
      • getName

        public String getName()
        Specified by:
        getName in interface org.pentaho.ui.xul.impl.XulEventHandler
      • getXulDomContainer

        public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
        Specified by:
        getXulDomContainer in interface org.pentaho.ui.xul.impl.XulEventHandler
      • setData

        public void setData​(Object data)
        Specified by:
        setData in interface org.pentaho.ui.xul.impl.XulEventHandler
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface org.pentaho.ui.xul.impl.XulEventHandler
      • setXulDomContainer

        public void setXulDomContainer​(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
        Specified by:
        setXulDomContainer in interface org.pentaho.ui.xul.impl.XulEventHandler