org.pentaho.platform.dataaccess.datasource.wizard.steps
Class PhysicalStep
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.platform.dataaccess.datasource.wizard.steps.AbstractWizardStep<DatasourceModel>
org.pentaho.platform.dataaccess.datasource.wizard.steps.PhysicalStep
- All Implemented Interfaces:
- IModelInfoValidationListener, IRelationalModelValidationListener, IWizardStep, org.pentaho.ui.xul.XulEventSource
public class PhysicalStep
- extends AbstractWizardStep<DatasourceModel>
- implements IRelationalModelValidationListener, IModelInfoValidationListener
Fields inherited from class org.pentaho.platform.dataaccess.datasource.wizard.steps.AbstractWizardStep |
DISABLED_PROPERTY_NAME, FINISHABLE_PROPERTY_NAME, PREVIEWABLE_PROPERTY_NAME, SPACER_IMAGE_SRC, STEP_GRID_ID, STEP_IMAGE_SRC, STEP_ROWS_ID, VALID_PROPERTY_NAME, XUL_IMAGE_TYPE, XUL_LABEL_TYPE, XUL_ROW_TYPE |
Methods inherited from class org.pentaho.platform.dataaccess.datasource.wizard.steps.AbstractWizardStep |
getBindingFactory, getDocument, getModel, isDisabled, isFinishable, isValid, setBindingFactory, setDisabled, setDocument, setFinishable, setModel, setStepImageVisible, stepActivatingForward, stepActivatingReverse, stepDeactivatingReverse |
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
DEFAULT_RELATIONAL_TABLE_ROW_COUNT
public static final int DEFAULT_RELATIONAL_TABLE_ROW_COUNT
- See Also:
- Constant Field Values
DEFAULT_CSV_TABLE_ROW_COUNT
public static final int DEFAULT_CSV_TABLE_ROW_COUNT
- See Also:
- Constant Field Values
RELATIONAL_TAB
public static final int RELATIONAL_TAB
- See Also:
- Constant Field Values
CSV_TAB
public static final int CSV_TAB
- See Also:
- Constant Field Values
PhysicalStep
public PhysicalStep(IXulAsyncDatasourceService datasourceService,
IXulAsyncConnectionService connectionService,
DatasourceMessages messages,
EmbeddedWizard embeddedWizard)
setDatasourceTypeControllers
public void setDatasourceTypeControllers(List<IDatasourceTypeController> datasourceTypeControllers)
createPresentationComponent
public void createPresentationComponent(org.pentaho.ui.xul.XulDomContainer mainWizardContainer)
throws org.pentaho.ui.xul.XulException
- Specified by:
createPresentationComponent
in interface IWizardStep
- Overrides:
createPresentationComponent
in class AbstractWizardStep<DatasourceModel>
- Throws:
org.pentaho.ui.xul.XulException
- Creates the presentation layer associated with this IWizardStep. This is usually
done by loading an overlay into the main_wzard_panel.xul
initialize
public void initialize()
initializeModel
public void initializeModel(DatasourceModel model)
setDatasourceModel
public void setDatasourceModel(DatasourceModel model)
getDatasourceModel
public DatasourceModel getDatasourceModel()
getConnectionService
public IXulAsyncConnectionService getConnectionService()
setConnectionService
public void setConnectionService(IXulAsyncConnectionService connectionService)
getName
public String getName()
overwriteDialogCancel
public void overwriteDialogCancel()
closeClearModelWarningDialog
public void closeClearModelWarningDialog()
switchTab
public void switchTab()
beforeTabSwitch
public Boolean beforeTabSwitch(Integer tabIndex)
selectCsv
public void selectCsv()
selectOlap
public void selectOlap()
selectSql
public void selectSql()
selectMql
public void selectMql()
selectXml
public void selectXml()
getDatasourceService
public IXulAsyncDatasourceService getDatasourceService()
setDatasourceService
public void setDatasourceService(IXulAsyncDatasourceService datasourceService)
openErrorDialog
public void openErrorDialog(String title,
String message)
closeErrorDialog
public void closeErrorDialog()
openSuccesDialog
public void openSuccesDialog(String title,
String message)
closeSuccessDialog
public void closeSuccessDialog()
displayErrorMessage
public void displayErrorMessage(Throwable th)
setDatasourceMessages
public void setDatasourceMessages(DatasourceMessages datasourceMessages)
- Parameters:
datasourceMessages
- the datasourceMessages to set
getDatasourceMessages
public DatasourceMessages getDatasourceMessages()
- Returns:
- the datasourceMessages
getStepName
public String getStepName()
- Specified by:
getStepName
in interface IWizardStep
- Returns:
- a string (must be localized) that describes this step
setBindings
public void setBindings()
- Description copied from interface:
IWizardStep
- setBindings()
Allows concrete implementations to set their bindings for enclosed properties
and Xul defined elements.
- Specified by:
setBindings
in interface IWizardStep
setFocus
public void setFocus()
setSelectedPhysicalType
public void setSelectedPhysicalType(int idx)
stepDeactivatingForward
public boolean stepDeactivatingForward()
- Description copied from interface:
IWizardStep
- Called on a step just before it becomes deactivated (before the next active step is shown)
on response to moving forward in the step list (next).
- Specified by:
stepDeactivatingForward
in interface IWizardStep
- Overrides:
stepDeactivatingForward
in class AbstractWizardStep<DatasourceModel>
- Returns:
- boolean indicating that this step should be allowed to become deactive
onRelationalModelInvalid
public void onRelationalModelInvalid()
onRelationalModelValid
public void onRelationalModelValid()
- Description copied from interface:
IRelationalModelValidationListener
- Fired when the the model is valid
- Specified by:
onRelationalModelValid
in interface IRelationalModelValidationListener
onCsvInValid
public void onCsvInValid()
- Specified by:
onCsvInValid
in interface IModelInfoValidationListener
onCsvValid
public void onCsvValid()
- Specified by:
onCsvValid
in interface IModelInfoValidationListener
onModelInfoInvalid
public void onModelInfoInvalid()
- Specified by:
onModelInfoInvalid
in interface IModelInfoValidationListener
onModelInfoValid
public void onModelInfoValid()
- Specified by:
onModelInfoValid
in interface IModelInfoValidationListener
onRelationalModelInValid
public void onRelationalModelInValid()
- Description copied from interface:
IRelationalModelValidationListener
- Fired when the the model is valid
- Specified by:
onRelationalModelInValid
in interface IRelationalModelValidationListener