|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interfaces defines the methods a class needs to implement to act as a FormElement.
A FormElement defines how an element in a FormMap should be mapped to a first class java object. There are several key pieces of information required:
Once we have this information, we basically have enough data to map a String value in the data source to a first class Java object in the element.
Method Summary | |
boolean |
allowMultiples()
Does this element allow multiple values |
java.lang.Object |
getDefaultVal()
Get the default value for this form element |
java.lang.String |
getKey()
Get the key value for this form element |
java.lang.String |
getName()
Get the name value of form element |
java.lang.Object |
getOrigVal()
Get the original value for this element |
ParseException |
getParseException()
Get any parse exceptions associated with the element (ie. that might have occurred when the element was mapped) |
FormType |
getType()
Get the FormType for this for element |
java.lang.Object |
getVal()
Get the value for this element |
FormValidator |
getValidator()
Get the default FormValidator for this form element |
void |
setAllowMultiples(boolean val)
Set whether or not this element allows multiple values |
void |
setDefaultVal(java.lang.Object defaultVal)
Set the default value for this form element |
void |
setKey(java.lang.String key)
Set the key value for this form element |
void |
setName(java.lang.String name)
Set the name of this form element |
void |
setOrigVal(java.lang.Object iorigVal)
Set the original value for this element |
void |
setParseException(ParseException pe)
Set the parse exception associated with this element |
void |
setType(FormType type)
Set the FormType for this form element |
void |
setVal(java.lang.Object ival)
Set the value for this element |
void |
setValidator(FormValidator validator)
Set the FormValidator for this form element |
Method Detail |
public void setKey(java.lang.String key)
key
- the key value for this form elementpublic java.lang.String getKey()
public void setName(java.lang.String name)
name
- the name value of this form elementpublic java.lang.String getName()
public void setType(FormType type)
type
- the FormType for this form elementpublic FormType getType()
public void setDefaultVal(java.lang.Object defaultVal)
defaultVal
- the FormType for this form elementpublic java.lang.Object getDefaultVal()
public void setAllowMultiples(boolean val)
val
- true if the element allows multiplespublic boolean allowMultiples()
public void setValidator(FormValidator validator)
validator
- the FormValidator for this form elementpublic FormValidator getValidator()
public void setOrigVal(java.lang.Object iorigVal)
public java.lang.Object getOrigVal()
public void setVal(java.lang.Object ival)
public java.lang.Object getVal()
public void setParseException(ParseException pe)
public ParseException getParseException()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |