com.droplets.api.event
Class AttributeChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.droplets.api.event.AttributeChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class AttributeChangeEvent
extends java.util.EventObject

Event fired when the value of a component attribute changes.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributeChangeEvent(Component source, java.lang.String attributeName, java.lang.String newValue)
          Constructs a new AttributeChangeEvent.
 
Method Summary
 java.lang.String getAttributeName()
          Gets the name of the attribute that changed
 java.lang.String getNewValue()
          Gets the new value of the attribute.
 Component getSourceComponent()
          Type-safe method to return the source object of this event, since we know it's a Component.
 
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

AttributeChangeEvent

public AttributeChangeEvent(Component source,
                            java.lang.String attributeName,
                            java.lang.String newValue)
Constructs a new AttributeChangeEvent.
Parameters:
source - component whose attribute changed
attributeName - name of the attribute that changed
newValue - the new value
Method Detail

getSourceComponent

public Component getSourceComponent()
Type-safe method to return the source object of this event, since we know it's a Component.
Returns:
the component whose attribute changed

getAttributeName

public java.lang.String getAttributeName()
Gets the name of the attribute that changed
Returns:
the name

getNewValue

public java.lang.String getNewValue()
Gets the new value of the attribute.
Returns:
the new value


Copyright © Droplets, 2001. All Rights Reserved.