T - the type of item the list box holdsBox - the type of item list boxpublic static class ItemListBox.Builder<T,Box extends ItemListBox<T>> extends Object
| Constructor and Description |
|---|
ItemListBox.Builder(Box box)
Creates a new builder for the given list box.
|
| Modifier and Type | Method and Description |
|---|---|
ItemListBox.Builder<T,Box> |
add(T item)
Adds a new item to the list box.
|
ItemListBox.Builder<T,Box> |
add(T item,
String label)
Adds a new item to the list box with the supplied label.
|
Box |
build()
Returns the list box.
|
ItemListBox.Builder<T,Box> |
select(T item)
Causes the created list box to have the given item selected.
|
public final Box extends ItemListBox<T> box
public ItemListBox.Builder(Box box)
public ItemListBox.Builder<T,Box> add(T item)
public ItemListBox.Builder<T,Box> add(T item, String label)
public ItemListBox.Builder<T,Box> select(T item)
public Box build()
Copyright © 2013. All Rights Reserved.