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