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()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.