com.droplets.api.event
Class PreviewEvent

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

public class PreviewEvent
extends java.util.EventObject

Event fired when the user types a new character into a TextField whose sendPreview property is on.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PreviewEvent(TextField source, java.lang.String value)
          Constructs a new PreviewEvent.
 
Method Summary
 TextField getSourceTextField()
          Type-safe method to return the source object of this event, since we know it's a TextField.
 java.lang.String getValue()
          Gets the text currently in the TextField.
 
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

PreviewEvent

public PreviewEvent(TextField source,
                    java.lang.String value)
Constructs a new PreviewEvent.
Parameters:
source - the TextField
value - the text in the TextField
Method Detail

getSourceTextField

public TextField getSourceTextField()
Type-safe method to return the source object of this event, since we know it's a TextField.
Returns:
the TextField

getValue

public java.lang.String getValue()
Gets the text currently in the TextField.
Returns:
the text


Copyright © Droplets, 2001. All Rights Reserved.