public class InputMethodTextRun
extends java.lang.Object
implements java.io.Serializable
Note: this is a conditional feature. See
ConditionalFeature.INPUT_METHOD
for more information.
| Modifier and Type | Field and Description |
|---|---|
private InputMethodHighlight |
highlight
The highlight used for displaying this text.
|
private java.lang.String |
text
The text in this run.
|
| 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. |
private final java.lang.String text
private final InputMethodHighlight highlight
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.ObjectInputMethodTextRun object.