Community
Participate
Working Groups
* the widget
*/
protected void createChildren(final Widget widget) {
createChildren(widget, true);
}
/**
* Creates all children for the given widget.
* <p>
* The default implementation of this framework method assumes that
* <code>widget.getData()</code> returns the element corresponding to the
* node. Note: the node is not visually expanded! You may have to call
* <code>parent.setExpanded(true)</code>.
* </p>
*
* @param widget
* @param materialize
* true if children are expected to be fully materialized
void createChildren(final Widget widget, boolean materialize) {
boolean oldBusy = isBusy();
setBusy(true);
try {
&& !isExpandable((Item) widget, null, widget.getData())) {
return;
createChildren(widget);
createChildren(widget, false);
if (widget instanceof Item) {
setExpanded((Item) widget, true);
protected void createChildren(Widget widget) {
void createChildren(Widget widget, boolean materialize) {
if (contentProviderIsLazy) {
Object element = widget.getData();
if (element == null && widget instanceof TreeItem) {
// touch all children to make sure they are materialized
for (int i = 0; i < children.length; i++) {
if (children[i].getData() == null) {
virtualLazyUpdateWidget(widget, i);
if (materialize) {
} else {
((TreeItem)children[i]).clearAll(true);
super.createChildren(widget);
super.createChildren(widget, materialize);
protected void internalAdd(Widget widget, Object parentElement,