com.holonplatform.vaadin.flow.components.builders

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

- Type Parameters:
    `C` - Concrete configurator type
  All Known Subinterfaces:
    LocalTimeInputBuilder, NumberInputBuilder<T>, PasswordInputBuilder, SelectModeSingleSelectInputBuilder<T,ITEM,B>, SelectModeSingleSelectInputBuilder.DatastoreItemSelectModeSingleSelectInputBuilder<T,ITEM>, SelectModeSingleSelectInputBuilder.DatastorePropertySelectModeSingleSelectInputBuilder<T>, SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM>, SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T>, StringInputBuilder

      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.