APIdia Launch Partner
Top Description Methods
com.sun.javafx.scene.input

public Interface ExtendedInputMethodRequests

extends InputMethodRequests
Known Direct Implementers
javafx.scene.Scene.InputMethodRequestsDelegate
Imports
javafx.scene.input.InputMethodRequests

ExtendedInputMethodRequests extends the InputMethodRequests interface to provide more requests that a text editing node could handle. The text editing node is not required to implement an extended interface, but it could implement it to support input methods when embedded into the JFXPanel
Since
JavaFX 8.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the committed text
getCommittedText
(int
the index of the first character
begin
,
int
the index of the character following the last character
end
)

Gets the entire text contained in the text editing node except the uncommitted text.

public int

Returns:

length of the text except the uncommitted text
getCommittedTextLength
()

Gets the length of the entire text contained in the text editing node except the uncommitted text.

public int

Returns:

the offset of the insert position
getInsertPositionOffset
()

Returns the offset of the insert position in the committed text contained in the text editing node.

Inherited from javafx.scene.input.InputMethodRequests:
cancelLatestCommittedTextgetLocationOffsetgetSelectedTextgetTextLocation

Method Detail

getCommittedTextback to summary
public String getCommittedText(int begin, int end)

Gets the entire text contained in the text editing node except the uncommitted text. The uncommitted text is ignored for index calculations.

Parameters
begin:int

the index of the first character

end:int

the index of the character following the last character

Returns:String

the committed text

getCommittedTextLengthback to summary
public int getCommittedTextLength()

Gets the length of the entire text contained in the text editing node except the uncommitted text.

Returns:int

length of the text except the uncommitted text

getInsertPositionOffsetback to summary
public int getInsertPositionOffset()

Returns the offset of the insert position in the committed text contained in the text editing node.

Returns:int

the offset of the insert position