|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskToolDescriptorModel
TaskToolDescriptorModel
objects provide metadata for a task tool.
You should implement this interface only if you want to provide a custom tool descriptor.
Otherwise you want to use TaskToolDescriptor
- the out-of-the-box implementation of this interface.
Field Summary | |
---|---|
static String |
TOOL_NAME
This is an internal property used by the task control to create a ToolItem . |
Method Summary | |
---|---|
ToolItem |
createToolItem(String taskControlId)
Creates a ToolItem object for this tool. |
Element |
generateXML(Object task)
Generates the XML content for this tool. |
String |
getDisplayName()
Returns the display text for the tool. |
String |
getName()
Returns the name of the tool method. |
String |
getRendererType()
Returns the renderer type for the tool. |
boolean |
isHidden()
If true , the tool button will not be displayed on the task UI |
Object |
processToolAction(Object task,
MapEvent event)
Calls the tool method on the specified task by passing it the MapEvent object. |
Field Detail |
---|
static final String TOOL_NAME
ToolItem
.
The ToolItem
is eventually used to generate the markup / UI for the tool.
Method Detail |
---|
String getName()
Returns the name of the tool method.
Note that action methods take MapEvent
as its argument.
String getDisplayName()
String getRendererType()
Returns the renderer type for the tool. The renderers supported out of the box are text-only buttons, image-only buttons and image-and-text buttons.
boolean isHidden()
true
, the tool button will not be displayed on the task UI
true
, the tool button will not be displayed on the task UIToolItem createToolItem(String taskControlId)
Creates a ToolItem
object for this tool.
This method is called by the task control and the ToolItem
created by this method is
eventually used to generate the markup / UI for the tool.
taskControlId
- the ID of the task control which contains this tool
ToolItem
object for this toolObject processToolAction(Object task, MapEvent event)
task
by passing it the MapEvent
object.
task
- the task object on which the tool method will be invokedevent
- the MapEvent
method which will be passed as an argument to the tool method
Element generateXML(Object task)
Generates the XML content for this tool. 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 |