harmonic.mz.event
Class EntryEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.beans.PropertyChangeEvent
              |
              +--harmonic.mz.event.EntryEvent
All Implemented Interfaces:
java.io.Serializable

public class EntryEvent
extends java.beans.PropertyChangeEvent

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.

See Also:
Serialized Form

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

FINAL

public static final int FINAL
Value has finished a gradual change. Relevent if getID()==VALUE_CHANGED. Same value as in HWidgetLib.HWEventConstants.

See Also:
Constant Field Values

INCREMENTAL

public static final int INCREMENTAL
Value has continued a gradual change. Relevent if getID()==VALUE_CHANGED. Same value as in HWidgetLib.HWEventConstants.

See Also:
Constant Field Values

INITIAL

public static final int INITIAL
Value has started a gradual change. Relevent if getID()==VALUE_CHANGED. Same value as in HWidgetLib.HWEventConstants.

See Also:
Constant Field Values

VALUE_CHANGED

public static final int VALUE_CHANGED
Value has changed

See Also:
Constant Field Values

PRE_ENTRY_START

public static final int PRE_ENTRY_START
Value entry will start taking input

See Also:
Constant Field Values

POST_ENTRY_START

public static final int POST_ENTRY_START
Value entry has started taking input

See Also:
Constant Field Values

PRE_ENTRY_FINISH

public static final int PRE_ENTRY_FINISH
Value entry will stop taking input

See Also:
Constant Field Values

POST_ENTRY_FINISH

public static final int POST_ENTRY_FINISH
Value entry has stoped taking input

See Also:
Constant Field Values

START_REQUESTED

public static final int START_REQUESTED
User has indicated input should begin

See Also:
Constant Field Values

id

public int id

when

public int when
Constructor Detail

EntryEvent

public EntryEvent(ValueEntry entry,
                  int id,
                  int when)
Constructs an EntryEvent.


EntryEvent

public 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.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject

getEntry

public ValueEntry getEntry()
Returns entry


getWhen

public int getWhen()
Returns the type of value change. Relevent if getID(),


getID

public int getID()
Returns the type of event.