org.pentaho.platform.dataaccess.datasource.wizard.steps
Class PhysicalStep

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.platform.dataaccess.datasource.wizard.steps.AbstractWizardStep<DatasourceModel>
          extended by 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


Field Summary
static int CSV_TAB
           
static int DEFAULT_CSV_TABLE_ROW_COUNT
           
static int DEFAULT_RELATIONAL_TABLE_ROW_COUNT
           
static int RELATIONAL_TAB
           
 
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
 
Constructor Summary
PhysicalStep(IXulAsyncDatasourceService datasourceService, IXulAsyncConnectionService connectionService, DatasourceMessages messages, EmbeddedWizard embeddedWizard)
           
 
Method Summary
 Boolean beforeTabSwitch(Integer tabIndex)
           
 void closeClearModelWarningDialog()
           
 void closeErrorDialog()
           
 void closeSuccessDialog()
           
 void createPresentationComponent(org.pentaho.ui.xul.XulDomContainer mainWizardContainer)
           
 void displayErrorMessage(Throwable th)
           
 IXulAsyncConnectionService getConnectionService()
           
 DatasourceMessages getDatasourceMessages()
           
 DatasourceModel getDatasourceModel()
           
 IXulAsyncDatasourceService getDatasourceService()
           
 String getName()
           
 String getStepName()
           
 void initialize()
           
 void initializeModel(DatasourceModel model)
           
 void onCsvInValid()
           
 void onCsvValid()
           
 void onModelInfoInvalid()
           
 void onModelInfoValid()
           
 void onRelationalModelInvalid()
           
 void onRelationalModelInValid()
          Fired when the the model is valid
 void onRelationalModelValid()
          Fired when the the model is valid
 void openErrorDialog(String title, String message)
           
 void openSuccesDialog(String title, String message)
           
 void overwriteDialogCancel()
           
 void selectCsv()
           
 void selectMql()
           
 void selectOlap()
           
 void selectSql()
           
 void selectXml()
           
 void setBindings()
          setBindings() Allows concrete implementations to set their bindings for enclosed properties and Xul defined elements.
 void setConnectionService(IXulAsyncConnectionService connectionService)
           
 void setDatasourceMessages(DatasourceMessages datasourceMessages)
           
 void setDatasourceModel(DatasourceModel model)
           
 void setDatasourceService(IXulAsyncDatasourceService datasourceService)
           
 void setDatasourceTypeControllers(List<IDatasourceTypeController> datasourceTypeControllers)
           
 void setFocus()
           
 void setSelectedPhysicalType(int idx)
           
 boolean stepDeactivatingForward()
          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).
 void switchTab()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

PhysicalStep

public PhysicalStep(IXulAsyncDatasourceService datasourceService,
                    IXulAsyncConnectionService connectionService,
                    DatasourceMessages messages,
                    EmbeddedWizard embeddedWizard)
Method Detail

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