|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--java.beans.PropertyChangeEvent
|
+--harmonic.mz.event.EntryEvent
This event object is sent by all extensions of ValueEntry when the edited value changes, and when the value entries state changes. Rather than subclass this into an event for each type of value entry, the event handler should look at the source member of this to get a reference to the generating value entry and user this to get the values. Often there is alot more information than the essential value that the hander may need to know, so rather than put some in the event object and some in the source, all is in the source.
| Field Summary | |
static int |
FINAL
Value has finished a gradual change. |
int |
id
|
static int |
INCREMENTAL
Value has continued a gradual change. |
static int |
INITIAL
Value has started a gradual change. |
static int |
POST_ENTRY_FINISH
Value entry has stoped taking input |
static int |
POST_ENTRY_START
Value entry has started taking input |
static int |
PRE_ENTRY_FINISH
Value entry will stop taking input |
static int |
PRE_ENTRY_START
Value entry will start taking input |
static int |
START_REQUESTED
User has indicated input should begin |
static int |
VALUE_CHANGED
Value has changed |
int |
when
|
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
EntryEvent(java.lang.Object source,
java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue,
int when)
Constructs an EntryEvent, with id==VALUE_CHANGED. |
|
EntryEvent(ValueEntry entry,
int id,
int when)
Constructs an EntryEvent. |
|
| Method Summary | |
ValueEntry |
getEntry()
Returns entry |
int |
getID()
Returns the type of event. |
int |
getWhen()
Returns the type of value change. |
java.lang.String |
toString()
|
| Methods inherited from class java.beans.PropertyChangeEvent |
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FINAL
public static final int INCREMENTAL
public static final int INITIAL
public static final int VALUE_CHANGED
public static final int PRE_ENTRY_START
public static final int POST_ENTRY_START
public static final int PRE_ENTRY_FINISH
public static final int POST_ENTRY_FINISH
public static final int START_REQUESTED
public int id
public int when
| Constructor Detail |
public EntryEvent(ValueEntry entry,
int id,
int when)
public EntryEvent(java.lang.Object source,
java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue,
int when)
| Method Detail |
public java.lang.String toString()
toString in class java.util.EventObjectpublic ValueEntry getEntry()
public int getWhen()
public int getID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||