boolean expanded, boolean leaf, int row, boolean hasFocus) {
if (value instanceof Node) {
Node node = (Node) value;
Object o = node.getUserObject();
if (o instanceof ProgramItem) {
ProgramItem programItem = (ProgramItem) o;
return node.getNodeFormatter().format(programItem);
} else if (o != null) {
if (!leaf) {
int leafs = getLeafCount(node);
node.setLeafCount(leafs);