public void readFromObject(Object obj) { if (keyTextFormat == null) { key = Integer.toString(index); } else { key = keyTextFormat.format(obj); } int index = 0; for (Field field : this) { Column column = columns[index]; TextFormat hrefTextFormat = column.getHrefTextFormat(); TextFormat titleTextFormat = column.getTitleTextFormat(); if (hrefTextFormat != null) { field.setHref(hrefTextFormat.format(obj)); if (titleTextFormat != null) { field.setTitle(titleTextFormat.format(obj)); } } field.readFromObject(obj); index++; } }
public void readFromObject(Object obj) { if (keyTextFormat == null) { key = Integer.toString(index); } else { key = keyTextFormat.format(obj); } int index = 0; for (Field field : this) { Column column = columns[index]; TextFormat hrefTextFormat = column.getHrefTextFormat(); TextFormat titleTextFormat = column.getTitleTextFormat(); if (hrefTextFormat != null) { field.setHref(hrefTextFormat.format(obj)); if (titleTextFormat != null) { field.setTitle(titleTextFormat.format(obj)); } } field.readFromObject(obj); index++; } }
} else { TextFormat textFormat = textFormats[j]; labels[j] = textFormat.format(current);
} else { TextFormat textFormat = textFormats[j]; labels[j] = textFormat.format(current);
formatParameters.put("label", StringEscapeUtils.escapeHtml(column.getActualLabel())); formatParameters.put("property", property); xb.writeNoHtmlEscape(column.headerTextFormat.format(formatParameters)); } else { xb.write(column.getActualLabel());
formatParameters.put("label", StringEscapeUtils.escapeHtml(column.getActualLabel())); formatParameters.put("property", property); xb.writeNoHtmlEscape(column.headerTextFormat.format(formatParameters)); } else { xb.write(column.getActualLabel());