Spec-Zone .ru
спецификации, руководства, описания, API
|
public class InputMethodEvent extends InputEvent
Node
.
This event is delivered to the Node
object that extends
TextInputControl
, when the text under composition
(composed text) is generated/changed/removed, the input method commits
the result text, or the input method caret position changes.
On receiving this event, the application is supposed to display the composed text with any visual feedback attributes to the user.
Note: this is a conditional feature. See
ConditionalFeature.INPUT_METHOD
for more information.
Modifier and Type | Field and Description |
---|---|
static EventType<InputMethodEvent> |
INPUT_METHOD_TEXT_CHANGED
The only valid EventType for the InputMethodEvent.
|
ANY
consumed, eventType, NULL_SOURCE_TARGET, target
Modifier and Type | Method and Description |
---|---|
int |
getCaretPosition()
The input method caret position within the composed text.
|
java.lang.String |
getCommitted()
Gets the text that is committed by the input method as the result of the
composition.
|
ObservableList<InputMethodTextRun> |
getComposed()
Gets the text under composition.
|
java.lang.String |
toString()
Returns a string representation of this
InputMethodEvent object. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
public static final EventType<InputMethodEvent> INPUT_METHOD_TEXT_CHANGED
public final ObservableList<InputMethodTextRun> getComposed()
InputMethodHighlight
s
attached to each run.public final java.lang.String getCommitted()
public final int getCaretPosition()
public java.lang.String toString()
InputMethodEvent
object.toString
in class java.util.EventObject
InputMethodEvent
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to