Annotation Type BindComboBoxItemStyle


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    @LinkkiAspect(BindComboBoxItemStyleAspectDefinitionCreator.class)
    public @interface BindComboBoxItemStyle
    This aspect sets a style class name for every item in a combo box popup menu. The name is either statically defined in the annotation or dynamically queried via the method get<propertyName>ItemStyle}.

    In case of a dynamic style via method invocation the return type of the method is not a single string but a Function<?, String>. The method is called only once for creating a new combo box but the function is called for every item in the combo box to allow different styles for every single item.

    The style classes are applied only to elements in the popup menu, the selected value in the combo box is never styled, only the text.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] value
      The style names that may be used as CSS style classes for the combo box popup menu items.
    • Element Detail

      • value

        String[] value
        The style names that may be used as CSS style classes for the combo box popup menu items. Multiple style names could be provided like @BindComboBoxItemStyle({ STYLE_NAME_1, STYLE_NAME_2 })

        If the value is an empty array (which is the default) the style names are retrieved dynamically. That means the style names are retrieved from the method get<PropertyName>ItemStyle() which must return a Function<TYPE, String> where TYPE is the type of the combo box items. The function is called for every item in the combo box pop menu.

        Default:
        {}