return escapeSpecialCharacters(text);
}
public MComponent getRenderer() {
JTree tree = getTreeComponent();
TreeCellRenderer renderer = (TreeCellRenderer) eventQueueRunner.invoke(tree, "getCellRenderer");
if (renderer == null)
return null;
boolean isSelected = eventQueueRunner.invokeBoolean(tree, "isRowSelected", new Object[] { Integer.valueOf(row) },
new Class[] { Integer.TYPE });
boolean isExpanded = eventQueueRunner.invokeBoolean(tree, "isExpanded", new Object[] { Integer.valueOf(row) },
new Class[] { Integer.TYPE });
TreePath treePath = (TreePath) eventQueueRunner.invoke(tree, "getPathForRow", new Object[] { Integer.valueOf(row) },
new Class[] { Integer.TYPE });
if (treePath == null)
return null;
boolean isLeaf = false;
Component rendererComponent = renderer.getTreeCellRendererComponent(tree, treePath.getLastPathComponent(), isSelected,
isExpanded, isLeaf, row, true);
if (rendererComponent == null)
return null;
return finder.getMComponentByComponent(rendererComponent, "doesn't matter", null);
}