public final class NamedPropertyEvent extends EventObject
NamedPropertyEvent
event is delivered to objects
that are listening to additions and removals of named properties of a
graphic object.Modifier and Type | Field and Description |
---|---|
static int |
PROPERTY_REMOVED
The type of the event when a property is removed from the graphic object.
|
static int |
PROPERTY_SET
The type of the event when a property is set at the graphic object.
|
source
Constructor and Description |
---|
NamedPropertyEvent(IlvGraphic obj,
IlvNamedProperty oldValue,
IlvNamedProperty newValue)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
IlvGraphic |
getGraphicObject()
Returns the graphic object that caused the event.
|
IlvNamedProperty |
getNewValue()
Returns the new named property.
|
IlvNamedProperty |
getOldValue()
Returns the old named property.
|
String |
getPropertyName()
Returns the name of the named property that caused the event.
|
int |
getType()
Returns the type of the event.
|
void |
setNewValue(IlvNamedProperty p)
Changes the new named property.
|
void |
setOldValue(IlvNamedProperty p)
Changes the old named property.
|
getSource, toString
public static final int PROPERTY_SET
public static final int PROPERTY_REMOVED
public NamedPropertyEvent(IlvGraphic obj, IlvNamedProperty oldValue, IlvNamedProperty newValue)
null
.obj
- The source of the event.oldValue
- The old named property.newValue
- The new named property.public final IlvGraphic getGraphicObject()
public final int getType()
PROPERTY_SET
,
PROPERTY_REMOVED
public final String getPropertyName()
public final IlvNamedProperty getOldValue()
null
if the named property was previously not set.
When removing a named property, this is the old value that was previously
set.public final void setOldValue(IlvNamedProperty p)
public final IlvNamedProperty getNewValue()
null
.public final void setNewValue(IlvNamedProperty p)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.