org.pentaho.platform.dataaccess.datasource.wizard.controllers
Class WizardDatasourceController
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.ui.xul.util.AbstractXulDialogController<org.pentaho.metadata.model.Domain>
org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardDatasourceController
- All Implemented Interfaces:
- org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.util.DialogController<org.pentaho.metadata.model.Domain>, org.pentaho.ui.xul.XulEventSource
public class WizardDatasourceController
- extends org.pentaho.ui.xul.util.AbstractXulDialogController<org.pentaho.metadata.model.Domain>
Nested classes/interfaces inherited from interface org.pentaho.ui.xul.util.DialogController |
org.pentaho.ui.xul.util.DialogController.DialogListener<T> |
Methods inherited from class org.pentaho.ui.xul.util.AbstractXulDialogController |
addDialogListener, hideDialog, onDialogCancel, onDialogReady, removeDialogListener |
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 |
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
WizardDatasourceController
public WizardDatasourceController()
init
public void init()
initialize
public void initialize()
showDialog
public void showDialog()
- Specified by:
showDialog
in interface org.pentaho.ui.xul.util.DialogController<org.pentaho.metadata.model.Domain>
- Overrides:
showDialog
in class org.pentaho.ui.xul.util.AbstractXulDialogController<org.pentaho.metadata.model.Domain>
setBindingFactory
public void setBindingFactory(org.pentaho.ui.xul.binding.BindingFactory bf)
setDatasourceModel
public void setDatasourceModel(DatasourceModel model)
getDatasourceModel
public DatasourceModel getDatasourceModel()
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
saveModel
public void saveModel()
overwriteDialogAccept
public void overwriteDialogAccept()
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()
getService
public IXulAsyncDatasourceService getService()
setService
public void setService(IXulAsyncDatasourceService service)
openErrorDialog
public void openErrorDialog(String title,
String message)
closeErrorDialog
public void closeErrorDialog()
openSuccesDialog
public void openSuccesDialog(String title,
String message)
closeSuccessDialog
public void closeSuccessDialog()
onDialogAccept
public void onDialogAccept()
- Overrides:
onDialogAccept
in class org.pentaho.ui.xul.util.AbstractXulDialogController<org.pentaho.metadata.model.Domain>
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