Package org.arakhne.afc.attrs.collection
Class AttributeChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.arakhne.afc.attrs.collection.AttributeChangeEvent
-
- All Implemented Interfaces:
Serializable
public class AttributeChangeEvent extends EventObject
This interface representes a listener on the attribute changes.- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- attributes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeChangeEvent.TypeThis interface representes a listener on the attribute changes.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AttributeChangeEvent(Object source, AttributeChangeEvent.Type type, String oldName, AttributeValue oldValue, String currentName, AttributeValue currentValue)Create an event that describes a value update only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributegetAttribute()Replies the changed attribute.StringgetName()Replies the name of the changed attributes.StringgetOldName()Replies the old name of the changed attributes.AttributeValuegetOldValue()Replies the old value of the attribute.AttributeChangeEvent.TypegetType()Replies the type of event.AttributeValuegetValue()Replies the new value of the attribute.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
AttributeChangeEvent
public AttributeChangeEvent(Object source, AttributeChangeEvent.Type type, String oldName, AttributeValue oldValue, String currentName, AttributeValue currentValue)
Create an event that describes a value update only.- Parameters:
source- the source of the event.type- the type of event.oldName- the previous name.oldValue- the previous value.currentName- the current name.currentValue- the current value.
-
-
Method Detail
-
getName
@Pure public String getName()
Replies the name of the changed attributes.- Returns:
- the name attribute, or
nullif this event has no name attribute.
-
getOldName
@Pure public String getOldName()
Replies the old name of the changed attributes.- Returns:
- the old name attribute, or
nullif this event has no old name attribute.
-
getOldValue
@Pure public AttributeValue getOldValue()
Replies the old value of the attribute.- Returns:
- the attribute value or
null
-
getValue
@Pure public AttributeValue getValue()
Replies the new value of the attribute.- Returns:
- the attribute value, never
null
-
getAttribute
@Pure public Attribute getAttribute()
Replies the changed attribute.- Returns:
- the attribute, never
null
-
getType
@Pure public AttributeChangeEvent.Type getType()
Replies the type of event.- Returns:
- the type of the event, neither
null
-
-