Package org.jdesktop.swingx.error
Class ErrorSupport
java.lang.Object
org.jdesktop.swingx.error.ErrorSupport
ErrorSupport provides support for managing error listeners.
- Author:
- Joshua Marinacci joshua.marinacci@sun.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorListener(ErrorListener listener) Add an ErrorListenervoidfireErrorEvent(Throwable throwable) Report that an error has occurredReturns an array of all the listeners which were added to theErrorSupportobject withaddErrorListener().voidremoveErrorListener(ErrorListener listener) Remove an error listener
-
Constructor Details
-
ErrorSupport
Creates a new instance ofErrorSupport- Parameters:
source- The object which will fire theErrorEvents
-
-
Method Details
-
addErrorListener
Add an ErrorListener- Parameters:
listener- the listener to add
-
removeErrorListener
Remove an error listener- Parameters:
listener- the listener to remove
-
getErrorListeners
Returns an array of all the listeners which were added to theErrorSupportobject withaddErrorListener().- Returns:
- all of the
ErrorListeners added or an empty array if no listeners have been added.
-
fireErrorEvent
Report that an error has occurred
-