We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
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:
Enclosing class:
- extends FieldEvents.TextChangeEvent
public class AbstractTextField.TextChangeEventImpl
See Also:
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()
- Overrides:
getComponent
in classComponent.Event
- Returns:
- the source component of the event
Description copied from class: Component.Event
Gets the component where the event occurred.
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