Interface HasEditorErrors<T>

  • Type Parameters:
    T - the type of object the editor displays.
    All Superinterfaces:
    Editor<T>
    All Known Implementing Classes:
    ValueBoxEditorDecorator

    public interface HasEditorErrors<T>
    extends Editor<T>
    Editors that wish to be notified about ConstraintViolations in the value being edited should implement this interface.
    • Method Detail

      • showErrors

        void showErrors​(java.util.List<EditorError> errors)
        Called by the EditorDriver to propagate errors. May be called with a zero-length list to indicate that any existing error condition should be cleared.

        An Editor may consume any errors reported by its sub-Editors by calling EditorError.setConsumed(boolean). Any unconsumed editors will be reported up the Editor hierarchy and will eventually be emitted by the EditorDriver.

        Parameters:
        errors - an unmodifiable list of EditorErrors