|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Controller<V>
public abstract class Controller<V>
An abstract base class for all controllers.
Note: It is imperative that sub-classes set
application to a valid instance.
Copyright 2006 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
class |
Controller.LinkedCellRenderer
A custom table cell renderer used to present the cell data as hyper linked. |
class |
Controller.Updater<S>
An abstract updater task used to execute timed tasks in the background and push updates to the UI. |
protected class |
Controller.Worker<S>
An abstract worker thread used to execute tasks in the background to avoid locking up the UI. |
| Field Summary | |
|---|---|
protected Application |
application
The global application instance for each session. |
protected static Logger |
logger
The logger used to log errors to. |
protected V |
view
The view that is controlled by this instance. |
| Constructor Summary | |
|---|---|
Controller(V view)
Crete a new instance of the controller for the specified view. |
|
| Method Summary | |
|---|---|
boolean |
checkText(String text)
Check the specified string to ensure that it is not null
and not empty. |
Application |
getApplication()
Returns application. |
Logger |
getLogger()
Return the logger associated with this controller. |
V |
getView()
Returns view. |
void |
processFatalException(Throwable t)
A global handler for exceptions encountered while updating the display. |
protected void |
setApplication(Application application)
Set application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger logger
protected Application application
protected final V view
| Constructor Detail |
|---|
public Controller(V view)
| Method Detail |
|---|
public boolean checkText(String text)
null
and not empty. Strings that are composed entirely of spaces are also
treated as empty.
text - The text that is to be checked.
true if the string specified is not null
or empty.public Application getApplication()
application.
protected void setApplication(Application application)
application.
application - The value to set.public V getView()
view.
public Logger getLogger()
public void processFatalException(Throwable t)
t - The fatal exceptionApplication.processFatalException(java.lang.Throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||