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 TypeMethodDescriptionvoid
addErrorListener
(ErrorListener listener) Add an ErrorListenervoid
fireErrorEvent
(Throwable throwable) Report that an error has occurredReturns an array of all the listeners which were added to theErrorSupport
object withaddErrorListener()
.void
removeErrorListener
(ErrorListener listener) Remove an error listener
-
Constructor Details
-
ErrorSupport
Creates a new instance ofErrorSupport
- Parameters:
source
- The object which will fire theErrorEvent
s
-
-
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 theErrorSupport
object withaddErrorListener()
.- Returns:
- all of the
ErrorListener
s added or an empty array if no listeners have been added.
-
fireErrorEvent
Report that an error has occurred
-