public class ListEntryPanel
extends Composite
Constructor and Description |
---|
ListEntryPanel(String columnName,
ListValidator validator)
Construct a new list entry panel
|
Modifier and Type | Method and Description |
---|---|
void |
add(String value)
Manually add an item to the list.
|
int |
getValidRowCount()
Get the number of entries in the list
|
List<String> |
getValues()
Get a list of the values in the list as Strings
|
void |
reset()
Clear the list
|
void |
setMaxRows(int maxRows)
Set the maximum rows the user may enter in the list
|
void |
setUniqueOnly(boolean uniqueOnly)
If true, the list will enforce unique values
|
String |
toXML(String tagName)
Return an XML representation of the list
|
public ListEntryPanel(String columnName, ListValidator validator)
columnName
- title/label for list entry itemsvalidator
- class which validates list entriesListValidator
public String toXML(String tagName)
tagName
- the enclosing list tag namepublic int getValidRowCount()
public List<String> getValues()
public void reset()
public void setMaxRows(int maxRows)
maxRows
- public void setUniqueOnly(boolean uniqueOnly)
uniqueOnly
- public void add(String value)
value
- the item to be addedUniversity of Colorado Denver, Department of Biostatistics and Informatics