org.graffiti.event
Class AttributeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.graffiti.event.AbstractEvent
          extended by org.graffiti.event.AttributeEvent
All Implemented Interfaces:
Serializable

public class AttributeEvent
extends AbstractEvent

Contains an attribute event.

Version:
$Revision: 5767 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributeEvent(Attribute attribute)
          Contructor that is called when one attribute is concerned.
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.
 
Method Summary
 Attribute getAttribute()
          Returns the attribute that has been changed by this event.
 String getPath()
          Returns the path to the attribute that has been changed by this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeEvent

public AttributeEvent(Attribute attribute)
Contructor that is called when one attribute is concerned.

Parameters:
attribute - the attribute, which was altered.

AttributeEvent

public 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.

Parameters:
path - the path to the attribute that was altered.
attribute - the attribute, which was altered.
Method Detail

getAttribute

public Attribute getAttribute()
Returns the attribute that has been changed by this event.

Returns:
the attribute that has been changed by this event.

getPath

public String 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.


Generated at 2012-05-30 11:00:36 PM CEST