com.vaadin.ui.


Class AbstractTextField.TextChangeEventImpl

java.lang.Object
  java.util.EventObject
      com.vaadin.ui.Component.Event
          com.vaadin.event.FieldEvents.TextChangeEvent
              com.vaadin.ui.AbstractTextField.TextChangeEventImpl

All Implemented Interfaces:

Serializable

Enclosing class:

AbstractTextField

public class AbstractTextField.TextChangeEventImpl
extends FieldEvents.TextChangeEvent

See Also:

Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 AbstractTextField getComponent()
          Gets the component where the event occurred.
 int getCursorPosition()
           
 String getText()
           
 
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
 

Method Detail

getComponent

public AbstractTextField getComponent()

Description copied from class: Component.Event

Gets the component where the event occurred.

Overrides:
getComponent in class Component.Event

Returns:
the source component of the event

getText

public String getText()

Specified by:
getText in class FieldEvents.TextChangeEvent

Returns:
the text content of the field after the FieldEvents.TextChangeEvent

getCursorPosition

public int getCursorPosition()

Specified by:
getCursorPosition in class FieldEvents.TextChangeEvent

Returns:
the cursor position during after the FieldEvents.TextChangeEvent