/** * Sets focus to the editor component. */ public void setFocus() { editor.setFocus(true); }
/** * Sets the input focus to this component. If the component cannot receive the input focus, the * request is ignored. This is a shortcut for <code>setFocus(true)</code>. */ public void focus() { setFocus(true); }
/** * Displays (or clears) a validation error. * * @param message The error text. If null, any existing validation errors will be cleared. * @param inputElement The input element that caused the validation error. */ private void showError(String message, BaseUIComponent inputElement) { ok = message == null; datebox.setBalloon(inputElement == datebox ? message : null); timebox.setBalloon(inputElement == timebox ? message : null); if (!ok) { inputElement.setFocus(true); } }