|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
ilog.util.IlEventObject
ilog.cpl.model.AttributeValueEvent
public class AttributeValueEvent
Events when an attribute value changes.
| Nested Class Summary | |
|---|---|
static class |
AttributeValueEvent.Type
Event types. |
| Field Summary | |
|---|---|
static Object |
OLD_VALUE_UNAVAILABLE
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
protected |
AttributeValueEvent(IlEventType type,
IlpAttributeValueHolder source,
IlpAttribute attribute,
Object newv,
Object oldv)
Constructor. |
|
AttributeValueEvent(IlEventType type,
Object source,
IlpAttribute attribute)
Deprecated. Use AttributeValueEvent(IlpAttributeValueHolder, IlpAttribute)
or { @link #AttributeValueEvent(IlpAttributeValueHolder, IlpAttribute, Object, Object)} |
|
AttributeValueEvent(IlpAttributeValueHolder source,
IlpAttribute attribute)
Constructor. |
|
AttributeValueEvent(IlpAttributeValueHolder source,
IlpAttribute attribute,
Object newValue,
Object oldValue)
Constructor. |
| Method Summary | |
|---|---|
IlpAttribute |
getAttribute()
Returns the attribute, the value of which was modified. |
IlpAttributeValueHolder |
getAttributeValueHolder()
Returns the attribute value holder on which the value of an attribute was modified. |
Object |
getNewValue()
Returns the value of the attribute after the modification signaled by this event. |
Object |
getOldValue()
Returns the value of the attribute before the modification signaled by this event. |
boolean |
hasOldValue()
Checks that the old value of the attribute is available. |
| Methods inherited from class ilog.util.IlEventObject |
|---|
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 |
|---|
public static final Object OLD_VALUE_UNAVAILABLE
| Constructor Detail |
|---|
public AttributeValueEvent(IlpAttributeValueHolder source,
IlpAttribute attribute)
source - The attribute value holder on which the value of an
attribute was modified.attribute - The attribute, the value of which was modified.
public AttributeValueEvent(IlpAttributeValueHolder source,
IlpAttribute attribute,
Object newValue,
Object oldValue)
source - The attribute value holder on which the value of an
attribute was modified.attribute - The attribute, the value of which was modified.newValue - The new attribute value.oldValue - The previous value of the attribute.
public AttributeValueEvent(IlEventType type,
Object source,
IlpAttribute attribute)
AttributeValueEvent(IlpAttributeValueHolder, IlpAttribute)
or { @link #AttributeValueEvent(IlpAttributeValueHolder, IlpAttribute, Object, Object)}
protected AttributeValueEvent(IlEventType type,
IlpAttributeValueHolder source,
IlpAttribute attribute,
Object newv,
Object oldv)
type - Event typesource - Object that has changedattribute - Attribute that has changednewv - New attribute valueoldv - Old attribute value| Method Detail |
|---|
public IlpAttributeValueHolder getAttributeValueHolder()
public IlpAttribute getAttribute()
public Object getNewValue()
public Object getOldValue()
In some cases the old value can be unavailable. Use hasOldValue() to check the availability of the old value.
public boolean hasOldValue()
getOldValue().
true when the old value of the attribute is available.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||