Package org.graffiti.event
Class AttributeEvent
java.lang.Object
java.util.EventObject
org.graffiti.event.AbstractEvent
org.graffiti.event.AttributeEvent
- All Implemented Interfaces:
Serializable
public class AttributeEvent extends AbstractEvent
Contains an attribute event.
- Version:
- $Revision: 1.7 $
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graffiti.event.AbstractEvent
AbstractEvent.EVENTTYPE
-
Constructor Summary
Constructors Constructor Description AttributeEvent(String path, Attribute attribute)
Contructor that is called when one composite attribute is concerned, where it is comfortable to pass the path of attribute, too.AttributeEvent(Attribute attribute)
Contructor that is called when one attribute is concerned. -
Method Summary
Modifier and Type Method Description Attribute
getAttribute()
Returns the attribute that has been changed by this event.Attributable
getAttributeable()
String
getPath()
Returns the path to the attribute that has been changed by this event.Methods inherited from class org.graffiti.event.AbstractEvent
getEventType, setEventType
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AttributeEvent
Contructor that is called when one attribute is concerned.- Parameters:
attribute
- the attribute, which was altered.
-
AttributeEvent
Contructor that is called when one composite attribute is concerned, where it is comfortable to pass the path of attribute, too.- Parameters:
path
- the path to the attribute that was altered.attribute
- the attribute, which was altered.
-
-
Method Details
-
getAttribute
Returns the attribute that has been changed by this event.- Returns:
- the attribute that has been changed by this event.
-
getPath
Returns the path to the attribute that has been changed by this event.- Returns:
- the path to the attribute that has been changed by this event.
-
getAttributeable
-