Exemplo n.º 1
0
 private <T extends Widget> T add0(T child) {
   if (this.ui != null) ((Widget) child).attach(this.ui);
   child.parent = this;
   child.link();
   child.added();
   if (((Widget) child).canfocus && child.visible) newfocusable(child);
   return (child);
 }
Exemplo n.º 2
0
 protected void attach(UI ui) {
   this.ui = ui;
   for (Widget ch = child; ch != null; ch = ch.next) ch.attach(ui);
 }