Class UIUtil


  • public class UIUtil
    extends Object
    • Constructor Detail

      • UIUtil

        public UIUtil()
    • Method Detail

      • setSelectedValue

        public static void setSelectedValue​(org.gwtbootstrap3.extras.select.client.ui.Select select,
                                            String value)
      • refreshSelect

        public static void refreshSelect​(org.gwtbootstrap3.extras.select.client.ui.Select select)
      • initList

        public static void initList​(org.gwtbootstrap3.extras.select.client.ui.Select select,
                                    boolean includeEmptyItem)
      • initList

        public static void initList​(org.gwtbootstrap3.extras.select.client.ui.Select select,
                                    List<org.uberfire.commons.data.Pair<String,​String>> options,
                                    boolean includeEmptyItem)
      • emptyValue

        public static org.uberfire.commons.data.Pair<String,​String> emptyValue()
      • initList

        public static void initList​(org.gwtbootstrap3.extras.select.client.ui.Select select,
                                    List<org.uberfire.commons.data.Pair<String,​String>> options,
                                    String selectedValue,
                                    boolean includeEmptyItem)
        Parameters:
        select - Select object to be initialized
        options - List of pairs <"text to show", "value"> representing the select options.
        selectedValue - The current selected value.
        includeEmptyItem - true if the empty optio should be included.
      • newOption

        public static org.gwtbootstrap3.extras.select.client.ui.Option newOption​(String text,
                                                                                 String value)
      • emptyOption

        public static org.gwtbootstrap3.extras.select.client.ui.Option emptyOption()