/** * Decorate the component returned from the <code>delegate</code> with * extra components that display the tree node's location within the tree. * If <code>delegate</code> is <tt>null</tt> then a * {@link DefaultTableCellRenderer} will be used as the delegate. * * @param delegate the renderer that produces the data for the tree node * @param treeList the data structure that answers questions about the tree * node and the tree that contains it */ public TreeTableCellRenderer(TableCellRenderer delegate, TreeList treeList) { this.delegate = delegate == null ? createDelegateRenderer() : delegate; this.treeList = treeList; }
/** * Decorate the component returned from the <code>delegate</code> with * extra components that display the tree node's location within the tree. * If <code>delegate</code> is <tt>null</tt> then a * {@link DefaultTableCellRenderer} will be used as the delegate. * * @param delegate the renderer that produces the data for the tree node * @param treeList the data structure that answers questions about the tree * node and the tree that contains it */ public TreeTableCellRenderer(TableCellRenderer delegate, TreeList treeList) { this.delegate = delegate == null ? createDelegateRenderer() : delegate; this.treeList = treeList; }
/** * Decorate the component returned from the <code>delegate</code> with * extra components that display the tree node's location within the tree. * If <code>delegate</code> is <tt>null</tt> then a * {@link DefaultTableCellRenderer} will be used as the delegate. * * @param delegate the renderer that produces the data for the tree node * @param treeList the data structure that answers questions about the tree * node and the tree that contains it */ public TreeTableCellRenderer(TableCellRenderer delegate, TreeList treeList) { this.delegate = delegate == null ? createDelegateRenderer() : delegate; this.treeList = treeList; }