org.pentaho.platform.dataaccess.datasource.wizard.controllers
Class CsvDatasourceController
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
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
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 |
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
CsvDatasourceController
public CsvDatasourceController()
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