Class InputMethodEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
vaadinx.awt.event.InputMethodEvent
- All Implemented Interfaces:
Serializable
Port of
InputMethodEvent. Niche — used by IME
text-composition pipelines. Ported for completeness since
Component exposes input-method listener methods and
the type surface needs a consistent root.
Sub-objects (AttributedCharacterIterator,
TextHitInfo) have no Component references, so we
reuse them unchanged from the JDK per D_whitelist_porting.
consume() / isConsumed() are public here as in the JDK,
with the same caveat as InputEvent: the flag round-trips but vetoes
nothing, since the browser has already acted. See D_event_consume.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionInputMethodEvent(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition) InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) -
Method Summary
Methods inherited from class EventObject
getSource
-
Field Details
-
INPUT_METHOD_FIRST
public static final int INPUT_METHOD_FIRST- See Also:
-
INPUT_METHOD_LAST
public static final int INPUT_METHOD_LAST- See Also:
-
INPUT_METHOD_TEXT_CHANGED
public static final int INPUT_METHOD_TEXT_CHANGED- See Also:
-
CARET_POSITION_CHANGED
public static final int CARET_POSITION_CHANGED- See Also:
-
-
Constructor Details
-
InputMethodEvent
public InputMethodEvent(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) -
InputMethodEvent
public InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) -
InputMethodEvent
-
-
Method Details
-
getWhen
public long getWhen() -
getText
-
getCommittedCharacterCount
public int getCommittedCharacterCount() -
getCaret
-
getVisiblePosition
-
consume
-
isConsumed
public boolean isConsumed()- Overrides:
isConsumedin classAWTEvent- Returns:
- whether
consume()has been called on this event
-
paramString
- Overrides:
paramStringin classAWTEvent
-