Package esmska.data.event
Class ValuedEventSupport<E extends java.lang.Enum<E>,V>
- java.lang.Object
-
- esmska.data.event.ValuedEventSupport<E,V>
-
- Type Parameters:
E- Enum describing the possible event typesV- Type of associated value
public class ValuedEventSupport<E extends java.lang.Enum<E>,V> extends java.lang.ObjectSupport for firing ValuedEvents in classes.
-
-
Constructor Summary
Constructors Constructor Description ValuedEventSupport(java.lang.Object source)Creates a new instance of ActionEventSupport
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValuedListener(ValuedListener<E,V> valuedListener)Add new ActionListenervoidfireEventOccured(E event, V value)Fire new ActionEventvoidremoveValuedListener(ValuedListener<E,V> valuedListener)Remove existing ActionListener
-
-
-
Method Detail
-
addValuedListener
public void addValuedListener(ValuedListener<E,V> valuedListener)
Add new ActionListener
-
removeValuedListener
public void removeValuedListener(ValuedListener<E,V> valuedListener)
Remove existing ActionListener
-
-