Interface WithClearButtonMixin<SELF extends com.vaadin.flow.component.shared.HasClearButton>

Type Parameters:
SELF - Self type.
All Superinterfaces:
com.vaadin.flow.component.shared.HasClearButton, com.vaadin.flow.component.HasElement, Serializable
All Known Implementing Classes:
AbstractSuperFloatingPointField, AbstractSuperNumberField, SuperBigDecimalField, SuperDoubleField, SuperIntegerField, SuperLongField, SuperTextArea, SuperTextField

public interface WithClearButtonMixin<SELF extends com.vaadin.flow.component.shared.HasClearButton> extends com.vaadin.flow.component.shared.HasClearButton
Mixin interface for HasClearButton.
Since:
2021-01-10
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    default SELF
    Chains HasClearButton.setClearButtonVisible(boolean) called with true and returns itself.
    default SELF
    withClearButtonVisible(boolean state)
    Chains HasClearButton.setClearButtonVisible(boolean) and returns itself.
    default SELF
    Chains HasClearButton.setClearButtonVisible(boolean) called with false and returns itself.

    Methods inherited from interface com.vaadin.flow.component.shared.HasClearButton

    isClearButtonVisible, setClearButtonVisible

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement
  • Method Details

    • withClearButtonVisible

      default SELF withClearButtonVisible(boolean state)
      Chains HasClearButton.setClearButtonVisible(boolean) and returns itself.
      Parameters:
      state - New visibility state for the clear button.
      Returns:
      This.
    • withClearButtonVisible

      default SELF withClearButtonVisible()
      Chains HasClearButton.setClearButtonVisible(boolean) called with true and returns itself.
      Returns:
      This.
    • withoutClearButtonVisible

      default SELF withoutClearButtonVisible()
      Chains HasClearButton.setClearButtonVisible(boolean) called with false and returns itself.
      Returns:
      This.