return focusWidget(w, true);
}
public static boolean focusWidget(Widget w, boolean forward) {
if (w instanceof Component) {
Component c = (Component) w;
if (c instanceof Field<?>) {
c.focus();
return true;
}
if (c.getFocusSupport().isIgnore()) {
if (isContainer(c)) {
stepInto(c, null, forward);
} else {
if (forward) {
return focusNextWidget(c);
} else {
return focusPreviousWidget(c);
}
}
} else {
c.focus();
return true;
}
} else {
El.fly(w.getElement()).focus();
return true;