String objText = org.wings.plaf.xhtml.Utils.escapeSpecialChars(value.toString()); body.setText(text + objText ); handle.setToolTipText(objText);
body.setText(text + value.toString()); handle.setToolTipText(value.toString());
    public SComponent getTreeCellRendererComponent(STree tree,                                                   Object value,                                                   boolean selected,                                                   boolean expanded,                                                   boolean leaf,                                                   int row,                                                   boolean hasFocus)    {        handleAddr = tree.getServerAddress();        handleAddr.add(tree.getNamePrefix() + "=h" + value.hashCode());        bodyAddr = tree.getServerAddress();        bodyAddr.add(tree.getNamePrefix() + "=b" + value.hashCode());        String text = "";        if (selected) {            body.setBackground(backgroundSelectionColor);            body.setForeground(textSelectionColor);            body.setStyle(textSelectionStyle);        }        else {            body.setBackground(backgroundNonSelectionColor);            body.setForeground(textNonSelectionColor);            body.setStyle(textNonSelectionStyle);        }        if (value == null) {            body.setText("&nbsp;");            return this;        }        if (!leaf) {            if (expanded) {                if (openIcon == null)                    text += "-";                handle.setIcon(openIcon);            }            else {                if (closedIcon == null)                    text += "+";                handle.setIcon(closedIcon);            }        }        else            handle.setIcon(leafIcon);        String objText = org.wings.plaf.xhtml.Utils.escapeSpecialChars(value.toString());        body.setText(text + objText );        handle.setToolTipText(objText);        return this;    }