|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskParamDescriptorModel
TaskParamDescriptorModel
objects provide metadata for a task parameter.
You should implement this interface only if you want to provide a custom param descriptor.
Otherwise you want to use TaskParamDescriptor
- the out-of-the-box implementation of this interface.
Method Summary | |
---|---|
Element |
generateXML(Object task)
Generates the XML content for this parameter. |
String |
getDisplayName()
Returns the display text for the parameter. |
String |
getName()
Returns the name of the parameter. |
Object |
getParamValue(Object task)
Returns the current value of the parameter for the given task. |
String |
getRendererType()
Returns the renderer type for the parameter. |
Object |
setParamValue(Object task,
String strVal)
Sets the parameter value on the task and returns the set value. |
Method Detail |
---|
String getName()
Returns the name of the parameter.
If your task class has a pair of setParam(paramValue) and getParam() (isParam() for booleans) methods,
the name of your parameter is param
.
String getDisplayName()
String getRendererType()
Returns the renderer type for the parameter. The renderers supported out of the box are text boxes, checkboxes, radio buttons and dropdowns.
Object setParamValue(Object task, String strVal)
Sets the parameter value on the task and returns the set value. This method should convert the string input to the appropriate parameter type before setting the parameter.
task
- the task object on which to set the parameter valuestrVal
- the string representation of the parameter value to be set
Object getParamValue(Object task)
Returns the current value of the parameter for the given task.
task
- the task object
Element generateXML(Object task)
Generates the XML content for this parameter. This XML is then transformed by the XSL used by the task control to generate the appropriate markup.
Note that if you implement this method and generate custom XML,
you'll also need to provide the XSL that transforms this XML into the appropriate markup.
The XSL file that the task control should use can be specified by using the xslFile
attribute of the task
tag.
task
- the task object
Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |