public class InputMethodTextRun extends Object implements Serializable
Note: this is a conditional feature. See
ConditionalFeature.INPUT_METHOD
for more information.
Constructor and Description |
---|
InputMethodTextRun(String text,
InputMethodHighlight highlight)
Constructs a single text run of an input method.
|
Modifier and Type | Method and Description |
---|---|
InputMethodHighlight |
getHighlight()
Gets the highlight used for displaying this text.
|
String |
getText()
Gets the text in this run.
|
String |
toString()
Returns a string representation of this
InputMethodTextRun object. |
public InputMethodTextRun(String text, InputMethodHighlight highlight)
text
- the text in the text runhighlight
- the highlighting of the textpublic final String getText()
public final InputMethodHighlight getHighlight()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.