public class UIUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NOT_SELECTED |
| Constructor and Description |
|---|
UIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.gwtbootstrap3.extras.select.client.ui.Option |
emptyOption() |
static org.uberfire.commons.data.Pair<String,String> |
emptyValue() |
static void |
initList(org.gwtbootstrap3.extras.select.client.ui.Select select,
boolean includeEmptyItem) |
static void |
initList(org.gwtbootstrap3.extras.select.client.ui.Select select,
List<org.uberfire.commons.data.Pair<String,String>> options,
boolean includeEmptyItem) |
static void |
initList(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.Option |
newOption(String text,
String value) |
static void |
refreshSelect(org.gwtbootstrap3.extras.select.client.ui.Select select) |
static void |
setSelectedValue(org.gwtbootstrap3.extras.select.client.ui.Select select,
String value) |
public static final String NOT_SELECTED
public static void setSelectedValue(org.gwtbootstrap3.extras.select.client.ui.Select select,
String value)
public static void refreshSelect(org.gwtbootstrap3.extras.select.client.ui.Select select)
public static void initList(org.gwtbootstrap3.extras.select.client.ui.Select select,
boolean includeEmptyItem)
public static void initList(org.gwtbootstrap3.extras.select.client.ui.Select select,
List<org.uberfire.commons.data.Pair<String,String>> options,
boolean includeEmptyItem)
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)
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.public static org.gwtbootstrap3.extras.select.client.ui.Option newOption(String text, String value)
public static org.gwtbootstrap3.extras.select.client.ui.Option emptyOption()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.