|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.application.AbstractApplication
com.sdm.quasar.client.swing.application.AbstractSwingApplication
| Constructor Summary | |
AbstractSwingApplication()
Creates a new AbstractSwingApplication. |
|
AbstractSwingApplication(ID applicationId)
Creates a new AbstractSwingApplication. |
|
| Method Summary | |
protected void |
attemptToDisplayErrorMessage(java.lang.String title,
java.lang.String message)
Attempts to display an error message to the user. |
protected void |
createSessionInEDT()
Helper method: This method creates a new session (using |
protected ApplicationConfiguration |
getApplicationConfiguration()
Returns the ApplicationConfiguration instance used to configure this
application instance. |
protected java.lang.String |
getErrorMessageForThrowable(java.lang.Throwable throwable)
Determines the error message displayed to the user in the last resort error handling. |
protected void |
initializeErrorHandler()
Initializes the error handling. |
| Methods inherited from class com.sdm.quasar.client.core.application.AbstractApplication |
collectSystemInfo, extendDestructionException, getApplicationID, getConfigManager, getServiceManager, getSessionManager, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractSwingApplication()
AbstractSwingApplication.
public AbstractSwingApplication(ID applicationId)
AbstractSwingApplication.
applicationId - the application ID to be used| Method Detail |
protected ApplicationConfiguration getApplicationConfiguration()
AbstractApplicationApplicationConfiguration instance used to configure this
application instance.
getApplicationConfiguration in class AbstractApplicationAbstractApplication.getApplicationConfiguration()protected void initializeErrorHandler()
This implementation registers a default ErrorHandlerAdapter with the
ErrorHandler that calls Application.stop() to stop the application.
The ErrorHandlerAdapter registered in this implementation
does not attempt to restrict the error to a single
dialog or session. If you want to do that, you must override this method.
This implementation also registers the EDT error handler that handles exceptions that reach the EDT event queue.
Before stopping the application the implementation attempts to display an error message
to the user in a message box using the method
attemptToDisplayErrorMessage(java.lang.String, java.lang.String) which you can override separately.
The text displayed is determined by getErrorMessageForThrowable(java.lang.Throwable).
initializeErrorHandler in class AbstractApplicationprotected void createSessionInEDT()
AbstractApplication.getSessionManager().createSession())
using the event dispatch thread.
protected java.lang.String getErrorMessageForThrowable(java.lang.Throwable throwable)
throwable - the exception
protected void attemptToDisplayErrorMessage(java.lang.String title,
java.lang.String message)
JOptionPane.
message - the message that is displayed to the user.
It should give the user some information about what happened.title - the title of the window that is displayed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||