- All Superinterfaces:
Observable
,ObservableObjectValue<String>
,ObservableStringValue
,ObservableValue<String>
- Enclosing class:
TextInputControl
Interface representing a text input's content. Since it is an ObservableStringValue,
you can also bind to, or observe the content.
- Since:
- JavaFX 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(int start, int end, boolean notifyListeners) Removes a sequence of characters from the content.get
(int start, int end) Retrieves a subset of the content.void
Inserts a sequence of characters into the content.int
length()
Returns the number of characters represented by the content.Methods declared in interface javafx.beans.Observable
addListener, removeListener
Methods declared in interface javafx.beans.value.ObservableObjectValue
get
Methods declared in interface javafx.beans.value.ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, when
-
Method Details
-
get
Retrieves a subset of the content.- Parameters:
start
- the startend
- the end- Returns:
- a subset of the content
-
insert
Inserts a sequence of characters into the content.- Parameters:
index
- the indextext
- the text stringnotifyListeners
- the notify listener flag- Since:
- JavaFX 2.1
-
delete
void delete(int start, int end, boolean notifyListeners) Removes a sequence of characters from the content.- Parameters:
start
- the startend
- the endnotifyListeners
- the notify listener flag- Since:
- JavaFX 2.1
-
length
int length()Returns the number of characters represented by the content.- Returns:
- the number of characters
-