Class InputEvent
java.lang.Object
com.oorian.messaging.events.Event<InputListener>
com.oorian.messaging.events.client.ClientEvent<InputListener>
com.oorian.messaging.events.client.InputEvent
- Direct Known Subclasses:
InputChangeEvent,InputCompleteEvent
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 Summary
Constructors -
Method Summary
Methods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTargetMethods inherited from class com.oorian.messaging.events.Event
bubbles, dispatchTo
-
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.
-