Class CompositionEvent

Direct Known Subclasses:
CompositionEndEvent, CompositionStartEvent, CompositionUpdateEvent

public abstract class CompositionEvent extends ClientEvent<CompositionListener>
Abstract base class for all composition (IME) events in the client interface.

Composition events are fired during text composition using an Input Method Editor (IME), such as when typing characters for CJK (Chinese, Japanese, Korean) languages. This class provides the composed text data field common to all composition event types.

Features:

  • Captures the composed text data from the IME
  • Supports composition start, update, and end lifecycle
  • Integrates with the CompositionListener interface
Since:
2026
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • CompositionEvent

      public CompositionEvent(String data)
      Constructs a new CompositionEvent with the specified composed text data.
      Parameters:
      data - the composed text data from the IME
  • Method Details

    • getData

      public String getData()
      Returns the composed text data from the IME.
      Returns:
      the composed text data