Class AbstractInlineEditorValidatableContainer<T>

    • Field Detail

      • preventBroadcastValidationChange

        protected boolean preventBroadcastValidationChange
    • Constructor Detail

      • AbstractInlineEditorValidatableContainer

        public AbstractInlineEditorValidatableContainer​(org.zkoss.zk.ui.Component container,
                                                        EditorState<T> editorState)
    • Method Detail

      • getCurrentObjectPath

        public java.lang.String getCurrentObjectPath​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Alters provided path (that comes from violation) so that is relative to current object
        Specified by:
        getCurrentObjectPath in interface ValidatableContainer
        Parameters:
        path - violation path
        Returns:
        path relative to validated object, empty string if path points directly to validated object or null if path does not match any validated objects
      • getRootValidationResult

        protected abstract ValidationResult getRootValidationResult()
      • getCurrentValidationResult

        public ValidationResult getCurrentValidationResult​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Gets validation results of container related to provided path (relative to container).

        Returned container may be editable and notify listeners about changes. If a returned container is a wrapper of other container, then any changes made to the wrapper should be propagated to wrapped one and all listeners should be notified. It is not sure that changes made to wrapped one will be propagated to the wrapper. Also notifications of wrapped container may not be transferred to listeners of a wrapper.

        Specified by:
        getCurrentValidationResult in interface ValidatableContainer
        Returns:
        validation results found or ValidationResult.EMPTY if no violations found for specified path
      • reactOnValidationChange

        public boolean reactOnValidationChange​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Checks whether this validatable container is able to process validation result change for given path.

        Specified by:
        reactOnValidationChange in interface ValidatableContainer
        Returns:
        true if this validatable container can process validation result change
      • getValidationResultPopup

        public org.zkoss.zul.Window getValidationResultPopup()
      • setValidationResultPopup

        public void setValidationResultPopup​(org.zkoss.zul.Window validationResultPopup)