/** * If <code>spaceKeyExpansionEnabled</code> is <code>true</code>, then control of the * table hierachy expansion via the space key is enabled. If <code>false</code>, the space * key will not control the table hierachie expansion. */ public void setSpaceKeyExpansionEnabled(boolean spaceKeyExpansionEnabled) { checkAccessThread(); this.spaceKeyExpansionEnabled = spaceKeyExpansionEnabled; }
/** * If <code>spaceKeyExpansionEnabled</code> is <code>true</code>, then control of the * table hierachy expansion via the space key is enabled. If <code>false</code>, the space * key will not control the table hierachie expansion. */ public void setSpaceKeyExpansionEnabled(boolean spaceKeyExpansionEnabled) { checkAccessThread(); this.spaceKeyExpansionEnabled = spaceKeyExpansionEnabled; }
/** * If <code>spaceKeyExpansionEnabled</code> is <code>true</code>, then control of the * table hierachy expansion via the space key is enabled. If <code>false</code>, the space * key will not control the table hierachie expansion. */ public void setSpaceKeyExpansionEnabled(boolean spaceKeyExpansionEnabled) { checkAccessThread(); this.spaceKeyExpansionEnabled = spaceKeyExpansionEnabled; }
/** * Use the given <code>editor</code> as the new delegate editor of the * {@link TreeTableCellEditor} which is responsible for editing the data * associated with each tree node in the hierarchy column. */ public void setDelegateEditor(TableCellEditor editor) { checkAccessThread(); treeTableCellEditor.setDelegate(editor); }
/** * Use the given <code>renderer</code> as the new delegate renderer of the * {@link TreeTableCellRenderer} which is responsible for rendering the * data associated with each tree node in the hierarchy column. */ public void setDelegateRenderer(TableCellRenderer renderer) { checkAccessThread(); treeTableCellRenderer.setDelegate(renderer); }
/** * Use the given <code>editor</code> as the new delegate editor of the * {@link TreeTableCellEditor} which is responsible for editing the data * associated with each tree node in the hierarchy column. */ public void setDelegateEditor(TableCellEditor editor) { checkAccessThread(); treeTableCellEditor.setDelegate(editor); }
/** * Use the given <code>renderer</code> as the new delegate renderer of the * {@link TreeTableCellRenderer} which is responsible for rendering the * data associated with each tree node in the hierarchy column. */ public void setDelegateRenderer(TableCellRenderer renderer) { checkAccessThread(); treeTableCellRenderer.setDelegate(renderer); }
/** * Use the given <code>renderer</code> as the new delegate renderer of the * {@link TreeTableCellRenderer} which is responsible for rendering the * data associated with each tree node in the hierarchy column. */ public void setDelegateRenderer(TableCellRenderer renderer) { checkAccessThread(); treeTableCellRenderer.setDelegate(renderer); }
/** * Use the given <code>editor</code> as the new delegate editor of the * {@link TreeTableCellEditor} which is responsible for editing the data * associated with each tree node in the hierarchy column. */ public void setDelegateEditor(TableCellEditor editor) { checkAccessThread(); treeTableCellEditor.setDelegate(editor); }
/** * Use the given <code>treeTableCellRenderer</code> when rendering the * hierarchy column of the tree table. */ public void setRenderer(TreeTableCellRenderer treeTableCellRenderer) { checkAccessThread(); // ensure we can find the view column index of the hierarchical column final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex); if (viewColumnIndex == -1) throw new IllegalArgumentException("Unable to locate a view index for the given model index: " + hierarchyColumnModelIndex); // look up the hierarchical TableColumn final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex); // dispose the old renderer this.treeTableCellRenderer.dispose(); // install the new renderer this.treeTableCellRenderer = treeTableCellRenderer; treeTableCellRenderer.setShowExpanderForEmptyParent(showExpanderForEmptyParent); viewColumn.setCellRenderer(treeTableCellRenderer); }
/** * Use the given <code>treeTableCellRenderer</code> when rendering the * hierarchy column of the tree table. */ public void setRenderer(TreeTableCellRenderer treeTableCellRenderer) { checkAccessThread(); // ensure we can find the view column index of the hierarchical column final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex); if (viewColumnIndex == -1) throw new IllegalArgumentException("Unable to locate a view index for the given model index: " + hierarchyColumnModelIndex); // look up the hierarchical TableColumn final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex); // dispose the old renderer this.treeTableCellRenderer.dispose(); // install the new renderer this.treeTableCellRenderer = treeTableCellRenderer; treeTableCellRenderer.setShowExpanderForEmptyParent(showExpanderForEmptyParent); viewColumn.setCellRenderer(treeTableCellRenderer); }
/** * Use the given <code>treeTableCellRenderer</code> when rendering the * hierarchy column of the tree table. */ public void setRenderer(TreeTableCellRenderer treeTableCellRenderer) { checkAccessThread(); // ensure we can find the view column index of the hierarchical column final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex); if (viewColumnIndex == -1) { throw new IllegalArgumentException("Unable to locate a view index for the given model index: " + hierarchyColumnModelIndex); } // look up the hierarchical TableColumn final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex); // dispose the old renderer this.treeTableCellRenderer.dispose(); // install the new renderer this.treeTableCellRenderer = treeTableCellRenderer; treeTableCellRenderer.setShowExpanderForEmptyParent(showExpanderForEmptyParent); viewColumn.setCellRenderer(treeTableCellRenderer); }
/** * Use the given <code>treeTableCellEditor</code> when editing the * hierarchy column of the tree table. */ public void setEditor(TreeTableCellEditor treeTableCellEditor) { checkAccessThread(); // ensure we can find the view column index of the hierarchical column final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex); if (viewColumnIndex == -1) throw new IllegalArgumentException("Unable to locate a view index for the given model index: " + hierarchyColumnModelIndex); // look up the hierarchical TableColumn final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex); // dispose the old editor this.treeTableCellEditor.dispose(); // install the new editor this.treeTableCellEditor = treeTableCellEditor; treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent); viewColumn.setCellEditor(treeTableCellEditor); }
/** * Use the given <code>treeTableCellEditor</code> when editing the * hierarchy column of the tree table. */ public void setEditor(TreeTableCellEditor treeTableCellEditor) { checkAccessThread(); // ensure we can find the view column index of the hierarchical column final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex); if (viewColumnIndex == -1) throw new IllegalArgumentException("Unable to locate a view index for the given model index: " + hierarchyColumnModelIndex); // look up the hierarchical TableColumn final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex); // dispose the old editor this.treeTableCellEditor.dispose(); // install the new editor this.treeTableCellEditor = treeTableCellEditor; treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent); viewColumn.setCellEditor(treeTableCellEditor); }
/** * Use the given <code>treeTableCellEditor</code> when editing the * hierarchy column of the tree table. */ public void setEditor(TreeTableCellEditor treeTableCellEditor) { checkAccessThread(); // ensure we can find the view column index of the hierarchical column final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex); if (viewColumnIndex == -1) { throw new IllegalArgumentException("Unable to locate a view index for the given model index: " + hierarchyColumnModelIndex); } // look up the hierarchical TableColumn final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex); // dispose the old editor this.treeTableCellEditor.dispose(); // install the new editor this.treeTableCellEditor = treeTableCellEditor; treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent); viewColumn.setCellEditor(treeTableCellEditor); }
/** * Sets whether the expander is displayed for nodes that do not contain * children but are allowed to contain children, and thus may accumulate * children in the future. If this property is <tt>true</tt> then empty * nodes that may contain children in the future are displayed with a * visible expander; otherwise they are displayed without the expander. * A node signals that it may contain children in the future by returning * <tt>true</tt> from {@link TreeList.Format#allowsChildren(Object)}. */ public void setShowExpanderForEmptyParent(boolean showExpanderForEmptyParent) { checkAccessThread(); if (this.showExpanderForEmptyParent == showExpanderForEmptyParent) return; this.showExpanderForEmptyParent = showExpanderForEmptyParent; // indicate the new property value to the renderer and editor treeTableCellRenderer.setShowExpanderForEmptyParent(showExpanderForEmptyParent); treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent); // repaint the table so the display is updated table.repaint(); }
/** * Sets whether the expander is displayed for nodes that do not contain * children but are allowed to contain children, and thus may accumulate * children in the future. If this property is <tt>true</tt> then empty * nodes that may contain children in the future are displayed with a * visible expander; otherwise they are displayed without the expander. * A node signals that it may contain children in the future by returning * <tt>true</tt> from {@link ca.odell.glazedlists.TreeList.Format#allowsChildren(Object)}. */ public void setShowExpanderForEmptyParent(boolean showExpanderForEmptyParent) { checkAccessThread(); if (this.showExpanderForEmptyParent == showExpanderForEmptyParent) { return; } this.showExpanderForEmptyParent = showExpanderForEmptyParent; // indicate the new property value to the renderer and editor treeTableCellRenderer.setShowExpanderForEmptyParent(showExpanderForEmptyParent); treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent); // repaint the table so the display is updated table.repaint(); }
/** * Sets whether the expander is displayed for nodes that do not contain * children but are allowed to contain children, and thus may accumulate * children in the future. If this property is <tt>true</tt> then empty * nodes that may contain children in the future are displayed with a * visible expander; otherwise they are displayed without the expander. * A node signals that it may contain children in the future by returning * <tt>true</tt> from {@link TreeList.Format#allowsChildren(Object)}. */ public void setShowExpanderForEmptyParent(boolean showExpanderForEmptyParent) { checkAccessThread(); if (this.showExpanderForEmptyParent == showExpanderForEmptyParent) return; this.showExpanderForEmptyParent = showExpanderForEmptyParent; // indicate the new property value to the renderer and editor treeTableCellRenderer.setShowExpanderForEmptyParent(showExpanderForEmptyParent); treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent); // repaint the table so the display is updated table.repaint(); }