Class PopperSingleSelect

All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLElement, PopperSingleSelect>, ElementClassListMethods<HTMLElement, PopperSingleSelect>, ElementConsumerMethods<HTMLElement, PopperSingleSelect>, ElementContainerMethods<HTMLElement, PopperSingleSelect>, ElementEventMethods<HTMLElement, PopperSingleSelect>, ElementIdMethods<HTMLElement, PopperSingleSelect>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, PopperSingleSelect>, HTMLElementDataMethods<HTMLElement, PopperSingleSelect>, HTMLElementStyleMethods<HTMLElement, PopperSingleSelect>, HTMLElementVisibilityMethods<HTMLElement, PopperSingleSelect>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, PopperSingleSelect>, Component, Expandable<HTMLElement, PopperSingleSelect>, Modifiers.Disabled<HTMLElement, PopperSingleSelect>

@Deprecated(since="0.7.0", forRemoval=true) public class PopperSingleSelect extends ComponentDelegate<HTMLElement, PopperSingleSelect>
Deprecated, for removal: This API element is subject to removal in a future version.
This implementation uses the Popper.js API, which is due to be removed soon. Use SingleSelect instead.
A select component to select exactly one item from a list.
  • Method Details

    • singleSelect

      public static PopperSingleSelect singleSelect(String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new SingleSelect component with the specified text.
      Parameters:
      text - the text to display on the SingleSelect toggle
      Returns:
      a new instance of SingleSelect
    • singleSelect

      public static PopperSingleSelect singleSelect(MenuToggle menuToggle)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new SingleSelect component using the specified MenuToggle.
      Parameters:
      menuToggle - the MenuToggle instance to be used for creating the SingleSelect component
      Returns:
      a new instance of SingleSelect
    • that

      public PopperSingleSelect that()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • add

      public PopperSingleSelect add(Menu menu)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • noDefaultSelectHandler

      public PopperSingleSelect noDefaultSelectHandler()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • clear

      public void clear()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • clear

      public void clear(boolean fireEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • select

      public void select(String identifier)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • select

      public void select(String identifier, boolean fireEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • select

      public void select(MenuItem item)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • select

      public void select(MenuItem item, boolean fireEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • attach

      public void attach(MutationRecord mutationRecord)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      attach in interface Attachable
    • detach

      public void detach(MutationRecord mutationRecord)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      detach in interface Attachable
    • addMenu

      public PopperSingleSelect addMenu(Menu menu)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • applyToMenuToggle

      public PopperSingleSelect applyToMenuToggle(Consumer<MenuToggle> consumer)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Provides access to the underlying menu toggle using a fluent API style
    • disabled

      public PopperSingleSelect disabled(boolean disabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      disabled in interface Modifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
    • isDisabled

      public boolean isDisabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isDisabled in interface Modifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
    • flip

      public PopperSingleSelect flip(boolean flip)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • placement

      public PopperSingleSelect placement(PopperPlacement placement)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • stayOpen

      public PopperSingleSelect stayOpen()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • stayOpen

      public PopperSingleSelect stayOpen(Predicate<Event> stayOpen)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a condition that determines whether the menu should remain open when an event occurs.
      Parameters:
      stayOpen - a Predicate that evaluates an Event to determine if the menu remains open.
      Returns:
      the current instance with the condition applied, enabling method chaining.
    • zIndex

      public PopperSingleSelect zIndex(int zIndex)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ariaLabel

      public PopperSingleSelect ariaLabel(String label)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • onLoaded

      public PopperSingleSelect onLoaded(ComponentHandler<PopperSingleSelect> loadedHandler)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • onToggle

      public PopperSingleSelect onToggle(ToggleHandler<PopperSingleSelect> toggleHandler)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • collapse

      public void collapse(boolean fireEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      collapse in interface Expandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
    • expand

      public void expand(boolean fireEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      expand in interface Expandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>