com.anthonyeden.lib.event
Class ErrorListenerSupport

java.lang.Object
  extended bycom.anthonyeden.lib.event.ErrorListenerSupport

public class ErrorListenerSupport
extends java.lang.Object

Support class for ErrorListeners.

Author:
Anthony Eden

Constructor Summary
ErrorListenerSupport(java.lang.Object source)
          Construct a new ErrorListenerSupport for the given source object.
 
Method Summary
 void addErrorListener(ErrorListener l)
          Add an ErrorListener.
protected  void fireError(ErrorEvent evt)
           
 void fireError(java.lang.String message)
          Fire an ErrorEvent with the given message.
 void fireError(java.lang.String message, java.lang.Throwable t)
          Fire an ErrorEvent with the given message and error.
 void fireError(java.lang.Throwable t)
          Fire an ErrorEvent with the given error.
 void removeErrorListener(ErrorListener l)
          Remove the given ErrorListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorListenerSupport

public ErrorListenerSupport(java.lang.Object source)
Construct a new ErrorListenerSupport for the given source object.

Parameters:
source - The source object
Method Detail

addErrorListener

public void addErrorListener(ErrorListener l)
Add an ErrorListener.

Parameters:
l - The ErrorListener

removeErrorListener

public void removeErrorListener(ErrorListener l)
Remove the given ErrorListener.

Parameters:
l - The ErrorListener

fireError

public void fireError(java.lang.String message)
Fire an ErrorEvent with the given message.

Parameters:
message - The message

fireError

public void fireError(java.lang.Throwable t)
Fire an ErrorEvent with the given error.

Parameters:
t - The error

fireError

public void fireError(java.lang.String message,
                      java.lang.Throwable t)
Fire an ErrorEvent with the given message and error.

Parameters:
message - The message
t - The error

fireError

protected void fireError(ErrorEvent evt)


Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.