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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValidator, getKey, getPrettyString, getString, getValue, isEmpty, removeValidator, setKey, setValue, validate
public ListInputWrapper(Input nested)
nested
- public T getItembyValue(V value)
ItemInput
getItembyValue
in interface ItemInput<V,T>
value
- input Valuepublic java.util.Iterator<T> getItems()
SuggestedItemInput
getItems
in interface SuggestedItemInput<V,T>
public int getCount()
SuggestedItemInput
getCount
in interface SuggestedItemInput<V,T>
public java.lang.String getTagByItem(T item)
ListInput
getTagByItem
in interface ListInput<V,T>
public java.lang.String getTagByValue(V value)
ListInput
getTagByValue
in interface ListInput<V,T>
public V convert(java.lang.Object v) throws TypeError
Input
public <R> R accept(InputVisitor<R> vis) throws java.lang.Exception
public T getItem()
ItemInput
public void setItem(T item)
ItemInput