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

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.ui.xul.impl.AbstractXulEventHandler
          extended by org.pentaho.platform.dataaccess.datasource.wizard.controllers.CsvDatasourceController
All Implemented Interfaces:
IDatasourceTypeController, org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.XulEventSource

public class CsvDatasourceController
extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
implements IDatasourceTypeController


Field Summary
static String COMMA
           
static String EMPTY_STRING
           
static int MAX_COL_SIZE
           
static int MAX_SAMPLE_DATA_ROWS
           
 
Constructor Summary
CsvDatasourceController()
           
 
Method Summary
 void closeAggregationEditorDialog()
           
 void closeApplyCsvConfirmationDialog()
           
 void closeErrorDialog()
           
 void closeRegenerateModelConfirmationDialog()
           
 void closeSampleDataDialog()
           
 void closeSuccessDialog()
           
 void displayErrorMessage(Throwable th)
           
 boolean finishing()
           
 DatasourceMessages getDatasourceMessages()
           
 DatasourceModel getDatasourceModel()
           
 String getName()
           
 WaitingDialog getWaitingDialog()
           
 void hideWaitingDialog()
           
 void init()
           
 void initializeBusinessData(DatasourceModel model)
           
 void openErrorDialog(String title, String message)
           
 void openSuccesDialog(String title, String message)
           
 void saveAggregationValues()
           
 void setBindingFactory(org.pentaho.ui.xul.binding.BindingFactory bf)
           
 void setDatasourceMessages(DatasourceMessages datasourceMessages)
           
 void setDatasourceModel(DatasourceModel model)
           
 void setSelectedCsvDataRow(int row)
           
 void setService(IXulAsyncDatasourceService service)
           
 void setWaitingDialog(WaitingDialog waitingDialog)
           
 void showWaitingDialog(String title, String message)
           
 void submitCsv()
           
 boolean supportsBusinessData(DatasourceModel businessData)
           
 void uploadFailure(Throwable t)
           
 
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

MAX_SAMPLE_DATA_ROWS

public static final int MAX_SAMPLE_DATA_ROWS
See Also:
Constant Field Values

MAX_COL_SIZE

public static final int MAX_COL_SIZE
See Also:
Constant Field Values

EMPTY_STRING

public static final String EMPTY_STRING
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values
Constructor Detail

CsvDatasourceController

public CsvDatasourceController()
Method Detail

init

public void init()

setSelectedCsvDataRow

public void setSelectedCsvDataRow(int row)

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

setService

public void setService(IXulAsyncDatasourceService service)

submitCsv

public void submitCsv()

closeApplyCsvConfirmationDialog

public void closeApplyCsvConfirmationDialog()

uploadFailure

public void uploadFailure(Throwable t)

openErrorDialog

public void openErrorDialog(String title,
                            String message)

closeErrorDialog

public void closeErrorDialog()

openSuccesDialog

public void openSuccesDialog(String title,
                             String message)

closeSuccessDialog

public void closeSuccessDialog()

showWaitingDialog

public void showWaitingDialog(String title,
                              String message)

hideWaitingDialog

public void hideWaitingDialog()

closeRegenerateModelConfirmationDialog

public void closeRegenerateModelConfirmationDialog()

displayErrorMessage

public void displayErrorMessage(Throwable th)

setDatasourceMessages

public void setDatasourceMessages(DatasourceMessages datasourceMessages)
Parameters:
datasourceMessages - the datasourceMessages to set

getWaitingDialog

public WaitingDialog getWaitingDialog()
Returns:
the waitingDialog

setWaitingDialog

public void setWaitingDialog(WaitingDialog waitingDialog)
Parameters:
waitingDialog - the waitingDialog to set

getDatasourceMessages

public DatasourceMessages getDatasourceMessages()
Returns:
the datasourceMessages

closeAggregationEditorDialog

public void closeAggregationEditorDialog()

saveAggregationValues

public void saveAggregationValues()

closeSampleDataDialog

public void closeSampleDataDialog()

initializeBusinessData

public void initializeBusinessData(DatasourceModel model)
Specified by:
initializeBusinessData in interface IDatasourceTypeController

supportsBusinessData

public boolean supportsBusinessData(DatasourceModel businessData)
Specified by:
supportsBusinessData in interface IDatasourceTypeController

finishing

public boolean finishing()
Specified by:
finishing in interface IDatasourceTypeController