public class SelectItemsBuilder
extends java.lang.Object
Map
.Constructor and Description |
---|
SelectItemsBuilder() |
Modifier and Type | Method and Description |
---|---|
SelectItemsBuilder |
add(java.lang.Object value,
java.lang.String label) |
javax.faces.model.SelectItem[] |
build() |
java.util.List<javax.faces.model.SelectItem> |
buildList() |
static java.util.List<javax.faces.model.SelectItem> |
fromMap(java.util.Map<?,?> map)
Builds a
List of SelectItem s from the given Map argument. |
public SelectItemsBuilder add(java.lang.Object value, java.lang.String label)
public javax.faces.model.SelectItem[] build()
public java.util.List<javax.faces.model.SelectItem> buildList()
public static java.util.List<javax.faces.model.SelectItem> fromMap(java.util.Map<?,?> map)
List
of SelectItem
s from the given Map
argument.map
- the MapList
of SelectItem
s having the map's value as value and the map's key as label.