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 Type
    Method
    Description
    boolean
    Checks if this component is actively preventing invalid input.
    void
    setPreventingInvalidInput(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 to true and 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:
      true when entering invalid input is prevented, false otherwise and by default.