Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class TreeTableViewSkin<T> extends TableViewSkinBase<T, TreeItem<T>, Tree
ObjectProperty<ObservableList<TreeItem<T>>> tableBackingListProperty;
private final TreeTableViewBehavior<T> behavior;
private final EventHandler<TreeItem.TreeModificationEvent<T>> rootListener;

private boolean treeStructureDirty;


/* *************************************************************************
Expand Down Expand Up @@ -147,6 +147,12 @@ public TreeTableViewSkin(final TreeTableView<T> control) {
control.requestLayout();
break;
}
else if (eventType.equals(TreeItem.<T>childrenModificationEvent())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: else if should be in the previous line to follow the Java Code Convention: } else if (..)

markItemCountDirty();
treeStructureDirty = true;
control.requestLayout();
break;
}
eventType = eventType.getSuperType();
}
}
Expand Down Expand Up @@ -347,6 +353,10 @@ private TreeTableRow<T> createCell() {
// A unit test exists in TreeTableViewTest to ensure that
// the performance issue covered in JDK-8147483 doesn't regress.
// requestRebuildCells();
treeStructureDirty = false;
} else if (treeStructureDirty) {
requestRebuildCells();
treeStructureDirty = false;
} else {
needCellsReconfigured = true;
}
Expand Down