Ejemplo n.º 1
0
 @Override
 public void componentAdded(ContainerEvent e) {
   if (isRefreshing) {
     return;
   }
   XWidgetCreator creator = (XWidgetCreator) e.getChild();
   WHorizontalBoxLayout wlayout = this.toData();
   Widget wgt = creator.toData();
   for (int i = 0, count = this.getComponentCount(); i < count; i++) {
     if (creator == this.getComponent(i)) {
       wlayout.addWidget(wgt, i);
       wlayout.setWidthAtWidget(wgt, creator.getWidth());
     }
   }
   this.recalculateChildrenPreferredSize();
 }