Class InputEvent

Direct Known Subclasses:
InputChangeEvent, InputCompleteEvent

public abstract class InputEvent extends ClientEvent<InputListener>
Abstract base class for input-related client events.

This class serves as the parent for all input events that occur when users interact with input controls such as text fields, text areas, checkboxes, radio buttons, and select elements. Input events enable applications to respond to user data entry in real-time or upon completion, supporting validation, auto-completion, and dynamic UI updates.

Features:

  • Base class for input change and input complete events
  • Integrates with the InputListener interface
  • Inherits source/target element tracking from ClientEvent
  • Supports both real-time and completion-based input handling

Usage: This class is not instantiated directly. Instead, use its concrete subclasses InputChangeEvent and InputCompleteEvent to represent specific input interactions.


 // Handled through InputListener implementations
 public void onEvent(InputChangeEvent event) {
     // Handle ongoing input changes
     String value = event.getValue();
 }

 public void onEvent(InputCompleteEvent event) {
     // Handle completed input
     String value = event.getValue();
 }
 
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • InputEvent

      public InputEvent()
      Constructs a new InputEvent.

      Protected constructor to ensure that only subclasses can instantiate input events. This maintains proper event type hierarchy.