Exemplo n.º 1
0
 public void newfocusable(Widget w) {
   if (focusctl) {
     if (focused == null) setfocus(w);
   } else {
     if (parent != null) parent.newfocusable(w);
   }
 }
Exemplo n.º 2
0
 public void setcanfocus(boolean canfocus) {
   this.autofocus = this.canfocus = canfocus;
   if (parent != null) {
     if (canfocus) {
       parent.newfocusable(this);
     } else {
       parent.delfocusable(this);
     }
   }
 }
Exemplo n.º 3
0
 public void show() {
   visible = true;
   if (canfocus && (parent != null)) parent.newfocusable(this);
 }