com.droplets.api.event
Class ValueChangeEvent

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

public class ValueChangeEvent
extends java.util.EventObject

Event fired when the value of a component changes.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValueChangeEvent(Component source, java.lang.String newValue)
          Constructs a new ValueChangeEvent.
 
Method Summary
 java.lang.String getNewValue()
          Gets the new value.
 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

ValueChangeEvent

public ValueChangeEvent(Component source,
                        java.lang.String newValue)
Constructs a new ValueChangeEvent.
Parameters:
source - the component whose value 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 value changed

getNewValue

public java.lang.String getNewValue()
Gets the new value.
Returns:
the component's new value


Copyright © Droplets, 2001. All Rights Reserved.