| Modifier and Type | Class and Description |
|---|---|
| protected static interface | TextInputControl.
Interface representing a text input's content. |
| pack-priv abstract static class | TextInputControl.
Package private base implementation of Content. |
| private static class | |
| private class | |
| private class | |
| pack-priv static class | TextInputControl.
Used to form a linked-list of Undo / Redo changes. |
| Modifier and Type | Field and Description |
|---|---|
| private FormatterAccessor | |
| private ReadOnlyIntegerWrapper | anchor
The |
| private boolean | |
| private ReadOnlyIntegerWrapper | caretPosition
The current position of the caret within the text. |
| private BreakIterator | charIterator
The break iterator instances for navigation over words and complex characters. |
| private final TextInputControl. | |
| private boolean | |
| private BooleanProperty | editable
Indicates whether this TextInputControl can be edited by the user. |
| private ObjectProperty | |
| private ReadOnlyIntegerWrapper | length
The number of characters in the text input. |
| private StringProperty | promptText
The prompt text to display in the |
| private static final PseudoClass | |
| private final ReadOnlyBooleanWrapper | redoable
The property describes if it's currently possible to redo the latest change of the content that was undone. |
| private ReadOnlyStringWrapper | selectedText
Defines the characters in the TextInputControl which are selected |
| private ReadOnlyObjectWrapper | selection
The current selection. |
| private TextInputControl. | text
The textual content of this TextInputControl. |
| private final ObjectProperty | textFormatter
The property contains currently attached |
| private final ReadOnlyBooleanWrapper | undoable
The property describes if it's currently possible to undo the latest change of the content that was done. |
| private TextInputControl. | |
| private TextInputControl. | |
| private BreakIterator |
| Access | Constructor and Description |
|---|---|
| protected | TextInputControl(final TextInputControl.
a non-null implementation of Content. contentCreates a new TextInputControl. |
| Modifier and Type | Method and Description |
|---|---|
| public final ReadOnlyIntegerProperty | |
| public void | |
| public void | |
| public final void | cancelEdit()
If the field is currently being edited, this call will set text to the last committed value. |
| public final ReadOnlyIntegerProperty | |
| public void | |
| public final void | |
| pack-priv static boolean | |
| public void | copy()
Transfers the currently selected range in the text to the clipboard, leaving the current selection. |
| public void | cut()
Transfers the currently selected range in the text to the clipboard, removing the current selection. |
| public boolean | Returns: true if the deletion succeeded, false otherwiseDeletes the character that follows the current caret position from the text if there is no selection, or deletes the selection if there is one. |
| public boolean | Returns: true if the deletion succeeded, false otherwiseDeletes the character that precedes the current caret position from the text if there is no selection, or deletes the selection if there is one. |
| public void | deleteText(IndexRange
The range of text to delete. The range object must not be null. range)Removes a range of characters from the content. |
| public void | deleteText(int
The starting index in the range, inclusive. This must be >= 0 and < the end. start, int The ending index in the range, exclusive. This is one-past the last character to
delete (consistent with the String manipulation methods). This must be > the start,
and <= the length of the text. end)Removes a range of characters from the content. |
| public void | |
| private void | |
| public final BooleanProperty | |
| public void | |
| public void | |
| private void | |
| public void | executeAccessibleAction(AccessibleAction
the action to execute action, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| public void | extendSelection(int
the position pos)This function will extend the selection to include the specified pos. |
| private boolean | |
| pack-priv String | |
| pack-priv static String | Returns: The string after having the unwanted characters stripped out.A little utility method for stripping out unwanted characters. |
| public final ObjectProperty | |
| public void | |
| public final int | |
| public final int | |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| protected final TextInputControl. | |
| public List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final Font | |
| private FormatterAccessor | |
| public final int | |
| public final String | |
| public final String | |
| public final IndexRange | |
| public final String | |
| public String | Returns: the subset of the text input's contentmust be a value between 0 and end - 1. start, int must be less than or equal to the length end)Returns a subset of the text input's content. |
| public final TextFormatter | |
| public void | |
| public void | insertText(int
The location to insert the text. index, String The text to insert. text)Inserts a sequence of characters into the content. |
| public final boolean | |
| private static boolean | |
| private static boolean | |
| public final boolean | |
| public final boolean | |
| public final ReadOnlyIntegerProperty | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public final StringProperty | |
| public Object | queryAccessibleAttribute(AccessibleAttribute
the requested attribute attribute, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| public final void | |
| public final ReadOnlyBooleanProperty | |
| public void | replaceSelection(String
the replacement string replacement)Replaces the selection with the given replacement String. |
| public void | replaceText(IndexRange
The range of text to replace. The range object must not be null. range, String The text that is to replace the range. This must not be null. text)Replaces a range of characters with the given text. |
| public void | replaceText(final int
The starting index in the range, inclusive. This must be >= 0 and < the end. start, final int The ending index in the range, exclusive. This is one-past the last character to
delete (consistent with the String manipulation methods). This must be > the start,
and <= the length of the text. end, final String The text that is to replace the range. This must not be null. text)Replaces a range of characters with the given text. |
| private int | Returns: The amount of adjustment made to the end / anchor / caretPosition to accommodate for subsequent filtering (such as the filtering of new lines by the TextField)The start index into the existing text which
will be replaced by the new value start, int The end index into the existing text which will
be replaced by the new value. As with
String.replace this is a lastIndex+1 value end, String The new text value value, int The new selection anchor after the change is made anchor, int The new selection caretPosition after the change
is made. caretPosition)This is what is ultimately called by every code path that will update the content (except for undo / redo). |
| private void | |
| public void | |
| public void | |
| public final ReadOnlyStringProperty | |
| public void | |
| public void | |
| public void | |
| public void | |
| public final ReadOnlyObjectProperty | |
| public void | |
| public void | selectPositionCaret(int
the position pos)Positions the caret to the position indicated by |
| public void | |
| public void | selectRange(int
the anchor anchor, int the caretPosition caretPosition)Positions the anchor and caretPosition explicitly. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | |
| public final StringProperty | |
| pack-priv void | |
| public final void | |
| public final ReadOnlyBooleanProperty | |
| private void | |
| private void | |
| private <T> void | |
| private void |