
For a display attribute, an image mapping contains a number of image map entries which map values of the item attribute to images. Text mapping is also possible on an empty image reference.
|
Attribute |
Description |
|---|---|
|
value |
This is the string value which should be mapped to another. |
|
imageName |
Specifies the name of the image file. If imageName is empty, the text specified by referenceBundle is displayed as attribute value. |
|
referenceBundle |
Specifies the text to use for the tooltip. If imageName is empty, the text is displayed as attribute value. |
The default attribute of the ImageMapping tag the default attribute specifies which image map to use if the value does not match any of the defined image maps.
<DisplayAttribute name="status" type ="image" width="1" sortable="no">
<ImageMapping default="enum">
<ImageMap value="enum" imageName="ico16_task_new.gif"
referenceBundle="default_task_status" />
<ImageMap value="c" imageName="ico16_task_new.gif"
referenceBundle="new_task_status" />
<ImageMap value="a" imageName="ico16_task_start.gif"
referenceBundle="start_task_status" />
<ImageMap value="d" imageName="ico16_task_reject.gif"
referenceBundle="reject_task_status" />
<ImageMap value="e" imageName="ico16_task_complete.gif"
referenceBundle="completed_task_status" />
</ImageMapping >
</DisplayAttribute>