Ontimize 5.2072EN

com.ontimize.gui
Class ValueEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.ontimize.gui.ValueEvent
All Implemented Interfaces:
java.io.Serializable

public class ValueEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
protected  java.lang.Object newValue
           
protected  java.lang.Object oldValue
           
static int PROGRAMMATIC_CHANGE
           
protected  int type
           
static int USER_CHANGE
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValueEvent(java.lang.Object source, java.lang.Object newValue, java.lang.Object oldValue, int type)
          Create a new event to use when a component value changes
 
Method Summary
 java.lang.Object getNewValue()
           
 java.lang.Object getOldValue()
           
 int getType()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USER_CHANGE

public static int USER_CHANGE

PROGRAMMATIC_CHANGE

public static int PROGRAMMATIC_CHANGE

oldValue

protected java.lang.Object oldValue

newValue

protected java.lang.Object newValue

type

protected int type
Constructor Detail

ValueEvent

public ValueEvent(java.lang.Object source,
                  java.lang.Object newValue,
                  java.lang.Object oldValue,
                  int type)
Create a new event to use when a component value changes

Parameters:
source - Event source component
newValue - New component value
oldValue - Old component value
type - Event type. Valid values are:
PROGRAMMATIC_CHANGE when the value change was automatically or
USER_CHANGE when an user did the change
Method Detail

getOldValue

public java.lang.Object getOldValue()

getNewValue

public java.lang.Object getNewValue()

getType

public int getType()

Ontimize