Top Description Fields Constructors Methods
javafx.scene.input

public Class InputMethodTextRun

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, javafx.beans.NamedArg

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_METHOD for more information.

Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private final InputMethodHighlight
highlight

The highlight used for displaying this text.

private final String
text

The text in this run.

Constructor Summary

AccessConstructor and Description
public
InputMethodTextRun(String
the text in the text run
text
,
InputMethodHighlight
the highlighting of the text
highlight
)

Constructs a single text run of an input method.

Method Summary

Modifier and TypeMethod and Description
public final InputMethodHighlight

Returns:

the highlight used for displaying this text
getHighlight
()

Gets the highlight used for displaying this text.

public final String

Returns:

the text in this run
getText
()

Gets the text in this run.

public String

Returns:

a string representation of this InputMethodTextRun object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this InputMethodTextRun object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

highlightback to summary
private final InputMethodHighlight highlight

The highlight used for displaying this text.

Default Value
null
textback to summary
private final String text

The text in this run.

Default Value
empty string

Constructor Detail

InputMethodTextRunback to summary
public InputMethodTextRun(String text, InputMethodHighlight highlight)

Constructs a single text run of an input method.

Parameters
text:String

the text in the text run

highlight:InputMethodHighlight

the highlighting of the text

Since
JavaFX 8.0

Method Detail

getHighlightback to summary
public final InputMethodHighlight getHighlight()

Gets the highlight used for displaying this text.

Returns:InputMethodHighlight

the highlight used for displaying this text

getTextback to summary
public final String getText()

Gets the text in this run.

Returns:String

the text in this run

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this InputMethodTextRun object.

Returns:String

a string representation of this InputMethodTextRun object.

Annotations
@Override