public class SelectItemsBuilder extends Object
Map
.Constructor and Description |
---|
SelectItemsBuilder() |
Modifier and Type | Method and Description |
---|---|
SelectItemsBuilder |
add(Object value,
String label) |
SelectItem[] |
build() |
List<SelectItem> |
buildList() |
static List<SelectItem> |
fromMap(Map<?,?> map)
Builds a
List of SelectItem s from the given Map argument. |
public SelectItemsBuilder add(Object value, String label)
public SelectItem[] build()
public List<SelectItem> buildList()
public static List<SelectItem> fromMap(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.Copyright © 2012–2016 OmniFaces. All rights reserved.