|
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.Controller<MainView>
com.sptci.rwt.webui.MainController
public class MainController
The primary ContentPane for the application.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sptci.echo2.Controller |
|---|
com.sptci.echo2.Controller.Updater<S>, com.sptci.echo2.Controller.Worker<S> |
| Field Summary | |
|---|---|
static String |
CONNECTION_MANAGER
The property name used to identify the connection manager for the session. |
private Connections |
connections
The object that represents saved connections. |
static String |
CONTROLLER
The property name used to identify the instance of this class stored for the session. |
private Queries |
queries
The object that represents saved queries. |
| Fields inherited from class com.sptci.echo2.Controller |
|---|
application, logger, view |
| Constructor Summary | |
|---|---|
MainController(MainView view)
Create a new instance of the controller for the specified view. |
|
| Method Summary | |
|---|---|
private void |
addBinding(String name,
Context environment,
Collection<String> collection)
|
void |
addPane(FloatingPane pane)
Convenient method for Application.addPane(nextapp.echo2.app.FloatingPane). |
Collection<Category> |
getCategories()
Returns Queries.getCategories(). |
ConnectionManager |
getConnectionManager()
Get the connection manager in use by the session. |
Connections |
getConnections()
Returns connections. |
static MainController |
getController()
Return the instance stored for the session. |
Collection<String> |
getDataSources()
Retrieve all the available datasources configured under the java:/comp/env context. |
DBMSMetaData |
getDBMSMetaData()
Retrieve the metadata about the database pointed to by the current active ConnectionManager. |
ConnectionParameters |
getParameters(ConnectionDialogue dialogue)
Create a connection parameters bean using the values in the ConnectionDialogue. |
com.sptci.echo2.View |
getParentView(Component component)
Convenience method that invokes Application.getParentView(nextapp.echo2.app.Component) |
Queries |
getQueries()
Returns queries. |
Map<String,Collection<String>> |
getSavedConnections()
Retrieve all the saved database connections configured by the user. |
void |
resetMenu()
Rebuild the MainView.menuComponent to reflect modifications
made to the application persistent state. |
void |
setConnectionManager(ConnectionManager manager)
Set the connection manager to use for the session. |
void |
setContent(Component component)
Method used to update the content of MainView.right content
area. |
void |
setFocused(Component component)
Sets the focussed component for the application. |
| Methods inherited from class com.sptci.echo2.Controller |
|---|
checkText, getApplication, getDataDirectory, getLogger, getView, processFatalException, processFatalException, setApplication |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONNECTION_MANAGER
public static final String CONTROLLER
private Connections connections
private Queries queries
| Constructor Detail |
|---|
public MainController(MainView view)
view - The view this controller controls.| Method Detail |
|---|
public static MainController getController()
Note: This method should be invoked only after being instantiated.
public ConnectionManager getConnectionManager()
public void setConnectionManager(ConnectionManager manager)
manager - The manager to use.public Collection<String> getDataSources()
java:/comp/env context.
private void addBinding(String name,
Context environment,
Collection<String> collection)
throws NamingException
NamingExceptionpublic Map<String,Collection<String>> getSavedConnections()
Map containing the database name as the
key and a Collection of saved
connection names as the value.public ConnectionParameters getParameters(ConnectionDialogue dialogue)
ConnectionDialogue.
public DBMSMetaData getDBMSMetaData()
ConnectionManager.
null if no active connection manager exists for the
application.public void setContent(Component component)
MainView.right content
area.
component - The component that is to be displayed.public void addPane(FloatingPane pane)
Application.addPane(nextapp.echo2.app.FloatingPane).
addPane in class com.sptci.echo2.Controller<MainView>public Connections getConnections()
connections.
public Queries getQueries()
queries.
public Collection<Category> getCategories()
Queries.getCategories().
public void resetMenu()
MainView.menuComponent to reflect modifications
made to the application persistent state. Persistent state is
modified when new connections/queries are added to the persistent
state.
public com.sptci.echo2.View getParentView(Component component)
Application.getParentView(nextapp.echo2.app.Component)
public void setFocused(Component component)
component - The component that is to gain the focus.ApplicationInstance.setFocusedComponent(nextapp.echo2.app.Component)
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||