org.springframework.richclient.exceptionhandling
Class JXErrorDialogExceptionHandler

java.lang.Object
  extended by org.springframework.richclient.exceptionhandling.AbstractRegisterableExceptionHandler
      extended by org.springframework.richclient.exceptionhandling.AbstractLoggingExceptionHandler
          extended by org.springframework.richclient.exceptionhandling.AbstractDialogExceptionHandler
              extended by org.springframework.richclient.exceptionhandling.MessagesDialogExceptionHandler
                  extended by org.springframework.richclient.exceptionhandling.JXErrorDialogExceptionHandler
All Implemented Interfaces:
Thread.UncaughtExceptionHandler, InitializingBean, RegisterableExceptionHandler

public class JXErrorDialogExceptionHandler
extends MessagesDialogExceptionHandler

Error handler based on the JXErrorPane found in the swingx project.

Author:
Jan Hoskens

Field Summary
 
Fields inherited from class org.springframework.richclient.exceptionhandling.AbstractDialogExceptionHandler
messageSourceAccessor, modalDialog, shutdownPolicy
 
Fields inherited from class org.springframework.richclient.exceptionhandling.AbstractLoggingExceptionHandler
exceptionPurger, LOG_MESSAGE, logger, logLevel
 
Constructor Summary
JXErrorDialogExceptionHandler()
           
 
Method Summary
 void notifyUserAboutException(Thread thread, Throwable throwable)
          Shows the JXErrorPane to the user.
 void setErrorReporter(org.jdesktop.swingx.error.ErrorReporter errorReporter)
          Add an ErrorReporter to the JXErrorPane.
 void setShutdownPolicy(ShutdownPolicy shutdownPolicy)
          No shutDownPolicy can be used in conjunction with the JXErrorPane.
 
Methods inherited from class org.springframework.richclient.exceptionhandling.MessagesDialogExceptionHandler
createExceptionContent, formatMessage, resolveExceptionCaption, setIdentLength, setMessagesKey, setWrapLength
 
Methods inherited from class org.springframework.richclient.exceptionhandling.AbstractDialogExceptionHandler
afterPropertiesSet, resolveParentFrame, setMessageSourceAccessor, setModalDialog
 
Methods inherited from class org.springframework.richclient.exceptionhandling.AbstractLoggingExceptionHandler
logException, setExceptionPurger, setLogLevel, uncaughtException
 
Methods inherited from class org.springframework.richclient.exceptionhandling.AbstractRegisterableExceptionHandler
registerExceptionHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXErrorDialogExceptionHandler

public JXErrorDialogExceptionHandler()
Method Detail

setShutdownPolicy

public void setShutdownPolicy(ShutdownPolicy shutdownPolicy)
No shutDownPolicy can be used in conjunction with the JXErrorPane.

Overrides:
setShutdownPolicy in class AbstractDialogExceptionHandler

setErrorReporter

public void setErrorReporter(org.jdesktop.swingx.error.ErrorReporter errorReporter)
Add an ErrorReporter to the JXErrorPane.

Parameters:
errorReporter - error reporter to add.

notifyUserAboutException

public void notifyUserAboutException(Thread thread,
                                     Throwable throwable)
Shows the JXErrorPane to the user.

Overrides:
notifyUserAboutException in class AbstractDialogExceptionHandler


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.