com.holonplatform.vaadin.flow.components.builders

## Interface HasPatternConfigurator<C extends HasPatternConfigurator<C>>

- Type Parameters:
    `C` - Concrete configurator type
  All Known Subinterfaces:
    FilterableSingleSelectConfigurator<T,ITEM,B>, FilterableSingleSelectConfigurator.DatastoreFilterableSingleSelectInputBuilder<T,ITEM>, FilterableSingleSelectConfigurator.DatastoreFilterableSingleSelectInputConfigurator<T,ITEM,C>, FilterableSingleSelectConfigurator.DatastorePropertyFilterableSingleSelectInputBuilder<T>, FilterableSingleSelectConfigurator.DatastorePropertyFilterableSingleSelectInputConfigurator<T,C>, FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM>, FilterableSingleSelectConfigurator.FilterableSingleSelectInputConfigurator<T,ITEM,D,C>, FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T>, FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputConfigurator<T,D,C>, FilterableSingleSelectConfigurator.ValidatableDatastoreFilterableSingleSelectInputBuilder<T,ITEM>, FilterableSingleSelectConfigurator.ValidatableDatastorePropertyFilterableSingleSelectInputBuilder<T>, FilterableSingleSelectConfigurator.ValidatableFilterableSingleSelectInputBuilder<T,ITEM>, FilterableSingleSelectConfigurator.ValidatablePropertyFilterableSingleSelectInputBuilder<T>, NumberInputBuilder<T>, NumberInputConfigurator<T,C>, PasswordInputBuilder, PasswordInputConfigurator<C>, StringInputBuilder, StringInputConfigurator<C>, ValidatableNumberInputBuilder<T>, ValidatablePasswordInputBuilder, ValidatableStringInputBuilder

      public interface HasPatternConfigurator<C extends HasPatternConfigurator<C>>

  Configurator for components which supports an input pattern.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `C` | `pattern(String pattern)` A regular expression that the value is checked against.
    `default C` | `preventInvalidInput()` Set that the user is prevented from typing a value that conflicts with the pattern configured through `pattern(String)`.
    `C` | `preventInvalidInput(boolean preventInvalidInput)` When set to true, user is prevented from typing a value that conflicts with the pattern configured through `pattern(String)`.

- - ### Method Detail

    - #### pattern

          C pattern(String pattern)

      A regular expression that the value is checked against. The pattern must match the entire value, not just some subset.
      Parameters:
        `pattern` - the value to set
      Returns:
        this

    - #### preventInvalidInput

          C preventInvalidInput(boolean preventInvalidInput)

      When set to true, user is prevented from typing a value that conflicts with the pattern configured through `pattern(String)`.
      Parameters:
        `preventInvalidInput` - the value to set
      Returns:
        this

    - #### preventInvalidInput

          default C preventInvalidInput()

      Set that the user is prevented from typing a value that conflicts with the pattern configured through `pattern(String)`.
      Returns:
        this

Copyright © 2019 The Holon Platform. All rights reserved.