public class InputMethodTextRun
extends java.lang.Object
implements java.io.Serializable
Note: this is a conditional feature. See
ConditionalFeature.INPUT_METHOD
for more information.
Constructor and Description |
---|
InputMethodTextRun(java.lang.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.
|
java.lang.String |
getText()
Gets the text in this run.
|
java.lang.String |
toString()
Returns a string representation of this
InputMethodTextRun object. |
public InputMethodTextRun(java.lang.String text, InputMethodHighlight highlight)
text
- the text in the text runhighlight
- the highlighting of the textpublic final java.lang.String getText()
public final InputMethodHighlight getHighlight()
public java.lang.String toString()
InputMethodTextRun
object.toString
in class java.lang.Object
InputMethodTextRun
object.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, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.