|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskActionDescriptorModel
TaskActionDescriptorModel
objects provide metadata for a task action.
You should implement this interface only if you want to provide a custom action descriptor.
Otherwise you want to use TaskActionDescriptor
- the out-of-the-box implementation of this interface.
Method Summary | |
---|---|
Element |
generateXML(Object task)
Generates the XML content for this action. |
String |
getDisplayName()
Returns the display text for the action. |
String |
getName()
Returns the name of the action method. |
String |
getRendererType()
Returns the renderer type for the action. |
boolean |
isHidden()
If true , the action button will not be displayed on the task UI |
Object |
processAction(Object task,
TaskEvent event)
Calls the action method on the specified task by passing it the TaskEvent object. |
Method Detail |
---|
String getName()
Returns the name of the action method.
Note that action methods take TaskEvent
as its argument.
String getDisplayName()
String getRendererType()
Returns the renderer type for the action. The renderers supported out of the box are text-only buttons, image-only buttons and image-and-text buttons.
boolean isHidden()
true
, the action button will not be displayed on the task UI
true
, the action button will not be displayed on the task UIObject processAction(Object task, TaskEvent event)
task
by passing it the TaskEvent
object.
task
- the task object on which the action method will be invokedevent
- the TaskEvent
method which will be passed as an argument to the action method
Element generateXML(Object task)
Generates the XML content for this action. 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 |