Package allurium.interfaces
Interface InputElement
- All Known Subinterfaces:
RequiredInput
- All Known Implementing Classes:
AbstractInputElement
,AbstractRequiredTextArea
,AbstractRequiredTextField
,Button
,CheckBox
,RadioButton
,TextArea
,TextField
public interface InputElement
Interface representing basic behavior for input elements in the UI.
This interface is designed to standardize interactions with input elements by providing a method to check their enabled/disabled state.
Purpose:
- Defines a common method for determining the enabled or disabled state of input elements.
- Simplifies validation of input interactivity in tests.
Common Implementations:
- Text fields
- Radio buttons
- Check boxes
- Custom input components
- Buttons
Usage Example:
public class CustomInput implements InputElement {
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether the input element is disabled.
-
Method Details
-
isDisabled
boolean isDisabled()Determines whether the input element is disabled.Implementing classes should provide logic to check if the input is not interactable.
- Returns:
true
if the input element is disabled;false
otherwise
-