/*************************************** * Sets the focus to a certain widget. * * @param rWidget The widget to set the focus on */ private void setFocus(Widget rWidget) { if (rWidget instanceof Focusable) { ((Focusable) rWidget).setFocus(true); } else if (rWidget instanceof DateBox) { ((DateBox) rWidget).setFocus(true); } }