private static final class TextField.TextFieldContent extends java.lang.Object implements TextInputControl.Content
Modifier and Type | Field and Description |
---|---|
private java.lang.StringBuilder |
characters |
private <any> |
helper |
Modifier | Constructor and Description |
---|---|
private |
TextFieldContent() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(<any> changeListener) |
void |
addListener(InvalidationListener listener) |
void |
delete(int start,
int end,
boolean notifyListeners)
Removes a sequence of characters from the content.
|
java.lang.String |
get() |
java.lang.String |
get(int start,
int end)
Retrieves a subset of the content.
|
java.lang.String |
getValue() |
void |
insert(int index,
java.lang.String text,
boolean notifyListeners)
Inserts a sequence of characters into the content.
|
int |
length()
Returns the number of characters represented by the content.
|
void |
removeListener(<any> changeListener) |
void |
removeListener(InvalidationListener listener) |
public java.lang.String get(int start, int end)
TextInputControl.Content
get
in interface TextInputControl.Content
start
- the startend
- the endpublic void insert(int index, java.lang.String text, boolean notifyListeners)
TextInputControl.Content
insert
in interface TextInputControl.Content
index
- the indextext
- the text stringnotifyListeners
- the notify listener flagpublic void delete(int start, int end, boolean notifyListeners)
TextInputControl.Content
delete
in interface TextInputControl.Content
start
- the startend
- the endnotifyListeners
- the notify listener flagpublic int length()
TextInputControl.Content
length
in interface TextInputControl.Content
public java.lang.String get()
public void addListener(<any> changeListener)
public void removeListener(<any> changeListener)
public java.lang.String getValue()
public void addListener(InvalidationListener listener)
public void removeListener(InvalidationListener listener)