public class JavaFXCompatUtil
extends java.lang.Object
impl_
who get replaced with property API in JavaFX-9 and some of them got removed
or made internal.| Constructor and Description |
|---|
JavaFXCompatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<javafx.stage.Window> |
getAllWindows() |
static javafx.scene.shape.PathElement[] |
getCaretShape(javafx.scene.text.Text t)
Get the caret shape
|
static java.lang.String |
getChar(javafx.scene.input.KeyCode keyCode)
Returns the character element of this key code, which is simply a mapping
of the underlying platform code returned by
getCode(KeyCode). |
static int |
getCode(javafx.scene.input.KeyCode keyCode)
Returns the underlying platform code used to represent the
character in the key code. |
static java.lang.Integer |
getInsertionIndex(javafx.scene.text.Text t,
javafx.geometry.Point2D point)
Maps local point to index in the content.
|
static java.lang.Integer |
insertationIndex(javafx.scene.text.Text t,
javafx.geometry.Point2D point)
Compute the insertation index for a given point
|
static void |
reapplyCSS(javafx.scene.Node node)
Force reapplying the CSS on the provided node
|
static void |
setCaretPosition(javafx.scene.text.Text t,
int value)
Set the caret position
|
public static java.util.List<javafx.stage.Window> getAllWindows()
public static int getCode(javafx.scene.input.KeyCode keyCode)
character in the key code.keyCode - the key code instancepublic static java.lang.String getChar(javafx.scene.input.KeyCode keyCode)
getCode(KeyCode).keyCode - the keycodepublic static void reapplyCSS(javafx.scene.Node node)
node - the nodepublic static void setCaretPosition(javafx.scene.text.Text t,
int value)
t - the text nodevalue - the valuepublic static javafx.scene.shape.PathElement[] getCaretShape(javafx.scene.text.Text t)
t - the text nodepublic static java.lang.Integer getInsertionIndex(javafx.scene.text.Text t,
javafx.geometry.Point2D point)
t - the textpoint - the pointnull if no hitpublic static java.lang.Integer insertationIndex(javafx.scene.text.Text t,
javafx.geometry.Point2D point)
t - the textpoint - the location relative to the text node