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