- java.lang.Object
- 
- org.omnifaces.util.selectitems.SelectItemsBuilder
 
- 
 public class SelectItemsBuilder extends Object Helper class to build an array of SelectItems using various means, like via the builder pattern or a givenMap.- Author:
- Arjan Tijms
 
- 
- 
Constructor SummaryConstructors Constructor Description SelectItemsBuilder()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectItemsBuilderadd(Object value, String label)SelectItem[]build()List<SelectItem>buildList()static List<SelectItem>fromMap(Map<?,?> map)Builds aListofSelectItems from the givenMapargument.
 
- 
- 
- 
Method Detail- 
addpublic SelectItemsBuilder add(Object value, String label) 
 - 
buildpublic SelectItem[] build() 
 - 
buildListpublic List<SelectItem> buildList() 
 - 
fromMappublic static List<SelectItem> fromMap(Map<?,?> map) Builds aListofSelectItems from the givenMapargument.- Parameters:
- map- the Map
- Returns:
- Listof- SelectItems having the map's value as value and the map's key as label.
 
 
- 
 
-