public abstract class StringListInput extends AbstractInput<java.lang.String> implements ListInput<java.lang.String,java.lang.String>
ListInput
where the items tags and values are the same Stringvalidators
Constructor and Description |
---|
StringListInput() |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(InputVisitor<R> vis) |
java.lang.String |
getItem()
get the domain Object associated with the current value
|
java.lang.String |
getItembyValue(java.lang.String value)
get the domain object from the Input value if defined
|
java.lang.String |
getTagByItem(java.lang.String item)
get an identifying tag string from the domain object
|
java.lang.String |
getTagByValue(java.lang.String value)
get the tag string from the actual value of the input
|
java.lang.String |
getText(java.lang.String item)
get the user presented text from the domain object
may return null if not selected
|
void |
setItem(java.lang.String item)
Set the value of the input using an item
|
getValue, setKey, setValue
addValidator, convert, getKey, getPrettyString, getString, getString, removeValidator, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCount, getItems
addValidator, convert, getKey, getPrettyString, getString, getValue, isEmpty, removeValidator, setKey, setValue, validate
public final <R> R accept(InputVisitor<R> vis) throws java.lang.Exception
public final void setItem(java.lang.String item)
ItemInput
public final java.lang.String getItem()
ItemInput
public final java.lang.String getTagByValue(java.lang.String value)
ListInput
getTagByValue
in interface ListInput<java.lang.String,java.lang.String>
public java.lang.String getText(java.lang.String item)
ListInput
public final java.lang.String getItembyValue(java.lang.String value)
ItemInput
getItembyValue
in interface ItemInput<java.lang.String,java.lang.String>
value
- input Valuepublic final java.lang.String getTagByItem(java.lang.String item)
ListInput
getTagByItem
in interface ListInput<java.lang.String,java.lang.String>