TextFieldSkin, TextAreaSkin
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static enum | TextInputControlSkin.
Direction names for caret movement. |
| private static class | |
| public static enum | TextInputControlSkin.
Unit names for caret movement. |
| Modifier and Type | Field and Description |
|---|---|
| private BooleanProperty | |
| private TextInputControlSkin. | |
| pack-priv StackPane | |
| pack-priv final Path | caretPath
A path, provided by the textNode, which represents the caret. |
| private ObservableBooleanValue | |
| private final BooleanProperty | |
| pack-priv final ObservableObjectValue | |
| private BooleanProperty | forwardBias
Caret bias in the content. |
| private final ObjectProperty | highlightFill
The fill to use for the text when highlighted. |
| private final ObjectProperty | highlightTextFill
The fill |
| private List | |
| private int | |
| private int | |
| private InputMethodRequests | |
| private final EventHandler | |
| private static final boolean | |
| private static final boolean | |
| private final ObjectProperty | promptTextFill
The fill |
| pack-priv StackPane | |
| pack-priv StackPane | |
| pack-priv static final boolean | SHOW_HANDLES
Specifies whether we ought to show handles. |
| private final ObjectProperty | textFill
The fill to use for the text under normal conditions |
| Access | Constructor and Description |
|---|---|
| public | TextInputControlSkin(final T
The control that this skin should be installed onto. control)Creates a new instance of TextInputControlSkin, although note that this instance does not handle any behavior / input mappings - this needs to be handled appropriately by subclasses. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | addHighlight(List<? extends Node>
the list of nodes nodes, int the start start)Adds highlight for composed text from Input Method. |
| private final BooleanProperty | |
| pack-priv ObservableBooleanValue | |
| private void | |
| private final BooleanProperty | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| protected 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. |
| protected final BooleanProperty | |
| pack-priv TextInputControlBehavior | |
| public Rectangle2D | Returns: the bounds of the character at a given indexthe index index)Returns the bounds of the character at a given index. |
| public static List | Returns: the CssMetaData associated with this class, which may include the CssMetaData of its superclassesHides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| public List | getCssMetaData()
Overrides javafx. This method should delegate to |
| protected final Paint | |
| protected final Paint | |
| protected int | Returns: the insertion point for a given locationthe x location x, double the y location y)Returns the insertion point for a given location. |
| public Point2D | Returns: the position to be used for this context menuReturns the position to be used for a context menu, based on the location of the caret handle or selection handles. |
| protected final Paint | |
| protected abstract PathElement[] | Returns: the path elements describing the bounding rectangles for the given range of textthe start start, int the end end)Gets the path elements describing the bounding rectangles for the given range of text. |
| protected final Paint | |
| protected abstract PathElement[] | Returns: the path elements describing the shape of the underline for the given rangethe start start, int the end end)Gets the path elements describing the shape of the underline for the given range. |
| protected void | handleInputMethodEvent(InputMethodEvent
the event)InputMethodEvent to be handledHandles an input method event. |
| protected final ObjectProperty | |
| protected final ObjectProperty | |
| private static boolean | |
| public void | |
| protected void | |
| private final boolean | |
| pack-priv boolean | |
| private final boolean | |
| protected final boolean | |
| pack-priv boolean | |
| protected String | Returns: the replacement string. This may just be the input string, or may be a string of replacement characters with the same length as the input string.the content that may need to be masked. txt)This method may be overridden by subclasses to replace the displayed characters without affecting the actual text content. |
| public abstract void | moveCaret(TextInputControlSkin.
the unit of text to move by. unit,the direction of movement. dir,whether to extends the selection to the new position. select)Moves the caret by one of the given text unit, in the given direction. |
| protected final ObjectProperty | |
| protected abstract void | removeHighlight(List<? extends Node>
the list of nodes nodes)Removes highlight for composed text from Input Method. |
| protected void | |
| private final void | |
| public void | |
| private final void | |
| public final void | |
| protected final void | setHighlightFill(Paint
the highlight fill value)The fill |
| protected final void | setHighlightTextFill(Paint
the highlight text fill value)The fill |
| protected final void | setPromptTextFill(Paint
the prompt text fill value)The fill |
| protected final void | |
| protected final ObjectProperty | |
| protected void | |
| protected void | |
| protected void |
| blink | back to summary |
|---|---|
| private BooleanProperty blink | |
| caretBlinking | back to summary |
|---|---|
| private TextInputControlSkin. | |
| caretHandle | back to summary |
|---|---|
| pack-priv StackPane caretHandle | |
| caretPath | back to summary |
|---|---|
| pack-priv final Path caretPath A path, provided by the textNode, which represents the caret. I assume this has to be updated whenever the caretPosition changes. Perhaps more frequently (including text changes), but I'm not sure. | |
| caretVisible | back to summary |
|---|---|
| private ObservableBooleanValue caretVisible | |
| displayCaret | back to summary |
|---|---|
| private final BooleanProperty displayCaret | |
| fontMetrics | back to summary |
|---|---|
| pack-priv final ObservableObjectValue<FontMetrics> fontMetrics | |
| forwardBias | back to summary |
|---|---|
| private BooleanProperty forwardBias Caret bias in the content. true means a bias towards forward character (true=leading/false=trailing) | |
| highlightFill | back to summary |
|---|---|
| private final ObjectProperty<Paint> highlightFill The fill to use for the text when highlighted. | |
| highlightTextFill | back to summary |
|---|---|
| private final ObjectProperty<Paint> highlightTextFill The fill | |
| imattrs | back to summary |
|---|---|
| private List<Shape> imattrs | |
| imlength | back to summary |
|---|---|
| private int imlength | |
| imstart | back to summary |
|---|---|
| private int imstart | |
| inputMethodRequests | back to summary |
|---|---|
| private InputMethodRequests inputMethodRequests | |
| inputMethodTextChangedHandler | back to summary |
|---|---|
| private final EventHandler<InputMethodEvent> inputMethodTextChangedHandler | |
| IS_FXVK_SUPPORTED | back to summary |
|---|---|
| private static final boolean IS_FXVK_SUPPORTED | |
| preload | back to summary |
|---|---|
| private static final boolean preload | |
| promptTextFill | back to summary |
|---|---|
| private final ObjectProperty<Paint> promptTextFill The fill | |
| selectionHandle1 | back to summary |
|---|---|
| pack-priv StackPane selectionHandle1 | |
| selectionHandle2 | back to summary |
|---|---|
| pack-priv StackPane selectionHandle2 | |
| SHOW_HANDLES | back to summary |
|---|---|
| pack-priv static final boolean SHOW_HANDLES Specifies whether we ought to show handles. We should do it on touch platforms | |
| textFill | back to summary |
|---|---|
| private final ObjectProperty<Paint> textFill The fill to use for the text under normal conditions | |
| TextInputControlSkin | back to summary |
|---|---|
| public TextInputControlSkin(final T control) Creates a new instance of TextInputControlSkin, although note that this instance does not handle any behavior / input mappings - this needs to be handled appropriately by subclasses.
| |
| addHighlight | back to summary |
|---|---|
| protected abstract void addHighlight(List<? extends Node> nodes, int start) Adds highlight for composed text from Input Method. | |
| blinkProperty | back to summary |
|---|---|
| private final BooleanProperty blinkProperty() | |
| caretVisibleProperty | back to summary |
|---|---|
| pack-priv ObservableBooleanValue caretVisibleProperty() | |
| createInputMethodAttributes | back to summary |
|---|---|
| private void createInputMethodAttributes(InputMethodHighlight highlight, int start, int end) | |
| displayCaretProperty | back to summary |
|---|---|
| private final BooleanProperty displayCaretProperty() | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| executeAccessibleAction | back to summary |
|---|---|
| protected void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| forwardBiasProperty | back to summary |
|---|---|
| protected final BooleanProperty forwardBiasProperty() | |
| getBehavior | back to summary |
|---|---|
| pack-priv TextInputControlBehavior | |
| getCharacterBounds | back to summary |
|---|---|
| public Rectangle2D getCharacterBounds(int index) Returns the bounds of the character at a given index.
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. This method should delegate to
| |
| getHighlightFill | back to summary |
|---|---|
| protected final Paint getHighlightFill() | |
| getHighlightTextFill | back to summary |
|---|---|
| protected final Paint getHighlightTextFill() | |
| getInsertionPoint | back to summary |
|---|---|
| protected int getInsertionPoint(double x, double y) Returns the insertion point for a given location.
| |
| getMenuPosition | back to summary |
|---|---|
| public Point2D getMenuPosition() Returns the position to be used for a context menu, based on the location of the caret handle or selection handles. This is supported only on touch displays and does not use the location of the mouse.
| |
| getPromptTextFill | back to summary |
|---|---|
| protected final Paint getPromptTextFill() | |
| getRangeShape | back to summary |
|---|---|
| protected abstract PathElement[] getRangeShape(int start, int end) Gets the path elements describing the bounding rectangles for the given range of text.
| |
| getTextFill | back to summary |
|---|---|
| protected final Paint getTextFill() | |
| getUnderlineShape | back to summary |
|---|---|
| protected abstract PathElement[] getUnderlineShape(int start, int end) Gets the path elements describing the shape of the underline for the given range.
| |
| handleInputMethodEvent | back to summary |
|---|---|
| protected void handleInputMethodEvent(InputMethodEvent event) Handles an input method event.
| |
| highlightFillProperty | back to summary |
|---|---|
| protected final ObjectProperty | |
| highlightTextFillProperty | back to summary |
|---|---|
| protected final ObjectProperty | |
| initPreload | back to summary |
|---|---|
| private static boolean initPreload() | |
| install | back to summary |
|---|---|
| public void install() Overrides default javafx. Doc from javafx. Called once when Application code must not call this method. The default implementation of this method does nothing.
| |
| invalidateMetrics | back to summary |
|---|---|
| protected void invalidateMetrics() Invalidates cached min and pref sizes for the TextInputControl. | |
| isBlink | back to summary |
|---|---|
| private final boolean isBlink() | |
| isCaretBlinking | back to summary |
|---|---|
| pack-priv boolean isCaretBlinking() | |
| isDisplayCaret | back to summary |
|---|---|
| private final boolean isDisplayCaret() | |
| isForwardBias | back to summary |
|---|---|
| protected final boolean isForwardBias() | |
| isRTL | back to summary |
|---|---|
| pack-priv boolean isRTL() | |
| maskText | back to summary |
|---|---|
| protected String maskText(String txt) This method may be overridden by subclasses to replace the displayed characters without affecting the actual text content. This is used to display bullet characters in PasswordField. | |
| moveCaret | back to summary |
|---|---|
| public abstract void moveCaret(TextInputControlSkin. Moves the caret by one of the given text unit, in the given direction. Note that only certain combinations are valid, depending on the implementing subclass.
| |
| promptTextFillProperty | back to summary |
|---|---|
| protected final ObjectProperty | |
| removeHighlight | back to summary |
|---|---|
| protected abstract void removeHighlight(List<? extends Node> nodes) Removes highlight for composed text from Input Method. | |
| scrollCharacterToVisible | back to summary |
|---|---|
| protected void scrollCharacterToVisible(int index) Ensures that the character at a given index is visible.
| |
| setBlink | back to summary |
|---|---|
| private final void setBlink(boolean value) | |
| setCaretAnimating | back to summary |
|---|---|
| public void setCaretAnimating(boolean value) Starts or stops caret blinking. The behavior classes use this to temporarily pause blinking while user is typing or otherwise moving the caret.
| |
| setDisplayCaret | back to summary |
|---|---|
| private final void setDisplayCaret(boolean value) | |
| setForwardBias | back to summary |
|---|---|
| public final void setForwardBias(boolean isLeading) | |
| setHighlightFill | back to summary |
|---|---|
| protected final void setHighlightFill(Paint value) The fill
| |
| setHighlightTextFill | back to summary |
|---|---|
| protected final void setHighlightTextFill(Paint value) The fill
| |
| setPromptTextFill | back to summary |
|---|---|
| protected final void setPromptTextFill(Paint value) The fill
| |
| setTextFill | back to summary |
|---|---|
| protected final void setTextFill(Paint value) The fill
| |
| textFillProperty | back to summary |
|---|---|
| protected final ObjectProperty | |
| updateHighlightFill | back to summary |
|---|---|
| protected void updateHighlightFill() Called when highlightFill property changes. | |
| updateHighlightTextFill | back to summary |
|---|---|
| protected void updateHighlightTextFill() Called when highlightTextFill property changes. | |
| updateTextFill | back to summary |
|---|---|
| protected void updateTextFill() Called when textFill property changes. | |
| Modifier and Type | Field and Description |
|---|---|
| private final WeakReference | |
| private final Timeline |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public void |
| blinkPropertyRef | back to summary |
|---|---|
| private final WeakReference<BooleanProperty> blinkPropertyRef | |
| caretTimeline | back to summary |
|---|---|
| private final Timeline caretTimeline | |
| CaretBlinking | back to summary |
|---|---|
| public CaretBlinking(final BooleanProperty blinkProperty) | |
| setBlink | back to summary |
|---|---|
| private void setBlink(final boolean value) | |
| start | back to summary |
|---|---|
| public void start() | |
| stop | back to summary |
|---|---|
| public void stop() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TextInputControlSkin. | BEGINNING
Beginning |
| public static final TextInputControlSkin. | DOWN
Down Direction |
| public static final TextInputControlSkin. | END
End |
| public static final TextInputControlSkin. | LEFT
Left Direction |
| public static final TextInputControlSkin. | RIGHT
Right Direction |
| public static final TextInputControlSkin. | UP
Up Direction |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TextInputControlSkin. | |
| public static TextInputControlSkin. |
| BEGINNING | back to summary |
|---|---|
| public static final TextInputControlSkin. Beginning | |
| DOWN | back to summary |
|---|---|
| public static final TextInputControlSkin. Down Direction | |
| END | back to summary |
|---|---|
| public static final TextInputControlSkin. End | |
| LEFT | back to summary |
|---|---|
| public static final TextInputControlSkin. Left Direction | |
| RIGHT | back to summary |
|---|---|
| public static final TextInputControlSkin. Right Direction | |
| UP | back to summary |
|---|---|
| public static final TextInputControlSkin. Up Direction | |
| Direction | back to summary |
|---|---|
| private Direction() | |
| valueOf | back to summary |
|---|---|
| public static TextInputControlSkin. | |
| values | back to summary |
|---|---|
| public static TextInputControlSkin. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| DISPLAY_CARET | back to summary |
|---|---|
| private static final CssMetaData<TextInputControl, Boolean> DISPLAY_CARET | |
| HIGHLIGHT_FILL | back to summary |
|---|---|
| private static final CssMetaData<TextInputControl, Paint> HIGHLIGHT_FILL | |
| HIGHLIGHT_TEXT_FILL | back to summary |
|---|---|
| private static final CssMetaData<TextInputControl, Paint> HIGHLIGHT_TEXT_FILL | |
| PROMPT_TEXT_FILL | back to summary |
|---|---|
| private static final CssMetaData<TextInputControl, Paint> PROMPT_TEXT_FILL | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| TEXT_FILL | back to summary |
|---|---|
| private static final CssMetaData<TextInputControl, Paint> TEXT_FILL | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TextInputControlSkin. | CHARACTER
Character unit |
| public static final TextInputControlSkin. | LINE
Line unit |
| public static final TextInputControlSkin. | PAGE
Page unit |
| public static final TextInputControlSkin. | PARAGRAPH
Paragraph unit |
| public static final TextInputControlSkin. | WORD
Word unit |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TextInputControlSkin. | |
| public static TextInputControlSkin. |
| CHARACTER | back to summary |
|---|---|
| public static final TextInputControlSkin. Character unit | |
| LINE | back to summary |
|---|---|
| public static final TextInputControlSkin. Line unit | |
| PAGE | back to summary |
|---|---|
| public static final TextInputControlSkin. Page unit | |
| PARAGRAPH | back to summary |
|---|---|
| public static final TextInputControlSkin. Paragraph unit | |
| WORD | back to summary |
|---|---|
| public static final TextInputControlSkin. Word unit | |
| TextUnit | back to summary |
|---|---|
| private TextUnit() | |
| valueOf | back to summary |
|---|---|
| public static TextInputControlSkin. | |
| values | back to summary |
|---|---|
| public static TextInputControlSkin. | |