Klasse UiList<T>

Alle implementierten Schnittstellen:
UiHasActionEvents<T,UiList<T>>, UiHasFocusEvents<T,UiList<T>>, UiHasUpdateEvents<T,UiList<T>>, org.obrel.core.Relatable

public class UiList<T> extends UiSingleSelectionList<T,UiList<T>> implements UiHasActionEvents<T,UiList<T>>
A list of selectable values. The datatype of of the list values can be defined on creation. Typically string and enum values are supported.
  • Konstruktordetails

    • UiList

      public UiList(UiContainer<?> parent, Class<T> datatype)
      Creates a new instance. If the datatype is an enum all enum values will be pre-set as the list values. This can be changed after construction through the setListValues methods.
      Parameter:
      parent - The parent container
      datatype - The datatype of the list values
  • Methodendetails

    • onAction

      public UiList<T> onAction(Consumer<T> eventHandler)
      Registers an event handler that will be invoked on action events with the new component value.
      Angegeben von:
      onAction in Schnittstelle UiHasActionEvents<T,UiList<T>>
      Parameter:
      eventHandler - The event handler to be invoked
      Gibt zurück:
      The component the handler has been registered on
    • onSelectionConfirmed

      public final UiList<T> onSelectionConfirmed(Consumer<T> eventHandler)
      Sets the event handler for selection confirmed events (e.g. by double click) of this list.
      Parameter:
      eventHandler - The event handler
      Gibt zurück:
      This instance for concatenation