SPT RWT Application API

com.sptci.rwt.webui
Class DeleteSavedConnectionListener

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

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

The component that is used to delete saved connections.

© Copyright 2007 Sans Pareil Technologies, Inc.

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

Field Summary
private  String databaseType
          The database type under which the connection is saved.
private  String name
          The name of the saved connection.
 
Fields inherited from class com.sptci.echo2.Listener
controller, logger
 
Constructor Summary
DeleteSavedConnectionListener(String databaseType, String name, MainController controller)
          Create a new instance of the listener using the specified controller.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The action listener implementation.
protected  void delete(Component component)
          Delete the saved connection and update the ManageSavedConnectionsView view component.
 
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 String databaseType
The database type under which the connection is saved.


name

private final String name
The name of the saved connection.

Constructor Detail

DeleteSavedConnectionListener

public DeleteSavedConnectionListener(String databaseType,
                                     String name,
                                     MainController controller)
Create a new instance of the listener using the specified controller.

Parameters:
databaseType - The name of the database type under which the saved connection is organised.
name - The name of the saved connection.
controller - The controller to use to interact with the application
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The action listener implementation. Launches a Confirmation dialogue prompting user to confirm the delete action.

Parameters:
event - The action event that was triggered.

delete

protected void delete(Component component)
Delete the saved connection and update the ManageSavedConnectionsView view component.

Parameters:
component - The component that is to be removed from the view.
See Also:
Connections.delete( String, String ), Connections.delete( String ), MainController.resetMenu()

SPT RWT Application API