public Color getBackground(Object o) { return delegate.getBackground(o); }
public String getDisplayName(Object o) { return delegate.getDisplayName(o); }
public Color getForeground(Object o) { return delegate.getForeground(o); }
Icon icon = null; if (rendata != null) { String displayName = rendata.getDisplayName(value); if (displayName != null) { setText (displayName); setToolTipText (rendata.getTooltipText(value)); Color bg = rendata.getBackground(value); Color fg = rendata.getForeground(value); if (bg != null && !isSelected) { setBackground (bg); tbl.getSelectionForeground() : tbl.getForeground()); icon = rendata.getIcon(value);
public String getTooltipText(Object o) { return delegate.getTooltipText(o); }
public boolean isHtmlDisplayName(Object o) { return delegate.isHtmlDisplayName(o); }
protected void configureTreeCellEditor( Component editor, int row, int column ) { if( !(editor instanceof JComponent) ) { return; } TreeCellEditorBorder b = new TreeCellEditorBorder(); TreePath path = getLayoutCache().getPathForRow(convertRowIndexToModel(row)); Object o = getValueAt(row, column); RenderDataProvider rdp = getRenderDataProvider(); b.icon = rdp.getIcon(o); b.nestingDepth = Math.max( 0, path.getPathCount() - (isRootVisible() ? 1 : 2) ); b.isLeaf = getOutlineModel().isLeaf(o); b.isExpanded = getLayoutCache().isExpanded(path); ((JComponent)editor).setBorder(b); }