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

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.ConnectionController
All Implemented Interfaces:
org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.XulEventSource

public class ConnectionController
extends org.pentaho.ui.xul.impl.AbstractXulEventHandler


Constructor Summary
ConnectionController()
           
 
Method Summary
 void addConnection()
           
 void addConnectionDialogListener(ConnectionDialogListener listener)
           
 void closeDialog()
           
 void closeErrorDialog()
           
 void closeRemoveConfirmationDialog()
           
 void closeSaveConnectionConfirmationDialog()
           
 void closeSuccessDialog()
           
 void deleteConnection()
           
 void displayErrorMessage(Throwable th)
           
 DatasourceMessages getDatasourceMessages()
           
 DatasourceModel getDatasourceModel()
           
 String getName()
           
 IXulAsyncConnectionService getService()
           
 void init()
           
 void onDialogAccept(IDatabaseConnection arg0)
           
 void onDialogCancel()
           
 void onDialogReady()
           
 void openErrorDialog(String title, String message)
           
 void openSuccesDialog(String title, String message)
           
 void removeConnectionDialogListener(ConnectionDialogListener listener)
           
 void saveConnection()
           
 void setDatasourceMessages(DatasourceMessages datasourceMessages)
           
 void setDatasourceModel(DatasourceModel model)
           
 void setService(IXulAsyncConnectionService service)
           
 void showAddConnectionDialog()
           
 void showEditConnectionDialog()
           
 void showRemoveConnectionDialog()
           
 void testConnection()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionController

public ConnectionController()
Method Detail

init

public void init()

openErrorDialog

public void openErrorDialog(String title,
                            String message)

closeErrorDialog

public void closeErrorDialog()

openSuccesDialog

public void openSuccesDialog(String title,
                             String message)

closeSuccessDialog

public void closeSuccessDialog()

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

closeDialog

public void closeDialog()

closeSaveConnectionConfirmationDialog

public void closeSaveConnectionConfirmationDialog()

addConnection

public void addConnection()

testConnection

public void testConnection()

deleteConnection

public void deleteConnection()

saveConnection

public void saveConnection()

getService

public IXulAsyncConnectionService getService()

setService

public void setService(IXulAsyncConnectionService service)

addConnectionDialogListener

public void addConnectionDialogListener(ConnectionDialogListener listener)

removeConnectionDialogListener

public void removeConnectionDialogListener(ConnectionDialogListener listener)

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

onDialogAccept

public void onDialogAccept(IDatabaseConnection arg0)

onDialogCancel

public void onDialogCancel()

onDialogReady

public void onDialogReady()

showAddConnectionDialog

public void showAddConnectionDialog()

showEditConnectionDialog

public void showEditConnectionDialog()

showRemoveConnectionDialog

public void showRemoveConnectionDialog()

closeRemoveConfirmationDialog

public void closeRemoveConfirmationDialog()