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

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

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


Constructor Summary
WizardConnectionController(org.pentaho.ui.xul.dom.Document document)
           
 
Method Summary
 void addConnection()
           
 void addConnectionDialogListener(ConnectionDialogListener listener)
           
 void closeDialog()
           
 void closeErrorDetailsDialog()
           
 void closeErrorDialog()
           
 void closeRemoveConfirmationDialog()
           
 void closeSaveConnectionConfirmationDialog()
           
 void closeSuccessDetailsDialog()
           
 void closeSuccessDialog()
           
 void deleteConnection()
           
 void displayErrorMessage(Throwable th)
           
 IXulAsyncConnectionService getConnectionService()
           
 DatasourceMessages getDatasourceMessages()
           
 DatasourceModel getDatasourceModel()
           
 String getName()
           
 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 setConnectionService(IXulAsyncConnectionService connectionService)
           
 void setDatasourceMessages(DatasourceMessages datasourceMessages)
           
 void setDatasourceModel(DatasourceModel model)
           
 void showAddConnectionDialog()
           
 void showEditConnectionDialog()
           
 void showRemoveConnectionDialog()
           
 void testConnection()
           
 void toggleDetails()
           
 void toggleSuccessDetails()
           
 
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
 

Constructor Detail

WizardConnectionController

public WizardConnectionController(org.pentaho.ui.xul.dom.Document document)
Method Detail

init

public void init()

openErrorDialog

public void openErrorDialog(String title,
                            String message)

closeErrorDialog

public void closeErrorDialog()

closeSuccessDetailsDialog

public void closeSuccessDetailsDialog()

toggleDetails

public void toggleDetails()

openSuccesDialog

public void openSuccesDialog(String title,
                             String message)

closeSuccessDialog

public void closeSuccessDialog()

toggleSuccessDetails

public void toggleSuccessDetails()

closeErrorDetailsDialog

public void closeErrorDetailsDialog()

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()

getConnectionService

public IXulAsyncConnectionService getConnectionService()

setConnectionService

public void setConnectionService(IXulAsyncConnectionService connectionService)

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()