widgets = handler.getOrderedWidgets(p);
} else if (p instanceof Container) {
Container con = (Container) p;
widgets = con.getItems();
} else if (p instanceof HasWidgets) {
HasWidgets hs = (HasWidgets) p;
while (hs.iterator().hasNext()) {
widgets.add(hs.iterator().next());
}
}
int size = widgets.size();
int idx = widgets.indexOf(c);
if (idx != -1) {