Package com.vaadin.ui
Class AbstractTextField.TextChangeEventImpl
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.FieldEvents.TextChangeEvent
-
- com.vaadin.ui.AbstractTextField.TextChangeEventImpl
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AbstractTextField
public static class AbstractTextField.TextChangeEventImpl extends FieldEvents.TextChangeEvent
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractTextField
getComponent()
Gets the component where the event occurred.int
getCursorPosition()
String
getText()
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getComponent
public AbstractTextField getComponent()
Description copied from class:Component.Event
Gets the component where the event occurred.- Overrides:
getComponent
in classComponent.Event
- Returns:
- the source component of the event
-
getText
public String getText()
- Specified by:
getText
in classFieldEvents.TextChangeEvent
- Returns:
- the text content of the field after the
FieldEvents.TextChangeEvent
-
getCursorPosition
public int getCursorPosition()
- Specified by:
getCursorPosition
in classFieldEvents.TextChangeEvent
- Returns:
- the cursor position during after the
FieldEvents.TextChangeEvent
-
-