public class DefaultSelectionProvider extends Object implements SelectionProvider
Modifier and Type | Class and Description |
---|---|
static class |
DefaultSelectionProvider.Row |
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected String |
createNewValueHref |
protected String |
createNewValueText |
protected DisplayMode |
displayMode |
protected int |
fieldCount |
static org.slf4j.Logger |
logger |
protected String |
name |
static String |
NON_WORD_CHARACTERS |
protected List<DefaultSelectionProvider.Row> |
rows |
protected SearchDisplayMode |
searchDisplayMode |
Constructor and Description |
---|
DefaultSelectionProvider(DefaultSelectionProvider copy) |
DefaultSelectionProvider(String name) |
DefaultSelectionProvider(String name,
int fieldCount) |
DefaultSelectionProvider(String name,
int fieldCount,
DefaultSelectionProvider.Row[] rows) |
DefaultSelectionProvider(String name,
int fieldCount,
List<DefaultSelectionProvider.Row> rows) |
Modifier and Type | Method and Description |
---|---|
void |
appendRow(DefaultSelectionProvider.Row row) |
void |
appendRow(Object[] values,
String[] labels,
boolean active) |
void |
appendRow(Object value,
String label,
boolean active) |
SelectionModel |
createSelectionModel() |
void |
ensureActive(Object... values) |
String |
getCreateNewValueHref() |
String |
getCreateNewValueText() |
DisplayMode |
getDisplayMode() |
int |
getFieldCount() |
String |
getName() |
SearchDisplayMode |
getSearchDisplayMode() |
void |
setCreateNewValueHref(String createNewValueHref) |
void |
setCreateNewValueText(String createNewValueText) |
void |
setDisplayMode(DisplayMode displayMode) |
void |
setSearchDisplayMode(SearchDisplayMode searchDisplayMode) |
void |
sortByLabel() |
public static final String copyright
protected final String name
protected final int fieldCount
protected final List<DefaultSelectionProvider.Row> rows
protected DisplayMode displayMode
protected SearchDisplayMode searchDisplayMode
protected String createNewValueHref
protected String createNewValueText
public static final org.slf4j.Logger logger
public static final String NON_WORD_CHARACTERS
public DefaultSelectionProvider(String name, int fieldCount, DefaultSelectionProvider.Row[] rows)
public DefaultSelectionProvider(String name, int fieldCount, List<DefaultSelectionProvider.Row> rows)
public DefaultSelectionProvider(String name, int fieldCount)
public DefaultSelectionProvider(String name)
public DefaultSelectionProvider(DefaultSelectionProvider copy)
public String getName()
getName
in interface SelectionProvider
public int getFieldCount()
getFieldCount
in interface SelectionProvider
public SelectionModel createSelectionModel()
createSelectionModel
in interface SelectionProvider
public void appendRow(DefaultSelectionProvider.Row row)
public void ensureActive(Object... values)
ensureActive
in interface SelectionProvider
public void sortByLabel()
public DisplayMode getDisplayMode()
getDisplayMode
in interface SelectionProvider
public void setDisplayMode(DisplayMode displayMode)
public SearchDisplayMode getSearchDisplayMode()
getSearchDisplayMode
in interface SelectionProvider
public void setSearchDisplayMode(SearchDisplayMode searchDisplayMode)
public String getCreateNewValueHref()
getCreateNewValueHref
in interface SelectionProvider
public void setCreateNewValueHref(String createNewValueHref)
public String getCreateNewValueText()
getCreateNewValueText
in interface SelectionProvider
public void setCreateNewValueText(String createNewValueText)