* Return a Map of value=label, each pair representing a grid column header.
* @param formData
* @return
*/
protected Map<String, String> getHeaderMap(FormData formData) {
Map<String, String> headerMap = new ListOrderedMap();
Object optionProperty = getProperty(FormUtil.PROPERTY_OPTIONS);
if (optionProperty != null && optionProperty instanceof Collection) {
for (Map opt : (FormRowSet) optionProperty) {
Object value = opt.get("value");
Object label = opt.get("label");
if (value != null && label != null) {
headerMap.put(value.toString(), label.toString());
}
}
}
return headerMap;
}