Class ComboBox<RECORD>

java.lang.Object
All Implemented Interfaces:
ClientObject, Component, TextInputHandlingField

public class ComboBox<RECORD>
extends AbstractComboBox<RECORD,​RECORD>
implements TextInputHandlingField
  • Field Details

    • onFreeTextEntered

      public final Event<java.lang.String> onFreeTextEntered
  • Constructor Details

    • ComboBox

      public ComboBox()
    • ComboBox

      public ComboBox​(ComboBoxModel<RECORD> model)
    • ComboBox

      public ComboBox​(Template template)
  • Method Details

    • getSelectedRecords

      protected java.util.Set<RECORD> getSelectedRecords()
      Specified by:
      getSelectedRecords in class AbstractComboBox<RECORD,​RECORD>
    • createForList

      public static <R> ComboBox<R> createForList​(java.util.List<R> staticData)
    • createForList

      public static <R> ComboBox<R> createForList​(java.util.List<R> staticData, Template template)
    • createForList

      public static <R> ComboBox<R> createForList​(java.util.List<R> staticData, TreeNodeInfoExtractor<R> treeNodeInfoExtractor)
    • createForEnum

      public static <ENUM extends java.lang.Enum> ComboBox<ENUM> createForEnum​(java.lang.Class<ENUM> enumClass)
    • createUiComponent

      public org.teamapps.dto.UiField createUiComponent()
      Specified by:
      createUiComponent in class AbstractComponent
    • setValue

      public void setValue​(RECORD record)
      Overrides:
      setValue in class AbstractField<RECORD>
    • convertUiValueToUxValue

      public RECORD convertUiValueToUxValue​(java.lang.Object value)
      Overrides:
      convertUiValueToUxValue in class AbstractField<RECORD>
    • convertUxValueToUiValue

      public java.lang.Object convertUxValueToUiValue​(RECORD record)
      Description copied from class: AbstractField
      Converts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!
      Overrides:
      convertUxValueToUiValue in class AbstractField<RECORD>
      Parameters:
      record - the server-side value
      Returns:
      the object to be sent to the ui
    • getFreeText

      public java.lang.String getFreeText()