Overview
HasInputFieldElement is a convenience mixin interface that groups common capabilities of Vaadin input field components. It combines several specialized interfaces to provide a unified set of features for components that support labels, values, helper text, and styling.
This interface does not define any methods of its own but serves as a composition of other mixin interfaces, providing a convenient way to declare that an element supports all standard input field capabilities.
Interface Location: org.vaadin.addons.dramafinder.element.shared.HasInputFieldElement
Composed Interfaces
HasInputFieldElement extends the following interfaces:
HasHelperElement- Helper text support via helper slotHasValueElement- Value handling for input fieldsHasStyleElement- CSS class styling supportHasLabelElement- Visible label support
Methods
Since this interface is a pure composition mixin, it inherits all methods from its parent interfaces. See the individual interface documentation for available methods:- HasHelperElement - Methods for helper text
- HasValueElement - Methods for value handling
- HasStyleElement - Methods for CSS styling
- HasLabelElement - Methods for label handling
Implementing Classes
The following element classes implementHasInputFieldElement:
TextFieldElement(and its subclasses:TextAreaElement,PasswordFieldElement,EmailFieldElement)AbstractNumberFieldElement(and its subclasses:NumberFieldElement,IntegerFieldElement,BigDecimalFieldElement)DatePickerElementDateTimePickerElementTimePickerElementComboBoxElementMultiSelectComboBoxElementSelectElement
Usage Example
Design Purpose
This mixin interface follows the Composition Pattern to avoid code duplication across input field implementations. Instead of each input field class implementing the same set of interfaces repeatedly, they can simply implementHasInputFieldElement to gain all standard input field capabilities.
Related Interfaces
- HasValidationPropertiesElement - Often used alongside this interface for form validation
- HasPlaceholderElement - Commonly combined with input fields
- HasClearButtonElement - Often used with text inputs
- FocusableElement - Focus management for interactive fields