V - T - public abstract class ListInputWrapper<V,T> extends WrappingInput<V> implements ListInput<V,T>
| Constructor and Description |
|---|
ListInputWrapper(Input nested) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(InputVisitor<R> vis) |
V |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
int |
getCount()
get the number of suggested items.
|
protected ListInput<V,T> |
getInner() |
T |
getItem()
get the domain Object associated with the current value
|
T |
getItembyValue(V value)
get the domain object from the Input value if defined
|
java.util.Iterator<T> |
getItems()
get a list of domain objects that are being selected
|
java.lang.String |
getTagByItem(T item)
get an identifying tag string from the domain object
|
java.lang.String |
getTagByValue(V value)
get the tag string from the actual value of the input
|
boolean |
isValid(T item)
Test if an object of the Item type is one of the possible items.
|
void |
setItem(T item)
Set the value of the input using an item
|
addValidator, getKey, getNested, getPrettyString, getString, getValue, removeValidator, setKey, setValue, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValidator, getKey, getPrettyString, getString, getValue, isEmpty, removeValidator, setKey, setValue, validatepublic ListInputWrapper(Input nested)
nested - public T getItembyValue(V value)
ItemInputgetItembyValue in interface ItemInput<V,T>value - input Valuepublic java.util.Iterator<T> getItems()
SuggestedItemInputgetItems in interface SuggestedItemInput<V,T>public int getCount()
SuggestedItemInputgetCount in interface SuggestedItemInput<V,T>public java.lang.String getTagByItem(T item)
ListInputgetTagByItem in interface ListInput<V,T>public java.lang.String getTagByValue(V value)
ListInputgetTagByValue in interface ListInput<V,T>public V convert(java.lang.Object v) throws TypeError
Inputpublic <R> R accept(InputVisitor<R> vis) throws java.lang.Exception
public T getItem()
ItemInputpublic void setItem(T item)
ItemInput