Class UIUtil
- java.lang.Object
-
- org.kie.workbench.common.screens.datamodeller.client.util.UIUtil
-
public class UIUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringNOT_SELECTED
-
Constructor Summary
Constructors Constructor Description UIUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.gwtbootstrap3.extras.select.client.ui.OptionemptyOption()static org.uberfire.commons.data.Pair<String,String>emptyValue()static voidinitList(org.gwtbootstrap3.extras.select.client.ui.Select select, boolean includeEmptyItem)static voidinitList(org.gwtbootstrap3.extras.select.client.ui.Select select, List<org.uberfire.commons.data.Pair<String,String>> options, boolean includeEmptyItem)static voidinitList(org.gwtbootstrap3.extras.select.client.ui.Select select, List<org.uberfire.commons.data.Pair<String,String>> options, String selectedValue, boolean includeEmptyItem)static org.gwtbootstrap3.extras.select.client.ui.OptionnewOption(String text, String value)static voidrefreshSelect(org.gwtbootstrap3.extras.select.client.ui.Select select)static voidsetSelectedValue(org.gwtbootstrap3.extras.select.client.ui.Select select, String value)
-
-
-
Field Detail
-
NOT_SELECTED
public static final String NOT_SELECTED
- See Also:
- Constant Field Values
-
-
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)
-
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 initializedoptions- 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()
-
-