com.ontimize.gui
Class ValueEvent
java.lang.Object
java.util.EventObject
com.ontimize.gui.ValueEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ValueEvent
- extends java.util.EventObject
- See Also:
- Serialized Form
| 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 |
| 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 |
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
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 componentnewValue - New component valueoldValue - Old component valuetype - Event type. Valid values are:
PROGRAMMATIC_CHANGE when the value change was
automatically or
USER_CHANGE when an user did
the change
getOldValue
public java.lang.Object getOldValue()
getNewValue
public java.lang.Object getNewValue()
getType
public int getType()