String text = vis.getHtmlDisplayName(); if (list.getModel() instanceof NodeListModel) { int depth = NodeListModel.findVisualizerDepth(list.getModel(), vis);
String text = vis.getHtmlDisplayName(); boolean isHtml = text != null; if (!isHtml) {
String text = vis.getHtmlDisplayName(); boolean isHtml = text != null; if (!isHtml) {
String text = vis.getHtmlDisplayName(); boolean isHtml = text != null; if (!isHtml) {
/** Finds the component that is capable of drawing the cell in a tree. * @param value value can be either <code>Node</code> * or a <code>VisualizerNode</code>. * @return component to draw the value */ @Override public Component getTreeCellRendererComponent( JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus ) { VisualizerNode vis = findVisualizerNode(value); if (vis == draggedOver) { sel = true; } String text = vis.getHtmlDisplayName(); boolean isHtml = text != null; if (!isHtml) { text = vis.getDisplayName(); } //Get our result value - really it is ren, but this call causes //it to configure itself with the passed values Component result = renderer.getTreeCellRendererComponent(tree, text, sel, expanded, leaf, row, hasFocus); result.setEnabled(tree.isEnabled()); renderer.setHtml(isHtml); //Do our additional configuration - set up the icon and possibly //do some hacks to make it look focused for TreeTableView configureFrom(renderer, tree, expanded, sel, vis); return result; }
String text = vis.getHtmlDisplayName(); boolean isHtml = text != null; if (!isHtml) {