Package org.vaadin.miki.markers
Interface HasInvalidInputPrevention
- All Known Subinterfaces:
WithInvalidInputPreventionMixin<SELF>
- All Known Implementing Classes:
AbstractSuperFloatingPointField,AbstractSuperNumberField,SuperBigDecimalField,SuperDoubleField,SuperIntegerField,SuperLongField,SuperTextField
public interface HasInvalidInputPrevention
Marker interface for components that are capable of preventing invalid input.
- Since:
- 2023-06-05
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this component is actively preventing invalid input.voidsetPreventingInvalidInput(boolean prevent) Modifies the state of the component when it comes to preventing invalid input.
-
Method Details
-
setPreventingInvalidInput
void setPreventingInvalidInput(boolean prevent) Modifies the state of the component when it comes to preventing invalid input. When the flag is set totrueand the current value is invalid, it will be cleared.- Parameters:
prevent- Whether to prevent invalid input.
-
isPreventingInvalidInput
boolean isPreventingInvalidInput()Checks if this component is actively preventing invalid input.- Returns:
truewhen entering invalid input is prevented,falseotherwise and by default.
-