Interface EntitySearchFieldPanel.Builder<T,B extends EntitySearchFieldPanel.Builder<T,B>>

Type Parameters:
T - the type of the value the component represents
B - the builder type
All Superinterfaces:
ComponentBuilder<EntitySearchFieldPanel,B>, ComponentValueBuilder<EntitySearchFieldPanel,T,B>, Supplier<EntitySearchFieldPanel>
All Known Subinterfaces:
EntitySearchFieldPanel.MultiSelectionBuilder, EntitySearchFieldPanel.SingleSelectionBuilder
Enclosing class:
EntitySearchFieldPanel

public static interface EntitySearchFieldPanel.Builder<T,B extends EntitySearchFieldPanel.Builder<T,B>> extends ComponentValueBuilder<EntitySearchFieldPanel,T,B>
A builder for a EntitySearchFieldPanel
  • Method Details

    • includeSearchButton

      B includeSearchButton(boolean includeSearchButton)
      Parameters:
      includeSearchButton - true if a search button should be included
      Returns:
      this builder instance
    • includeAddButton

      B includeAddButton(boolean includeAddButton)
      Parameters:
      includeAddButton - true if an 'Add' button should be included
      Returns:
      this builder instance
    • includeEditButton

      B includeEditButton(boolean includeEditButton)
      Parameters:
      includeEditButton - true if an 'Edit' button should be included
      Returns:
      this builder instance
    • confirmAdd

      B confirmAdd(boolean confirmAdd)
      Parameters:
      confirmAdd - true if adding an item should be confirmed
      Returns:
      this builder instance
    • confirmEdit

      B confirmEdit(boolean confirmEdit)
      Parameters:
      confirmEdit - true if editing an item should be confirmed
      Returns:
      this builder instance
    • buttonsFocusable

      B buttonsFocusable(boolean buttonsFocusable)
      Default false
      Parameters:
      buttonsFocusable - true if the buttons should be focusable
      Returns:
      this builder instance
    • buttonLocation

      B buttonLocation(String buttonLocation)
      Parameters:
      buttonLocation - the button location
      Returns:
      this builder instance
      Throws:
      IllegalArgumentException - in case the value is not one of BorderLayout.WEST or BorderLayout.EAST
    • preferredSearchFieldWidth

      B preferredSearchFieldWidth(int preferredSearchFieldWidth)
      Parameters:
      preferredSearchFieldWidth - the preferred search field width
      Returns:
      this builder instance
    • columns

      B columns(int columns)
      Parameters:
      columns - the number of colums in the text field
      Returns:
      this builder instance
    • upperCase

      B upperCase(boolean upperCase)
      Makes the field convert all lower case input to upper case
      Parameters:
      upperCase - if true the text component convert all lower case input to upper case
      Returns:
      this builder instance
    • lowerCase

      B lowerCase(boolean lowerCase)
      Makes the field convert all upper case input to lower case
      Parameters:
      lowerCase - if true the text component convert all upper case input to lower case
      Returns:
      this builder instance
    • editable

      B editable(boolean editable)
      Parameters:
      editable - false if the field should not be editable
      Returns:
      this builder instance
    • searchHintEnabled

      B searchHintEnabled(boolean searchHintEnabled)
      Parameters:
      searchHintEnabled - true if a search hint text should be visible when the field is empty and not focused
      Returns:
      this builder instance
    • searchOnFocusLost

      B searchOnFocusLost(boolean searchOnFocusLost)
      Parameters:
      searchOnFocusLost - true if search should be performed on focus lost
      Returns:
      this builder instance
    • searchIndicator

      B searchIndicator(EntitySearchField.SearchIndicator searchIndicator)
      Parameters:
      searchIndicator - the search indicator
      Returns:
      this builder instance
    • selector

      Parameters:
      selector - the selector factory to use
      Returns:
      this builder instance
    • limit

      B limit(int limit)
      Parameters:
      limit - the search result limit
      Returns:
      this builder instance
    • build

      Description copied from interface: ComponentBuilder
      Builds a new component instance.
      Specified by:
      build in interface ComponentBuilder<T,B extends EntitySearchFieldPanel.Builder<T,B>>
      Returns:
      a new EntitySearchFieldPanel based on this builder