Constructor and Description |
---|
WrappedInput(Input<X> input,
java.lang.String my_class) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(InputVisitor<R> vis) |
void |
addValidator(FieldValidator<X> val)
Add a
FieldValidator to this input |
X |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.lang.String |
getKey()
get the unique key for this selector
|
java.lang.String |
getPrettyString(X value)
Convert a value into a user friendly string.
|
java.lang.String |
getString(X value)
convert a value of the correct type for this input into a String.
|
X |
getValue()
get the current value of the Object created by this selector.
|
Input |
getWrappedInput() |
java.lang.String |
getWrapperClass()
class for the enclosing div element.
|
void |
removeValidator(FieldValidator<X> val)
Remove a
FieldValidator from this input |
void |
setKey(java.lang.String key)
Set the key used by this Selector
|
X |
setValue(X v)
set the value of this selector.
|
void |
validate()
Check the validity of the current state of the Object.
|
public java.lang.String getWrapperClass()
public Input getWrappedInput()
public java.lang.String getKey()
Input
public X getValue()
Input
public void setKey(java.lang.String key)
Input
public X setValue(X v) throws TypeError
Input
public X convert(java.lang.Object v) throws TypeError
Input
public java.lang.String getString(X value)
Input
getString
in interface Input<X>
ParseInput
public java.lang.String getPrettyString(X value)
Input
getPrettyString
in interface Input<X>
ListInput
public void validate() throws FieldException
Input
validate
in interface Input<X>
FieldException
public <R> R accept(InputVisitor<R> vis) throws java.lang.Exception
public void addValidator(FieldValidator<X> val)
Input
FieldValidator
to this inputaddValidator
in interface Input<X>
public void removeValidator(FieldValidator<X> val)
Input
FieldValidator
from this inputremoveValidator
in interface Input<X>