public class PropertyChangeEvent extends EventObject
source
Constructor and Description |
---|
PropertyChangeEvent(Element element,
String propertyName,
Serializable oldValue,
boolean userOriginated)
Creates a new
PropertyChangeEvent event containing the current
property value of the given element. |
Modifier and Type | Method and Description |
---|---|
Serializable |
getOldValue()
Returns the value of the source before this value change event occurred.
|
String |
getPropertyName()
Returns the property name.
|
Element |
getSource() |
Serializable |
getValue()
Returns the new value that triggered this value change event.
|
boolean |
isUserOriginated()
Returns whether this event was triggered by user interaction, on the
client side, or programmatically, on the server side.
|
toString
public PropertyChangeEvent(Element element, String propertyName, Serializable oldValue, boolean userOriginated)
PropertyChangeEvent
event containing the current
property value of the given element.element
- the source element owning the property, not nullpropertyName
- the property nameoldValue
- the previous value held by the source of this eventuserOriginated
- true
if this event originates from the client,
false
otherwise.public Serializable getOldValue()
public Serializable getValue()
public boolean isUserOriginated()
true
if this event originates from the client,
false
otherwise.public String getPropertyName()
public Element getSource()
getSource
in class EventObject
Copyright © 2021. All rights reserved.