public abstract class TextInputControlSkin<T extends TextInputControl,B extends TextInputControlBehavior<T>> extends BehaviorSkinBase<T,B>
Modifier and Type | Class and Description |
---|---|
private static class |
TextInputControlSkin.CaretBlinking |
(package private) class |
TextInputControlSkin.ContextMenuItem |
private static class |
TextInputControlSkin.StyleableProperties |
Modifier and Type | Field and Description |
---|---|
private BooleanProperty |
blink |
private TextInputControlSkin.CaretBlinking |
caretBlinking |
protected StackPane |
caretHandle |
protected Path |
caretPath
A path, provided by the textNode, which represents the caret.
|
protected ObservableBooleanValue |
caretVisible |
(package private) MenuItem |
copyMI |
(package private) MenuItem |
cutMI |
(package private) MenuItem |
deleteMI |
protected BooleanProperty |
displayCaret |
protected ObservableObjectValue<FontMetrics> |
fontMetrics |
private BooleanProperty |
forwardBias |
protected ObjectProperty<Paint> |
highlightFill
The fill to use for the text when highlighted.
|
protected ObjectProperty<Paint> |
highlightTextFill |
private java.util.List<Shape> |
imattrs |
private int |
imlength |
private int |
imstart |
private static boolean |
IS_FXVK_SUPPORTED |
(package private) MenuItem |
pasteMI |
(package private) static boolean |
preload |
protected ObjectProperty<Paint> |
promptTextFill |
(package private) MenuItem |
redoMI |
(package private) MenuItem |
selectAllMI |
protected StackPane |
selectionHandle1 |
protected StackPane |
selectionHandle2 |
(package private) MenuItem |
selectWordMI |
(package private) MenuItem |
separatorMI |
protected static boolean |
SHOW_HANDLES
Specifies whether we ought to show handles.
|
protected ObjectProperty<Paint> |
textFill
The fill to use for the text under normal conditions
|
(package private) MenuItem |
undoMI |
private static boolean |
USE_FXVK |
(package private) static int |
vkType |
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
TextInputControlSkin(T textInput,
B behavior) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addHighlight(java.util.List<? extends Node> nodes,
int start) |
private void |
createInputMethodAttributes(InputMethodHighlight highlight,
int start,
int end) |
protected void |
executeAccessibleAction(AccessibleAction action,
java.lang.Object... parameters) |
BooleanProperty |
forwardBiasProperty() |
char |
getCharacter(int index)
Returns the character at a given offset.
|
Rectangle2D |
getCharacterBounds(int index)
Returns the bounds of the character at a given index.
|
static java.util.List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
java.util.List<CssMetaData<? extends Styleable,?>> |
getCssMetaData()
This method should delegate to
Node.getClassCssMetaData() so that
a Node's CssMetaData can be accessed without the need for reflection. |
int |
getInsertionPoint(double x,
double y)
Returns the insertion point for a given location.
|
Point2D |
getMenuPosition() |
protected abstract PathElement[] |
getRangeShape(int start,
int end) |
protected abstract PathElement[] |
getUnderlineShape(int start,
int end) |
protected void |
handleInputMethodEvent(InputMethodEvent event) |
protected void |
invalidateMetrics() |
boolean |
isForwardBias() |
protected boolean |
isRTL() |
protected java.lang.String |
maskText(java.lang.String txt) |
abstract void |
nextCharacterVisually(boolean moveRight) |
void |
populateContextMenu(ContextMenu contextMenu) |
protected abstract void |
removeHighlight(java.util.List<? extends Node> nodes) |
void |
scrollCharacterToVisible(int index)
Ensures that the character at a given index is visible.
|
void |
setCaretAnimating(boolean value) |
void |
setForwardBias(boolean isLeading) |
void |
toggleUseVK() |
protected void |
updateHighlightFill() |
protected void |
updateHighlightTextFill() |
protected void |
updateTextFill() |
dispose, getBehavior, handleControlPropertyChanged, registerChangeListener, unregisterChangeListener
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, getChildren, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
static boolean preload
protected static final boolean SHOW_HANDLES
protected final ObservableObjectValue<FontMetrics> fontMetrics
protected final ObjectProperty<Paint> textFill
protected final ObjectProperty<Paint> promptTextFill
protected final ObjectProperty<Paint> highlightFill
protected final ObjectProperty<Paint> highlightTextFill
protected final BooleanProperty displayCaret
private BooleanProperty forwardBias
private BooleanProperty blink
protected ObservableBooleanValue caretVisible
private TextInputControlSkin.CaretBlinking caretBlinking
protected final Path caretPath
protected StackPane caretHandle
protected StackPane selectionHandle1
protected StackPane selectionHandle2
private static final boolean IS_FXVK_SUPPORTED
private static boolean USE_FXVK
static int vkType
private int imstart
private int imlength
private java.util.List<Shape> imattrs
final MenuItem undoMI
final MenuItem redoMI
final MenuItem cutMI
final MenuItem copyMI
final MenuItem pasteMI
final MenuItem deleteMI
final MenuItem selectWordMI
final MenuItem selectAllMI
final MenuItem separatorMI
public BooleanProperty forwardBiasProperty()
public void setForwardBias(boolean isLeading)
public boolean isForwardBias()
public Point2D getMenuPosition()
public void toggleUseVK()
protected java.lang.String maskText(java.lang.String txt)
public char getCharacter(int index)
index
- public int getInsertionPoint(double x, double y)
x
- y
- public Rectangle2D getCharacterBounds(int index)
index
- public void scrollCharacterToVisible(int index)
index
- protected void invalidateMetrics()
protected void updateTextFill()
protected void updateHighlightFill()
protected void updateHighlightTextFill()
protected void handleInputMethodEvent(InputMethodEvent event)
protected abstract PathElement[] getUnderlineShape(int start, int end)
protected abstract PathElement[] getRangeShape(int start, int end)
protected abstract void addHighlight(java.util.List<? extends Node> nodes, int start)
protected abstract void removeHighlight(java.util.List<? extends Node> nodes)
public abstract void nextCharacterVisually(boolean moveRight)
private void createInputMethodAttributes(InputMethodHighlight highlight, int start, int end)
protected boolean isRTL()
public void setCaretAnimating(boolean value)
public void populateContextMenu(ContextMenu contextMenu)
public static java.util.List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public java.util.List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Node.getClassCssMetaData()
so that
a Node's CssMetaData can be accessed without the need for reflection.getCssMetaData
in class SkinBase<T extends TextInputControl>
protected void executeAccessibleAction(AccessibleAction action, java.lang.Object... parameters)
executeAccessibleAction
in class SkinBase<T extends TextInputControl>
Node.executeAccessibleAction(javafx.scene.AccessibleAction, java.lang.Object...)