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