@Override public void setAutofocus(final boolean arg) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setAutofocus(arg); }
@Override public void setRequired(final boolean arg) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setRequired(arg); }
@Override public void setValidationMessageElement(final HTMLPanel pelement) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setValidationMessageElement(pelement); }
@Override public HTMLPanel getValidationMessageElement() { return ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).getValidationMessageElement(); }
@Override public boolean checkValidity() { return ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).checkValidity(); }
@Override public void setRequired(final boolean arg) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setRequired(arg); }
@Override public void setValidationMessageElement(final HTMLPanel pelement) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setValidationMessageElement(pelement); }
@Override public void setAutocomplete(final String arg) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setAutocomplete(arg); } }
@Override public HandlerRegistration addFocusHandler(final FocusHandler phandler) { return getValueBox().addFocusHandler(phandler); }
@Override public HandlerRegistration addKeyUpHandler(final KeyUpHandler handler) { return getValueBox().addKeyUpHandler(handler); }
@Override public HandlerRegistration addKeyDownHandler(final KeyDownHandler handler) { return getValueBox().addKeyDownHandler(handler); }
@Override public HandlerRegistration addKeyPressHandler(final KeyPressHandler handler) { return getValueBox().addKeyPressHandler(handler); }
@Override public String getPlaceholder() { return ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).getPlaceholder(); }
@Override public boolean isAutofocus() { return ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).isAutofocus(); }
@Override public HTMLPanel getValidationMessageElement() { return ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).getValidationMessageElement(); }
@Override public void setPlaceholder(final String placeholder) { ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).setPlaceholder(placeholder); } }
@Override public HandlerRegistration addBlurHandler(final BlurHandler phandler) { return getValueBox().addBlurHandler(phandler); }
@Override public ValidityState getValidity() { return ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).getValidity(); }
@Override public void showErrors(final List<EditorError> perrors) { final Set<String> messages = perrors.stream().filter(error -> editorErrorMatches(error)) .map(error -> error.getMessage()).collect(Collectors.toSet()); ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).showErrors(messages); }
@Override public void showErrors(final List<EditorError> perrors) { final Set<String> messages = perrors.stream().filter(error -> editorErrorMatches(error)) .map(error -> error.getMessage()).collect(Collectors.toSet()); ((ValueBoxBaseWithEditorErrors<String>) getValueBox()).showErrors(messages); }