public interface AbstractTextFieldWidget
AbstractTextFieldConnector.| Modifier and Type | Method and Description |
|---|---|
int |
getCursorPos()
Gets the current cursor position inside the field.
|
String |
getValue()
Gets the current value of the field.
|
void |
selectAll()
Selects all text in the field.
|
void |
setReadOnly(boolean readOnly)
Sets the read-only mode of the field.
|
void |
setSelectionRange(int start,
int length)
Sets the selection range for the field.
|
void setSelectionRange(int start,
int length)
start - the start of the selectionlength - the length of the selectionString getValue()
void selectAll()
void setReadOnly(boolean readOnly)
readOnly - true to set the field to read-only,
false otherwiseint getCursorPos()
Copyright © 2023 Vaadin Ltd. All rights reserved.