public void setExpandOnFilter(boolean expandOnFilter) {
this.expandOnFilter = expandOnFilter;
}
protected void createAll() {
TreeItem root = tree.getRootItem();
root.removeAll();
List<M> list = store.getRootItems();
for (M element : list) {
TreeItem item = null;
if (store.isFiltered()) {
if (isOrDecendantSelected(null, element)) {
item = createItem(element);
}
} else {
item = createItem(element);
}
tree.getRootItem().add(item);
if (autoLoad && item != null) {
item.setData("force", true);
loadChildren(item, false);
}
}
if (isAutoSelect() && list.size() > 0) {