SPT RWT Application API

com.sptci.rwt.webui
Class SavedConnectionListener

java.lang.Object
  extended by com.sptci.echo2.Listener<MainController>
      extended by com.sptci.rwt.webui.SavedConnectionListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

public class SavedConnectionListener
extends com.sptci.echo2.Listener<MainController>

Action listener for launching a ConnectionDialogue initialised with the the parameters in a saved connection.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: SavedConnectionListener.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-14
See Also:
Serialized Form

Field Summary
private  DatabaseType databaseType
          The type of database to connect to.
private  String name
          The name of the saved connection.
 
Fields inherited from class com.sptci.echo2.Listener
controller, logger
 
Constructor Summary
SavedConnectionListener(DatabaseType databaseType, String name, MainController controller)
          Create a new instance of the listener using the specified query and controller.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The action listener implementation.
private  ConnectionDialogue createDialogue()
          Create the ConnectionDialogue and initialise its components with the values in the saved connection.
 
Methods inherited from class com.sptci.echo2.Listener
getApplication, getController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

databaseType

private final DatabaseType databaseType
The type of database to connect to.


name

private final String name
The name of the saved connection.

Constructor Detail

SavedConnectionListener

public SavedConnectionListener(DatabaseType databaseType,
                               String name,
                               MainController controller)
Create a new instance of the listener using the specified query and controller.

Parameters:
databaseType - The databaseType value to use.
controller - The controller to use to interact with the application.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The action listener implementation. Executes the query and exports the results.

Parameters:
event - The event that triggers the export process.
See Also:
createDialogue()

createDialogue

private ConnectionDialogue createDialogue()
Create the ConnectionDialogue and initialise its components with the values in the saved connection.

Returns:
The properly initialised connection dialogue.

SPT RWT Application API