Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
283,600
boolean () { return false; }
isAlwaysShowPlus
283,601
boolean () { return false; }
isAutoExpandNode
283,602
boolean () { return false; }
isAlwaysLeaf
283,603
boolean () { return false; }
shouldHaveSeparator
283,604
int () { return getChildren().length; }
getChildCount
283,605
SimpleNode (final int i) { return getChildren()[i]; }
getChildAt
283,606
boolean (Object o) { return ComparableObjectCheck.equals(this, o); }
equals
283,607
int () { return ComparableObjectCheck.hashCode(this, super.hashCode()); }
hashCode
283,608
boolean () { return Tree.this.isEmptyTextVisible(); }
isStatusVisible
283,609
void (MouseEvent e) { Point p = e.getPoint(); TreePath newPath = getPathForLocation(p.x, p.y); if (newPath != null && !newPath.equals(rollOverPath)) { TreeCellRenderer renderer = getCellRenderer(); if (newPath.getLastPathComponent() instanceof TreeNode node) { JComponent c = (JComponent)renderer.getTreeCellRendererComponent( Tree.this, node, isPathSelected(newPath), isExpanded(newPath), getModel().isLeaf(node), getRowForPath(newPath), hasFocus()); c.putClientProperty(UIUtil.CHECKBOX_ROLLOVER_PROPERTY, c instanceof JCheckBox ? getPathBounds(newPath) : node); rollOverPath = newPath; UIUtil.repaintViewport(Tree.this); } } }
mouseMoved
283,610
void (TreeUI ui) { super.setUI(ui); }
setUI
283,611
Graphics (Graphics graphics) { return JBSwingUtilities.runGlobalCGTransform(this, super.getComponentGraphics(graphics)); }
getComponentGraphics
283,612
void (@NotNull TreePath path) { }
startMeasuringExpandDuration
283,613
boolean () { return 0 >= getRowCount(); }
isEmpty
283,614
boolean () { return true; }
isWideSelection
283,615
Condition<Integer> () { return Conditions.alwaysTrue(); }
getWideSelectionBackgroundCondition
283,616
boolean () { return false; }
isFileColorsEnabled
283,617
boolean () { return isEmpty(); }
isEmptyTextVisible
283,618
StatusText () { return myEmptyText; }
getEmptyText
283,619
ExpandableItemsHandler<Integer> () { return myExpandableItemsHandler; }
getExpandableItemsHandler
283,620
void (boolean enabled) { myExpandableItemsHandler.setEnabled(enabled); }
setExpandableItemsEnabled
283,621
Color () { return isBackgroundSet() ? super.getBackground() : UIUtil.getTreeBackground(); }
getBackground
283,622
Color () { return isForegroundSet() ? super.getForeground() : UIUtil.getTreeForeground(); }
getForeground
283,623
void () { super.addNotify(); // hack to invalidate sizes, see BasicTreeUI.Handler.propertyChange // now the sizes calculated before the tree has the correct GraphicsConfiguration and may be incorrect on the secondary display // see IDEA-184010 firePropertyChange("font", null, null); updateBusy(); }
addNotify
283,624
void () { super.removeNotify(); if (myBusyIcon != null) { remove(myBusyIcon); myBusyIcon.dispose(); myBusyIcon = null; } }
removeNotify
283,625
void () { super.doLayout(); updateBusyIconLocation(); }
doLayout
283,626
void () { if (myBusyIcon != null) { myBusyIcon.updateLocation(this); } }
updateBusyIconLocation
283,627
void (Graphics g) { Rectangle visible = getVisibleRect(); if (!AbstractTreeBuilder.isToPaintSelection(this)) { boolean canHoldSelection = false; TreePath[] paths = getSelectionModel().getSelectionPaths(); if (paths != null) { for (TreePath each : paths) { Rectangle selection = getPathBounds(each); if (selection != null && (g.getClipBounds().intersects(selection) || g.getClipBounds().contains(selection))) { if (myBusy && myBusyIcon != null) { Rectangle busyIconBounds = myBusyIcon.getBounds(); if (selection.contains(busyIconBounds) || selection.intersects(busyIconBounds)) { canHoldSelection = false; break; } } canHoldSelection = true; if (!myBusy || myBusyIcon == null) break; } } } if (canHoldSelection) { mySelectionModel.holdSelection(); } } try { super.paint(g); if (!visible.equals(myLastVisibleRec)) { updateBusyIconLocation(); } myLastVisibleRec = visible; } finally { mySelectionModel.unholdSelection(); } }
paint
283,628
void (boolean paintBusy) { if (myBusy == paintBusy) return; myBusy = paintBusy; updateBusy(); }
setPaintBusy
283,629
void () { boolean shouldPaintBusyIcon = myBusy && shouldShowBusyIconIfNeeded(); if (shouldPaintBusyIcon) { if (myBusyIcon == null) { myBusyIcon = new AsyncProcessIcon(toString()); myBusyIcon.setOpaque(false); myBusyIcon.setPaintPassiveIcon(false); myBusyIcon.setToolTipText(IdeBundle.message("tooltip.text.update.is.in.progress.click.to.cancel")); add(myBusyIcon); myBusyIcon.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { if (!UIUtil.isActionClick(e)) return; AbstractTreeBuilder builder = AbstractTreeBuilder.getBuilderFor(Tree.this); if (builder != null) { builder.cancelUpdate(); } } }); } myBusyIcon.resume(); myBusyIcon.setVisible(true); updateBusyIconLocation(); } if (!shouldPaintBusyIcon && myBusyIcon != null) { myBusyIcon.suspend(); myBusyIcon.setVisible(false); SwingUtilities.invokeLater(() -> { if (myBusyIcon != null) { repaint(); } }); } }
updateBusy
283,630
void (MouseEvent e) { if (!UIUtil.isActionClick(e)) return; AbstractTreeBuilder builder = AbstractTreeBuilder.getBuilderFor(Tree.this); if (builder != null) { builder.cancelUpdate(); } }
mousePressed
283,631
boolean () { // https://youtrack.jetbrains.com/issue/IDEA-101422 "Rotating wait symbol in Project list whenever typing" return hasFocus(); }
shouldShowBusyIconIfNeeded
283,632
boolean () { return false; }
paintNodes
283,633
void (Graphics g) { if (paintNodes()) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); paintNodeContent(g); } if (isFileColorsEnabled()) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); paintFileColorGutter(g); } super.paintComponent(g); myEmptyText.paint(this, g); }
paintComponent
283,634
void (Graphics g) { GraphicsConfig config = new GraphicsConfig(g); config.setupAAPainting(); Rectangle rect = getVisibleRect(); int firstVisibleRow = getClosestRowForLocation(rect.x, rect.y); int lastVisibleRow = getClosestRowForLocation(rect.x, rect.y + rect.height); Color prevColor = firstVisibleRow == 0 ? null : getFileColorForRow(firstVisibleRow - 1); Color curColor = getFileColorForRow(firstVisibleRow); Color nextColor = firstVisibleRow + 1 < getRowCount() ? getFileColorForRow(firstVisibleRow + 1) : null; for (int row = firstVisibleRow; row <= lastVisibleRow; row++) { nextColor = row + 1 < getRowCount() ? getFileColorForRow(row + 1) : null; if (curColor != null) { Rectangle bounds = getRowBounds(row); double x = JBUI.scale(4); double y = bounds.y; double w = JBUI.scale(4); double h = bounds.height; if (Registry.is("ide.file.colors.at.left")) { g.setColor(curColor); if (curColor.equals(prevColor) && curColor.equals(nextColor)) { RectanglePainter2D.FILL.paint((Graphics2D)g, x, y, w, h); } else if (!curColor.equals(prevColor) && !curColor.equals(nextColor)) { RectanglePainter2D.FILL.paint((Graphics2D)g, x, y + 2, w, h - 4, w); } else if (curColor.equals(prevColor)) { RectanglePainter2D.FILL.paint((Graphics2D)g, x, y - w, w, h + w - 2, w); } else { RectanglePainter2D.FILL.paint((Graphics2D)g, x, y + 2, w, h + w, w); } } else { g.setColor(curColor); g.fillRect(0, bounds.y, getWidth(), bounds.height); } } prevColor = curColor; curColor = nextColor; } config.restore(); }
paintFileColorGutter
283,635
void (KeyEvent e) { super.processKeyEvent(e); }
processKeyEvent
283,636
void (MouseEvent e) { MouseEvent e2 = e; if (SystemInfo.isMac) { e2 = MacUIUtil.fixMacContextMenuIssue(e); } super.processMouseEvent(e2); if (e != e2 && e2.isConsumed()) e.consume(); }
processMouseEvent
283,637
boolean (@Nullable TreePath path, int mouseX) { if (path == null) return false; Rectangle bounds = getRowBounds(getRowForPath(path)); return TreeUtil.isLocationInExpandControl(this, path, mouseX, bounds.y + bounds.height / 2); }
isLocationInExpandControl
283,638
TreePath (String prefix, int startingRow, Position.Bias bias) { return null; }
getNextMatch
283,639
boolean () { return true; }
highlightSingleNode
283,640
void (Graphics g) { if (!(getUI() instanceof BasicTreeUI)) return; AbstractTreeBuilder builder = AbstractTreeBuilder.getBuilderFor(this); if (builder == null || builder.isDisposed()) return; GraphicsConfig config = new GraphicsConfig(g); config.setAntialiasing(true); AbstractTreeStructure structure = builder.getTreeStructure(); for (int eachRow = 0; eachRow < getRowCount(); eachRow++) { TreePath path = getPathForRow(eachRow); PresentableNodeDescriptor<?> node = TreeUtil.getLastUserObject(PresentableNodeDescriptor.class, path); if (node == null) continue; if (!node.isContentHighlighted()) continue; if (highlightSingleNode()) { if (node.isContentHighlighted()) { TreePath nodePath = getPath(node); Rectangle rect; Rectangle parentRect = getPathBounds(nodePath); if (isExpanded(nodePath)) { int[] max = getMax(node, structure); rect = new Rectangle(parentRect.x, parentRect.y, Math.max((int)parentRect.getMaxX(), max[1]) - parentRect.x - 1, Math.max((int)parentRect.getMaxY(), max[0]) - parentRect.y - 1); } else { rect = parentRect; } if (rect != null) { Color highlightColor = node.getHighlightColor(); g.setColor(highlightColor); g.fillRoundRect(rect.x, rect.y, rect.width, rect.height, 4, 4); g.setColor(highlightColor.darker()); g.drawRoundRect(rect.x, rect.y, rect.width, rect.height, 4, 4); } } } else { //todo: to investigate why it might happen under 1.6: http://www.productiveme.net:8080/browse/PM-217 if (node.getParentDescriptor() == null) continue; Object[] kids = structure.getChildElements(node); if (kids.length == 0) continue; PresentableNodeDescriptor first = null; PresentableNodeDescriptor last = null; int lastIndex = -1; for (int i = 0; i < kids.length; i++) { Object kid = kids[i]; if (kid instanceof PresentableNodeDescriptor eachKid) { if (!node.isHighlightableContentNode(eachKid)) continue; if (first == null) { first = eachKid; } last = eachKid; lastIndex = i; } } if (first == null) continue; Rectangle firstBounds = getPathBounds(getPath(first)); if (isExpanded(getPath(last))) { if (lastIndex + 1 < kids.length) { Object child = kids[lastIndex + 1]; if (child instanceof PresentableNodeDescriptor nextKid) { int nextRow = getRowForPath(getPath(nextKid)); last = TreeUtil.getLastUserObject(PresentableNodeDescriptor.class, getPathForRow(nextRow - 1)); } } else { NodeDescriptor parentNode = node.getParentDescriptor(); if (parentNode instanceof PresentableNodeDescriptor ppd) { int nodeIndex = node.getIndex(); if (nodeIndex + 1 < structure.getChildElements(ppd).length) { PresentableNodeDescriptor nextChild = ppd.getChildToHighlightAt(nodeIndex + 1); int nextRow = getRowForPath(getPath(nextChild)); TreePath prevPath = getPathForRow(nextRow - 1); if (prevPath != null) { last = TreeUtil.getLastUserObject(PresentableNodeDescriptor.class, prevPath); } } else { int lastRow = getRowForPath(getPath(last)); PresentableNodeDescriptor lastParent = last; boolean lastWasFound = false; for (int i = lastRow + 1; i < getRowCount(); i++) { PresentableNodeDescriptor<?> eachNode = TreeUtil.getLastUserObject(PresentableNodeDescriptor.class, getPathForRow(i)); if (!node.isParentOf(eachNode)) { last = lastParent; lastWasFound = true; break; } lastParent = eachNode; } if (!lastWasFound) { last = TreeUtil.getLastUserObject(PresentableNodeDescriptor.class, getPathForRow(getRowCount() - 1)); } } } } } if (last == null) continue; Rectangle lastBounds = getPathBounds(getPath(last)); if (firstBounds == null || lastBounds == null) continue; Rectangle toPaint = new Rectangle(firstBounds.x, firstBounds.y, 0, (int)lastBounds.getMaxY() - firstBounds.y - 1); toPaint.width = getWidth() - toPaint.x - 4; Color highlightColor = first.getHighlightColor(); g.setColor(highlightColor); g.fillRoundRect(toPaint.x, toPaint.y, toPaint.width, toPaint.height, 4, 4); g.setColor(highlightColor.darker()); g.drawRoundRect(toPaint.x, toPaint.y, toPaint.width, toPaint.height, 4, 4); } } config.restore(); }
paintNodeContent
283,641
int[] (PresentableNodeDescriptor node, AbstractTreeStructure structure) { int x = 0; int y = 0; Object[] children = structure.getChildElements(node); for (Object child : children) { if (child instanceof PresentableNodeDescriptor) { TreePath childPath = getPath((PresentableNodeDescriptor)child); if (childPath != null) { if (isExpanded(childPath)) { int[] tmp = getMax((PresentableNodeDescriptor)child, structure); y = Math.max(y, tmp[0]); x = Math.max(x, tmp[1]); } Rectangle r = getPathBounds(childPath); if (r != null) { y = Math.max(y, (int)r.getMaxY()); x = Math.max(x, (int)r.getMaxX()); } } } } return new int[]{y, x}; }
getMax
283,642
TreePath (@NotNull PresentableNodeDescriptor node) { AbstractTreeBuilder builder = AbstractTreeBuilder.getBuilderFor(this); DefaultMutableTreeNode treeNode = builder.getNodeForElement(node); return treeNode != null ? new TreePath(treeNode.getPath()) : new TreePath(node); }
getPath
283,643
void (TreePath path) { int row = AdvancedSettings.getBoolean("ide.tree.collapse.recursively") ? getRowForPath(path) : -1; if (row < 0) { super.collapsePath(path); } else if (!isAlwaysExpanded(path)) { ArrayDeque<TreePath> deque = new ArrayDeque<>(); deque.addFirst(path); while (++row < getRowCount()) { TreePath next = getPathForRow(row); if (!path.isDescendant(next)) break; if (isExpanded(next)) deque.addFirst(next); } deque.forEach(super::collapsePath); } }
collapsePath
283,644
boolean (TreePath path) { return path != null && TreeUtil.getNodeDepth(this, path) <= 0; }
isAlwaysExpanded
283,645
void () { ClientProperty.put(this, AUTO_SCROLL_FROM_SOURCE_BLOCKED, true); autoScrollUnblockTimer.restart(); }
blockAutoScrollFromSource
283,646
void () { ClientProperty.remove(this, AUTO_SCROLL_FROM_SOURCE_BLOCKED); }
unblockAutoScrollFromSource
283,647
void (TreeSelectionEvent e) { if (myHeldSelection == null) { ActivityTracker.getInstance().inc(); super.fireValueChanged(e); } }
fireValueChanged
283,648
void () { myHeldSelection = getSelectionPaths(); }
holdSelection
283,649
void () { if (myHeldSelection != null) { setSelectionPaths(myHeldSelection); myHeldSelection = null; } }
unholdSelection
283,650
void (MouseEvent event) { if (!hasFocus()) { blockAutoScrollFromSource(); } setPressed(event, true); if (Boolean.FALSE.equals(UIUtil.getClientProperty(event.getSource(), AUTO_SELECT_ON_MOUSE_PRESSED)) && getSelectionModel().getSelectionCount() > 1) { return; } if (!SwingUtilities.isLeftMouseButton(event) && (SwingUtilities.isRightMouseButton(event) || SwingUtilities.isMiddleMouseButton(event))) { TreePath path = getClosestPathForLocation(event.getX(), event.getY()); if (path == null) return; Rectangle bounds = getPathBounds(path); if (bounds != null && bounds.y + bounds.height < event.getY()) return; if (getSelectionModel().getSelectionMode() != TreeSelectionModel.SINGLE_TREE_SELECTION) { TreePath[] selectionPaths = getSelectionModel().getSelectionPaths(); if (selectionPaths != null) { for (TreePath selectionPath : selectionPaths) { if (selectionPath != null && selectionPath.equals(path)) return; } } } getSelectionModel().setSelectionPath(path); } }
mousePressed
283,651
void (MouseEvent event) { setPressed(event, false); if (event.getButton() == MouseEvent.BUTTON1 && event.getClickCount() == 2 && TreeUtil.isLocationInExpandControl(Tree.this, event.getX(), event.getY())) { event.consume(); } }
mouseReleased
283,652
void (MouseEvent e) { if (UIUtil.isUnderWin10LookAndFeel() && rollOverPath != null) { TreeCellRenderer renderer = getCellRenderer(); if (rollOverPath.getLastPathComponent() instanceof TreeNode node) { JComponent c = (JComponent)renderer.getTreeCellRendererComponent( Tree.this, node, isPathSelected(rollOverPath), isExpanded(rollOverPath), getModel().isLeaf(node), getRowForPath(rollOverPath), hasFocus()); c.putClientProperty(UIUtil.CHECKBOX_ROLLOVER_PROPERTY, null); rollOverPath = null; UIUtil.repaintViewport(Tree.this); } } }
mouseExited
283,653
void (MouseEvent e, boolean pressed) { if (UIUtil.isUnderWin10LookAndFeel()) { Point p = e.getPoint(); TreePath path = getPathForLocation(p.x, p.y); if (path != null) { if (path.getLastPathComponent() instanceof TreeNode node) { JComponent c = (JComponent)getCellRenderer().getTreeCellRendererComponent( Tree.this, node, isPathSelected(path), isExpanded(path), getModel().isLeaf(node), getRowForPath(path), hasFocus()); if (pressed) { c.putClientProperty(UIUtil.CHECKBOX_PRESSED_PROPERTY, c instanceof JCheckBox ? getPathBounds(path) : node); } else { c.putClientProperty(UIUtil.CHECKBOX_PRESSED_PROPERTY, null); } UIUtil.repaintViewport(Tree.this); } } } }
setPressed
283,654
void () { TreePath[] paths = getSelectionPaths(); if (paths != null) { TreeUI ui = getUI(); for (int i = paths.length - 1; i >= 0; i--) { Rectangle bounds = ui.getPathBounds(Tree.this, paths[i]); if (bounds != null) { repaint(bounds); } } } }
focusChanges
283,655
void (FocusEvent e) { focusChanges(); }
focusGained
283,656
void (FocusEvent e) { focusChanges(); }
focusLost
283,657
void () { }
setLineStyleAngled
283,658
void (@NotNull Map<? super String, ? super String> info) { TreePath[] selection = getSelectionPaths(); if (selection == null) return; StringBuilder nodesText = new StringBuilder(); for (TreePath eachPath : selection) { Object eachNode = eachPath.getLastPathComponent(); Component c = getCellRenderer().getTreeCellRendererComponent(this, eachNode, false, false, false, getRowForPath(eachPath), false); if (c != null) { if (nodesText.length() > 0) { nodesText.append(";"); } nodesText.append(c); } } if (nodesText.length() > 0) { info.put("selectedNodes", nodesText.toString()); } }
putInfo
283,659
void (boolean hold) { if (hold && myHoldSize == null) { myHoldSize = getPreferredSize(); } else if (!hold && myHoldSize != null) { myHoldSize = null; revalidate(); } }
setHoldSize
283,660
Dimension () { Dimension size = super.getPreferredSize(); if (myHoldSize != null) { size.width = Math.max(size.width, myHoldSize.width); size.height = Math.max(size.height, myHoldSize.height); } return size; }
getPreferredSize
283,661
void (@Nullable TreePath path) { if (path == null) return; // nothing to scroll makeVisible(path); // expand parent paths if needed TreeUtil.scrollToVisible(this, path, false); }
scrollPathToVisible
283,662
boolean () { return myHorizontalAutoScrolling != ThreeState.UNSURE ? myHorizontalAutoScrolling == ThreeState.YES : Registry.is("ide.tree.horizontal.default.autoscrolling", false); }
isHorizontalAutoScrollingEnabled
283,663
void (boolean enabled) { myHorizontalAutoScrolling = enabled ? ThreeState.YES : ThreeState.NO; }
setHorizontalAutoScrollingEnabled
283,664
int (Rectangle visibleRect, int orientation, int direction) { int increment = super.getScrollableUnitIncrement(visibleRect, orientation, direction); if (increment == 0 && orientation == SwingConstants.VERTICAL && direction < 0) { return visibleRect.y; // BasicTreeUI.getPathBounds includes insets, not allowing to reach 0 with mouse wheel. } return increment; }
getScrollableUnitIncrement
283,665
void (TransferHandler handler) { SmoothAutoScroller.installDropTargetAsNecessary(this); super.setTransferHandler(handler); }
setTransferHandler
283,666
Object (@NotNull Object element) { return ((SimpleNode) element).getParent(); }
getParentElement
283,667
boolean (@NotNull Object element) { return ((SimpleNode)element).isAlwaysLeaf(); }
isAlwaysLeaf
283,668
NodeDescriptor (@NotNull Object element, NodeDescriptor parentDescriptor) { return (NodeDescriptor) element; }
createDescriptor
283,669
void () { }
commit
283,670
boolean () { return false; }
hasSomethingToCommit
283,671
void () { cleanUpCaches((SimpleNode) getRootElement()); }
clearCaches
283,672
void (SimpleNode node) { if (!(node instanceof CachingSimpleNode cachingNode)) return; SimpleNode[] cached = cachingNode.getCached(); if (cached == null) return; for (SimpleNode eachChild : cached) { cleanUpCaches(eachChild); } cachingNode.cleanUpCache(); }
cleanUpCaches
283,673
Object () { return myRoot; }
getRootElement
283,674
TreeTable () { return myTreeTable; }
getTreeTable
283,675
void () { super.updateUI(); setBorder(null); TreeCellRenderer tcr = super.getCellRenderer(); if (tcr instanceof DefaultTreeCellRenderer dtcr) { dtcr.setTextSelectionColor(UIUtil.getTableSelectionForeground()); dtcr.setBackgroundSelectionColor(UIUtil.getTableSelectionBackground(true)); } }
updateUI
283,676
boolean () { return StartupUiUtil.isUnderDarcula() || UIUtil.isUnderIntelliJLaF(); }
isWideSelection
283,677
void (int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if (myTreeTable != null && myTreeTable.getRowHeight() != rowHeight) { myTreeTable.setRowHeight(getRowHeight()); } } }
setRowHeight
283,678
void (int x, int y, int w, int h) { super.setBounds(x, 0, w, myTreeTable.getHeight()); }
setBounds
283,679
void (Graphics g) { putClientProperty("JTree.lineStyle", "None"); Graphics g1 = g.create(); g1.translate(0, -myVisibleRow * getRowHeight()); super.paint(g1); g1.dispose(); if (myBorder != null) { myBorder.paintBorder(this, g, 0, 0, myTreeTable.getWidth(), getRowHeight()); } }
paint
283,680
void (Border border) { super.setBorder(border); myBorder = border; }
setBorder
283,681
void (Border border) { myBorder = border; }
setTreeTableTreeBorder
283,682
void (int row) { myVisibleRow = row; final Rectangle rowBounds = getRowBounds(myVisibleRow); final int indent = rowBounds.x - getVisibleRect().x - getTreeColumnOffsetX(); setPreferredSize(new Dimension(getRowBounds(myVisibleRow).width + indent, getPreferredSize().height)); }
setVisibleRow
283,683
void (KeyEvent e) { super.processKeyEvent(e); }
_processKeyEvent
283,684
void (boolean focused) { myCellFocused = focused; }
setCellFocused
283,685
void (final TreeCellRenderer renderer) { TreeTableTreeCellRendererWrapper wrapper = renderer instanceof TreeTableTreeCellRendererWrapper ? ((TreeTableTreeCellRendererWrapper)renderer) : new TreeTableTreeCellRendererWrapper(renderer); super.setCellRenderer(wrapper); }
setCellRenderer
283,686
TreeCellRenderer () { TreeCellRenderer renderer = super.getCellRenderer(); if (renderer instanceof TreeTableTreeCellRendererWrapper) { return ((TreeTableTreeCellRendererWrapper)renderer).myDelegate; } return renderer; }
getOriginalCellRenderer
283,687
int () { int offsetX = 0; for (int i = 0; i < myTreeTable.getColumnCount(); i++) { if (myTreeTable.isTreeColumn(i)) { break; } offsetX += myTreeTable.getColumnModel().getColumn(i).getWidth(); } return offsetX; }
getTreeColumnOffsetX
283,688
Component (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { return myDelegate.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, myCellFocused); }
getTreeCellRendererComponent
283,689
Component (JTable table, Object value, boolean isSelected, int row, int column) { return myTableCellRenderer.getTableCellRendererComponent(table, value, isSelected, false, 0, column); }
getTableCellEditorComponent
283,690
boolean (EventObject e) { return false; }
isCellEditable
283,691
Object () { return ""; }
getCellEditorValue
283,692
int () { return myColumns.length; }
getColumnCount
283,693
String (int column) { return myColumns[column].getName(); }
getColumnName
283,694
Object (Object node, int column) { return myColumns[column].valueOf(node); }
getValueAt
283,695
int (Object parent) { return ((TreeNode)parent).getChildCount(); }
getChildCount
283,696
Object (Object parent, int index) { return ((TreeNode)parent).getChildAt(index); }
getChild
283,697
Class (int column) { return myColumns[column].getColumnClass(); }
getColumnClass
283,698
boolean (Object node, int column) { return myColumns[column].isCellEditable(node); }
isCellEditable
283,699
void (Object aValue, Object node, int column) { myColumns[column].setValue(node, aValue); }
setValueAt