|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.error.ErrorSupport
public class ErrorSupport
ErrorSupport provides support for managing error listeners.
ErrorListener,
ErrorEvent| Constructor Summary | |
|---|---|
ErrorSupport(Object source)
Creates a new instance of ErrorSupport |
|
| Method Summary | |
|---|---|
void |
addErrorListener(ErrorListener listener)
Add an ErrorListener |
void |
fireErrorEvent(Throwable throwable)
Report that an error has occured |
ErrorListener[] |
getErrorListeners()
Returns an array of all the listeners which were added to the ErrorSupport object with addErrorListener(). |
void |
removeErrorListener(ErrorListener listener)
Remove an error listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorSupport(Object source)
ErrorSupport
source - The object which will fire the ErrorEvents| Method Detail |
|---|
public void addErrorListener(ErrorListener listener)
listener - the listener to addpublic void removeErrorListener(ErrorListener listener)
listener - the listener to removepublic ErrorListener[] getErrorListeners()
ErrorSupport object with addErrorListener().
ErrorListeners added or an empty array if no listeners have been
added.public void fireErrorEvent(Throwable throwable)
throwable - The Error or Exception which occured.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||