org.pentaho.platform.dataaccess.datasource.wizard.controllers
Class LinearWizardController
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.platform.dataaccess.datasource.wizard.controllers.LinearWizardController
- All Implemented Interfaces:
- IWizardController, org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.XulEventSource
public class LinearWizardController
- extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
- implements IWizardController
The wizard-controler manages the navigation between the wizard-panes. All panes are organized as a list, where
each panel cannot be enabled if the previous panels are not valid or enabled.
It is possible to jump back to previous steps and change values there. In some cases, this will just update
the model, but in some cases this will invalidate the subsequent steps (for instance, if the query has been
changed).
- Author:
- William Seyler
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler |
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer |
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
LinearWizardController
public LinearWizardController(org.pentaho.ui.xul.binding.BindingFactory bf,
DatasourceModel datasourceModel)
addStep
public void addStep(AbstractWizardStep step)
removeStep
public void removeStep(IWizardStep step)
getStep
public IWizardStep getStep(int step)
- Specified by:
getStep
in interface IWizardController
getStepCount
public int getStepCount()
- Specified by:
getStepCount
in interface IWizardController
setActiveStep
public void setActiveStep(int step)
- Specified by:
setActiveStep
in interface IWizardController
getActiveStep
public int getActiveStep()
- Specified by:
getActiveStep
in interface IWizardController
initialize
public void initialize()
- Specified by:
initialize
in interface IWizardController
cancel
public void cancel()
- Specified by:
cancel
in interface IWizardController
setCancelled
public void setCancelled(boolean canceled)
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface IWizardController
finish
public void finish()
- Specified by:
finish
in interface IWizardController
overwriteDialogAccept
public void overwriteDialogAccept()
overwriteDialogCancel
public void overwriteDialogCancel()
isFinished
public boolean isFinished()
- Specified by:
isFinished
in interface IWizardController
setFinished
public void setFinished(boolean finished)
showWarningDialog
public void showWarningDialog()
next
public void next()
back
public void back()
getName
public String getName()
- Specified by:
getName
in interface org.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getName
in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
onLoad
public void onLoad()
registerMainXULContainer
public void registerMainXULContainer(org.pentaho.ui.xul.XulDomContainer mainWizardContainer)
- Parameters:
mainWizardContainer
-
setBindingFactory
public void setBindingFactory(org.pentaho.ui.xul.binding.BindingFactory bf)
- Specified by:
setBindingFactory
in interface IWizardController
getBindingFactory
public org.pentaho.ui.xul.binding.BindingFactory getBindingFactory()
- Specified by:
getBindingFactory
in interface IWizardController