|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectesmska.data.event.ValuedEventSupport<E,V>
E
- Enum describing the possible event typesV
- Type of associated valuepublic class ValuedEventSupport<E extends java.lang.Enum<E>,V>
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 |
---|
public ValuedEventSupport(java.lang.Object source)
source
- Source object, for which the ActionEventSupport should work. May not be null.Method Detail |
---|
public void addValuedListener(ValuedListener<E,V> valuedListener)
public void removeValuedListener(ValuedListener<E,V> valuedListener)
public void fireEventOccured(E event, V value)
event
- type of event, not nullvalue
- associated value, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |