org.pentaho.platform.dataaccess.datasource.wizard.controllers
Class WizardDatasourceController

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.ui.xul.impl.AbstractXulEventHandler
          extended by org.pentaho.ui.xul.util.AbstractXulDialogController<org.pentaho.metadata.model.Domain>
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.pentaho.ui.xul.util.DialogController
org.pentaho.ui.xul.util.DialogController.DialogListener<T>
 
Field Summary
static int CSV_TAB
           
static int DEFAULT_CSV_TABLE_ROW_COUNT
           
static int DEFAULT_RELATIONAL_TABLE_ROW_COUNT
           
static int RELATIONAL_TAB
           
 
Constructor Summary
WizardDatasourceController()
           
 
Method Summary
 Boolean beforeTabSwitch(Integer tabIndex)
           
 void closeClearModelWarningDialog()
           
 void closeErrorDialog()
           
 void closeSuccessDialog()
           
 void displayErrorMessage(Throwable th)
           
 DatasourceMessages getDatasourceMessages()
           
 DatasourceModel getDatasourceModel()
           
 String getName()
           
 IXulAsyncDatasourceService getService()
           
 void init()
           
 void initialize()
           
 void onDialogAccept()
           
 void openErrorDialog(String title, String message)
           
 void openSuccesDialog(String title, String message)
           
 void overwriteDialogAccept()
           
 void overwriteDialogCancel()
           
 void saveModel()
           
 void selectCsv()
           
 void selectMql()
           
 void selectOlap()
           
 void selectSql()
           
 void selectXml()
           
 void setBindingFactory(org.pentaho.ui.xul.binding.BindingFactory bf)
           
 void setDatasourceMessages(DatasourceMessages datasourceMessages)
           
 void setDatasourceModel(DatasourceModel model)
           
 void setService(IXulAsyncDatasourceService service)
           
 void showDialog()
           
 void switchTab()
           
 
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
 
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

WizardDatasourceController

public WizardDatasourceController()
Method Detail

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