public class AttributeValueEvent extends IlEventObject
Modifier and Type | Class and Description |
---|---|
static class |
AttributeValueEvent.Type
Event types.
|
Modifier and Type | Field and Description |
---|---|
static Object |
OLD_VALUE_UNAVAILABLE |
source
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getType
getSource, toString
public static final Object OLD_VALUE_UNAVAILABLE
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.@Deprecated 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 valuepublic 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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.