Spec-Zone .ru
спецификации, руководства, описания, API
|
public interface InputMethodRequests
Modifier and Type | Method and Description |
---|---|
void |
cancelLatestCommittedText()
Gets the latest committed text from the text editing node and removes
it from the node's text body.
|
int |
getLocationOffset(int x,
int y)
Gets the offset within the composed text for the specified absolute x
and y coordinates on the screen.
|
java.lang.String |
getSelectedText()
Gets the currently selected text from the text editing node.
|
Point2D |
getTextLocation(int offset)
Gets the location of a specified offset in the current composed text,
or of the selection in committed text.
|
Point2D getTextLocation(int offset)
offset
- the offset within the composed text, if there is
composed text; null otherwiseint getLocationOffset(int x, int y)
x
- the absolute x coordinate on screeny
- the absolute y coordinate on screenvoid cancelLatestCommittedText()
java.lang.String getSelectedText()
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to