return ret;
}
public void updateTextLabel(JLabel ret) {
DataModel childModel = getTreeComponent().getChildModel();
int columns = childModel.getColumns();
if (childModel.getColumns() > 0) {
StringBuffer text = new StringBuffer("<html><table><tr>");
for (int i = 0; i < columns; ++i) {
text.append("<td>");
text.append(getTreeComponent().getChildModel().getLabel(i));
text.append("</td>");
}
text.append("</tr></table></html>");
ret.setText(text.toString());
} else if (childModel.getLabel() != null) {
ret.setText(childModel.getLabel());
} else {
ret.setText(childModel.getCaption());
}
if (childModel.getIconId() != null) {
Icon icon = getTreeComponent().getTreeViewer().getFactory().getClientResource().getIcon(childModel.getIconId());
ret.setIcon(icon);
}
}