|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Listener<MainController>
com.sptci.rwt.webui.ConnectListener
public class ConnectListener
The dialogue used to initiate a new JDBC Connection.
Also used to save/edit pre-configured connections.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary |
|---|
| Fields inherited from class com.sptci.echo2.Listener |
|---|
controller, logger |
| Constructor Summary | |
|---|---|
ConnectListener(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 |
checkString(String name,
ConnectionDialogue dialogue,
Collection<String> messages)
Check the field represented by the specified name. |
protected Collection<String> |
checkView(ConnectionDialogue dialogue)
Check the ConnectionDialogue to ensure that all the required
information has been entered to fetch a connection. |
protected void |
displayMessages(Collection<String> messages)
Display an ErrorPane with the contents of the
specified collection of messages. |
| 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 |
| Constructor Detail |
|---|
public ConnectListener(MainController controller)
controller - The controller to use to interact with the
application.| Method Detail |
|---|
public void actionPerformed(ActionEvent event)
event - The event that was triggered.checkView(com.sptci.rwt.webui.ConnectionDialogue),
displayMessages(java.util.Collection) ,
MainController.getParameters(com.sptci.rwt.webui.ConnectionDialogue)protected Collection<String> checkView(ConnectionDialogue dialogue)
ConnectionDialogue to ensure that all the required
information has been entered to fetch a connection.
checkString(java.lang.String, com.sptci.rwt.webui.ConnectionDialogue, java.util.Collection)
protected void checkString(String name,
ConnectionDialogue dialogue,
Collection<String> messages)
name - The name to use to find the appropriate field to test.dialogue - The view component that is to be tested.messages - The collection of messages that is to be updated as
appropriate.protected void displayMessages(Collection<String> messages)
ErrorPane with the contents of the
specified collection of messages.
messages - The collection of messages to display.
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||