wt.events
Class KeyedEventListenerAdapter

java.lang.Object
  extended by wt.events.KeyedEventListenerAdapter
All Implemented Interfaces:
KeyedEventListener

public class KeyedEventListenerAdapter
extends Object
implements KeyedEventListener

A do-nothing implementation of KeyedEventListener. Each method does nothing and designed to be overridden by derived classes. This allows classes derived from KeyedEventListener to be quickly created.

NOTE: it is preferable to extend this class (as opposed to simply implementing KeyedEventListener).

Supported API: true

Extendable: true


Method Summary
 void notifyEvent(Object eventObject)
          Notify the listener that a single-object event has occurred.
 void notifyMultiObjectEvent(Object eventObject)
          Notify the listener that a multi-object event has occurred.
 void notifyVetoableEvent(Object eventObject)
          Notify the listener that a single-object event has occurred.
 void notifyVetoableMultiObjectEvent(Object eventObject)
          Notify the listener that a multi-object event has occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

notifyEvent

public void notifyEvent(Object eventObject)
Notify the listener that a single-object event has occurred.

Supported API: true

Specified by:
notifyEvent in interface KeyedEventListener
Parameters:
eventObject -

notifyVetoableEvent

public void notifyVetoableEvent(Object eventObject)
                         throws Exception
Notify the listener that a single-object event has occurred. Sometimes the listener may object to the event by throwing an exception. Whether the exception will be honored depends on the object which generated the event.

Supported API: true

Specified by:
notifyVetoableEvent in interface KeyedEventListener
Parameters:
eventObject -
Throws:
Exception - the dispatcher and listener must agree on the exception type.

notifyMultiObjectEvent

public void notifyMultiObjectEvent(Object eventObject)
Notify the listener that a multi-object event has occurred.

Supported API: true

Specified by:
notifyMultiObjectEvent in interface KeyedEventListener
Parameters:
eventObject -

notifyVetoableMultiObjectEvent

public void notifyVetoableMultiObjectEvent(Object eventObject)
                                    throws Exception
Notify the listener that a multi-object event has occurred. Sometimes the listener may object to the event by throwing an exception. Whether the exception will be honored depends on the object which generated the event.

Supported API: true

Specified by:
notifyVetoableMultiObjectEvent in interface KeyedEventListener
Parameters:
eventObject -
Throws:
Exception - the dispatcher and listener must agree on the exception type.