Esempio n. 1
0
 public void delfocusable(Widget w) {
   if (focusctl) {
     if ((focused != null) && focused.hasparent(w)) {
       findfocus();
     }
   } else {
     if (parent != null) parent.delfocusable(w);
   }
 }
Esempio 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);
     }
   }
 }
Esempio n. 3
0
 public void hide() {
   visible = false;
   if (canfocus && (parent != null)) parent.delfocusable(this);
 }