/* (non-Javadoc) * @see com.google.gwt.cell.client.AbstractCell#render(com.google.gwt.cell.client.Cell.Context, java.lang.Object, com.google.gwt.safehtml.shared.SafeHtmlBuilder) */ @Override public void render(Context context, CellTreeNode cellTreeNode, SafeHtmlBuilder sb) { if (cellTreeNode == null) { return; } // TODO : We can add classes based on the NodeType with the specified image. // The classes will be picked up from Mat.css if ((cellTreeNode.getNodeType() == CellTreeNode.MASTER_ROOT_NODE) || (cellTreeNode.getNodeType() == CellTreeNode.ROOT_NODE)) { sb.append( template.outerDiv( getStyleClass(cellTreeNode), cellTreeNode.getTitle(), cellTreeNode.getLabel() != null ? cellTreeNode.getLabel() : cellTreeNode.getName())); } else { sb.append( template.outerDivItem( getStyleClass(cellTreeNode), cellTreeNode.getTitle(), cellTreeNode.getLabel() != null ? cellTreeNode.getLabel() : cellTreeNode.getName())); } }