com.holonplatform.vaadin.flow.components.builders

## Interface HasElementConfigurator<C extends HasElementConfigurator<C>>

- Type Parameters:
    `C` - Concrete configurator type
  All Known Subinterfaces:
    BaseDateInputBuilder<D,B>, BeanListingBuilder<T>, BeanListingBuilder.DatastoreBeanListingBuilder<T>, BeanListingConfigurator<T,C>, BooleanInputBuilder, ButtonBuilder, ButtonConfigurator<C>, ButtonConfigurator.BaseButtonConfigurator, ComponentBuilder<C,B>, ComponentConfigurator<C>, ComponentConfigurator.BaseComponentConfigurator, ContextMenuBuilder, ContextMenuConfigurator<L,M,C>, DateInputBuilder, DateTimeInputBuilder, DialogBuilder<B>, DialogBuilder.ConfirmDialogBuilder, DialogBuilder.MessageDialogBuilder, DialogBuilder.QuestionDialogBuilder, DialogConfigurator<C>, DialogConfigurator.ClosableDialogConfigurator<C>, FlexComponentConfigurator<C>, FormLayoutBuilder, FormLayoutConfigurator<C>, FormLayoutConfigurator.BaseFormLayoutConfigurator, HasComponentsConfigurator<C>, HasValueInputBuilder<T,H,C>, HorizontalLayoutBuilder, HtmlComponentConfigurator<C>, InputAdapterBuilder<T,V,H,C,B>, InputBuilder<T,E,C,B>, InputConfigurator<T,E,C>, InputConfigurator.BaseInputConfigurator<T>, InputConverterBuilder<T,V,H,C>, InputValueConfigurator<T,E,C>, ItemListingBuilder<T,P,L,B>, ItemListingConfigurator<T,P,L,C>, ItemListingConfigurator.ItemListingContextMenuBuilder<T,P,L,B>, LabelBuilder<L>, LabelConfigurator<L,C>, LabelConfigurator.BaseLabelConfigurator<L>, LocalDateInputBuilder, LocalDateTimeInputBuilder, LocalTimeInputBuilder, MultiSelectInputBuilder<T,ITEM,B>, NativeButtonBuilder, NavigationLink.Builder, NumberInputBuilder<T>, OptionsModeMultiSelectInputBuilder<T,ITEM,B>, OptionsModeMultiSelectInputBuilder.DatastoreItemOptionsModeMultiSelectInputBuilder<T,ITEM>, OptionsModeMultiSelectInputBuilder.DatastorePropertyOptionsModeMultiSelectInputBuilder<T>, OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,ITEM>, OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T>, OptionsModeSingleSelectInputBuilder<T,ITEM,B>, OptionsModeSingleSelectInputBuilder.DatastoreItemOptionsModeSingleSelectInputBuilder<T,ITEM>, OptionsModeSingleSelectInputBuilder.DatastorePropertyOptionsModeSingleSelectInputBuilder<T>, OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilder<T,ITEM>, OptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilder<T>, PasswordInputBuilder, PropertyFormConfigurator<L,E,G,C>, PropertyInputFormBuilder<C>, PropertyListingBuilder, PropertyListingBuilder.DatastorePropertyListingBuilder, PropertyListingConfigurator<C>, PropertyViewFormBuilder<C>, SelectableInputConfigurator<T,S,C>, SelectModeSingleSelectInputBuilder<T,ITEM,B>, SelectModeSingleSelectInputBuilder.DatastoreItemSelectModeSingleSelectInputBuilder<T,ITEM>, SelectModeSingleSelectInputBuilder.DatastorePropertySelectModeSingleSelectInputBuilder<T>, SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM>, SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T>, SingleSelectInputBuilder<T,ITEM,B>, StringAreaInputBuilder, StringInputBuilder, ThemableFlexComponentConfigurator<C>, ThemableFlexComponentConfigurator.HorizontalLayoutConfigurator, ThemableFlexComponentConfigurator.VerticalLayoutConfigurator, ThemableLayoutConfigurator<C>, VerticalLayoutBuilder, ViewComponentBuilder<T>

      public interface HasElementConfigurator<C extends HasElementConfigurator<C>>

  Configurator for `HasElement` type components.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `C` | `withEventListener(String eventType, com.vaadin.flow.dom.DomEventListener listener)` Adds an event listener for the given event type.
    `C` | `withEventListener(String eventType, com.vaadin.flow.dom.DomEventListener listener, String filter)` Adds an event listener for the given event type and configure a filter.
    `C` | `withThemeName(String themeName)` Adds a theme name to this component.

- - ### Method Detail

    - #### withThemeName

          C withThemeName(String themeName)

      Adds a theme name to this component.
      Parameters:
        `themeName` - the theme name to add, not `null`
      Returns:
        this

    - #### withEventListener

          C withEventListener(String eventType,
                              com.vaadin.flow.dom.DomEventListener listener)

      Adds an event listener for the given event type.

      Event listeners are triggered in the order they are registered.

      Parameters:
        `eventType` - the type of event to listen to, not `null`
        `listener` - the listener to add, not `null`
      Returns:
        this

    - #### withEventListener

          C withEventListener(String eventType,
                              com.vaadin.flow.dom.DomEventListener listener,
                              String filter)

      Adds an event listener for the given event type and configure a filter.

      A filter is JavaScript expression that is used for filtering events to this listener. When an event is fired in the browser, the expression is evaluated and an event is sent to the server only if the expression value is `true`-ish according to JavaScript type coercion rules. The expression is evaluated in a context where `element` refers to this element and `event` refers to the fired event. An expression might be e.g. `event.button === 0` to only forward events triggered by the primary mouse button.

      Event listeners are triggered in the order they are registered.

      Parameters:
        `eventType` - the type of event to listen to, not `null`
        `listener` - the listener to add, not `null`
        `filter` - the JavaScript filter expression
      Returns:
        this

Copyright © 2019 The Holon Platform. All rights reserved.