InputMethodTextRun (Java SE 10 & JDK 10 )
- java.lang.Object
-
- javafx.scene.input.InputMethodTextRun
-
- All Implemented Interfaces:
Serializable
public class InputMethodTextRun extends Object implements Serializable
Represents a single run in which the characters have the same set of highlights in the input method text.
Note: this is a conditional feature. See
ConditionalFeature.INPUT_METHODfor more information.- Since:
- JavaFX 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InputMethodTextRun(String text, InputMethodHighlight highlight)Constructs a single text run of an input method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputMethodHighlightgetHighlight()Gets the highlight used for displaying this text.
StringgetText()Gets the text in this run.
StringtoString()Returns a string representation of this
InputMethodTextRunobject.
-
-
-
Constructor Detail
-
InputMethodTextRun
public InputMethodTextRun(String text, InputMethodHighlight highlight)
Constructs a single text run of an input method.
- Parameters:
text- the text in the text runhighlight- the highlighting of the text- Since:
- JavaFX 8.0
-
-
Method Detail
-
getText
public final String getText()
Gets the text in this run.
- Returns:
- the text in this run
-
getHighlight
public final InputMethodHighlight getHighlight()
Gets the highlight used for displaying this text.
- Returns:
- the highlight used for displaying this text
-
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.