/** * Decorate the component returned from the <code>delegate</code> with * extra components that display the tree nodes location within the tree. * If <code>delegate</code> is <tt>null</tt> then a * {@link DefaultCellEditor} using a {@link JTextField} will be used as * the delegate. * * @param delegate the editor 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 TreeTableCellEditor(TableCellEditor delegate, TreeList treeList) { this.delegate = delegate == null ? createDelegateEditor() : delegate; this.delegate.addCellEditorListener(delegateListener); this.treeList = treeList; }
/** * Decorate the component returned from the <code>delegate</code> with * extra components that display the tree nodes location within the tree. * If <code>delegate</code> is <tt>null</tt> then a * {@link DefaultCellEditor} using a {@link JTextField} will be used as * the delegate. * * @param delegate the editor 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 TreeTableCellEditor(TableCellEditor delegate, TreeList treeList) { this.delegate = delegate == null ? createDelegateEditor() : delegate; this.delegate.addCellEditorListener(delegateListener); this.treeList = treeList; }
/** * Decorate the component returned from the <code>delegate</code> with * extra components that display the tree nodes location within the tree. * If <code>delegate</code> is <tt>null</tt> then a * {@link DefaultCellEditor} using a {@link JTextField} will be used as * the delegate. * * @param delegate the editor 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 TreeTableCellEditor(TableCellEditor delegate, TreeList treeList) { this.delegate = delegate == null ? createDelegateEditor() : delegate; this.delegate.addCellEditorListener(delegateListener); this.treeList = treeList; }