esmska.data.event
Class ValuedEventSupport<E extends java.lang.Enum<E>,V>

java.lang.Object
  extended by esmska.data.event.ValuedEventSupport<E,V>
Type Parameters:
E - Enum describing the possible event types
V - Type of associated value

public class ValuedEventSupport<E extends java.lang.Enum<E>,V>
extends java.lang.Object

Support for firing ValuedEvents in classes.


Constructor Summary
ValuedEventSupport(java.lang.Object source)
          Creates a new instance of ActionEventSupport
 
Method Summary
 void addValuedListener(ValuedListener<E,V> valuedListener)
          Add new ActionListener
 void fireEventOccured(E event, V value)
          Fire new ActionEvent
 void removeValuedListener(ValuedListener<E,V> valuedListener)
          Remove existing ActionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuedEventSupport

public ValuedEventSupport(java.lang.Object source)
Creates a new instance of ActionEventSupport

Parameters:
source - Source object, for which the ActionEventSupport should work. May not be null.
Method Detail

addValuedListener

public void addValuedListener(ValuedListener<E,V> valuedListener)
Add new ActionListener


removeValuedListener

public void removeValuedListener(ValuedListener<E,V> valuedListener)
Remove existing ActionListener


fireEventOccured

public void fireEventOccured(E event,
                             V value)
Fire new ActionEvent

Parameters:
event - type of event, not null
value - associated value, may be null