dimanche 14 septembre 2014

Elements recursively - gxt 3.1.1

Hello,

Recursively need to download all widgets that are in the container. How to do it?



Code:



private Widget getComponent(Widget w) {
if (w != null) {
if (w.getParent() != null) {
widgetList.add(w.getParent());
return getComponent(w.getParent());
} else {
return w;
}
} else {
return w;
}
}

This code one does not grab everything.



Elements recursively - gxt 3.1.1

Aucun commentaire:

Enregistrer un commentaire