| Modifier and Type | Field and Description |
|---|---|
| private static final PlatformLogger | |
| private boolean | |
| private final WebPage | |
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | activateInputMethods(final boolean doActivate)
Implements com.
|
| private <T> T | |
| public void | cancelLatestCommittedText()
Implements javafx. Gets the latest committed text from the text editing node and removes it from the node's text body. |
| public static WCInputMethodEvent | convertToWCInputMethodEvent(InputMethodEvent ie)
Converts the given InputMethodEvent to a WCInputMethodEvent. |
| public String | getCommittedText(int begin, int end)
Implements com. Gets the entire text contained in the text editing node except the uncommitted text. |
| public int | getCommittedTextLength()
Implements com. Gets the length of the entire text contained in the text editing node except the uncommitted text. |
| public boolean | |
| public int | getInsertPositionOffset()
Implements com. Returns the offset of the insert position in the committed text contained in the text editing node. |
| public int | getLocationOffset(int x, int y)
Implements javafx. Gets the offset within the composed text for the specified absolute x and y coordinates on the screen. |
| public String | getSelectedText()
Implements javafx. Gets the currently selected text from the text editing node. |
| public Point2D | getTextLocation(int offset)
Implements javafx. Gets the location of a specified offset in the current composed text, or of the selection in committed text. |
| log | back to summary |
|---|---|
| private static final PlatformLogger log | |
| state | back to summary |
|---|---|
| private boolean state | |
| webPage | back to summary |
|---|---|
| private final WebPage webPage | |
| wvRef | back to summary |
|---|---|
| private final WeakReference<WebView> wvRef | |
| InputMethodClientImpl | back to summary |
|---|---|
| public InputMethodClientImpl(WebView wv, WebPage webPage) | |
| activateInputMethods | back to summary |
|---|---|
| public void activateInputMethods(final boolean doActivate) Implements com.
| |
| callOnEventThread | back to summary |
|---|---|
| private <T> T callOnEventThread(Callable<T> callable) | |
| cancelLatestCommittedText | back to summary |
|---|---|
| public void cancelLatestCommittedText() Implements javafx. Doc from javafx. Gets the latest committed text from the text editing node and removes it from the node's text body. This is used for the "Undo Commit" feature in some input methods, where the committed text reverts to its previous composed state. The composed text will be sent to the node using an InputMethodEvent.
| |
| convertToWCInputMethodEvent | back to summary |
|---|---|
| public static WCInputMethodEvent convertToWCInputMethodEvent(InputMethodEvent ie) Converts the given InputMethodEvent to a WCInputMethodEvent. | |
| getCommittedText | back to summary |
|---|---|
| public String getCommittedText(int begin, int end) Implements com. Doc from com. Gets the entire text contained in the text editing node except the uncommitted text. The uncommitted text is ignored for index calculations.
| |
| getCommittedTextLength | back to summary |
|---|---|
| public int getCommittedTextLength() Implements com. Doc from com. Gets the length of the entire text contained in the text editing node except the uncommitted text.
| |
| getInputMethodState | back to summary |
|---|---|
| public boolean getInputMethodState() | |
| getInsertPositionOffset | back to summary |
|---|---|
| public int getInsertPositionOffset() Implements com. Doc from com. Returns the offset of the insert position in the committed text contained in the text editing node.
| |
| getLocationOffset | back to summary |
|---|---|
| public int getLocationOffset(int x, int y) Implements javafx. Doc from javafx. Gets the offset within the composed text for the specified absolute x and y coordinates on the screen. This information is used, for example to handle mouse clicks and the mouse cursor. The offset is relative to the composed text, so offset 0 indicates the beginning of the composed text.
| |
| getSelectedText | back to summary |
|---|---|
| public String getSelectedText() Implements javafx. Doc from javafx. Gets the currently selected text from the text editing node. This may be used for a variety of purposes. One of them is the "Reconvert" feature in some input methods. In this case, the input method will typically send an input method event to replace the selected text with composed text. Depending on the input method's capabilities, this may be the original composed text for the selected text, the latest composed text entered anywhere in the text, or a version of the text that's converted back from the selected text.
| |
| getTextLocation | back to summary |
|---|---|
| public Point2D getTextLocation(int offset) Implements javafx. Doc from javafx. Gets the location of a specified offset in the current composed text, or of the selection in committed text. This information is, for example, used to position the candidate window near the composed text, or a composition window near the location where committed text will be inserted.
| |