Class InlineEditorValidatableContainer<T>

    • Constructor Detail

      • InlineEditorValidatableContainer

        public InlineEditorValidatableContainer​(org.zkoss.zk.ui.Component container,
                                                EditorState<T> editorState,
                                                java.lang.String rootPath)
    • Method Detail

      • isRootPath

        public boolean isRootPath​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Checks whether provided path should be treated as root path.

        Any validation path that matches containers restrictions, yet does not specify any particular attribute/qualifier (i.e. points exactly to one of validated objects) should be considered as root path. In general, if a path is validated by container or is a parent of validated path, but does not point any particular attribute, then it is a root path. Empty string should always be considered as root path, cause they are always a kind of parent of validated path.

        Returns:
        true if path is validated by container (or is a parent path of such) and does not point any attribute
      • getCurrentObject

        public T getCurrentObject​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Gets a full object that was validated for specified violation path
        Parameters:
        path - path of violation
        Returns:
        object that was validated or null if no object matches provided path
      • addValidationObserver

        public void addValidationObserver​(ValueObserver observer)
        Description copied from interface: ValidatableContainer
        Registers a new observer for validation results of container
        Parameters:
        observer - observer to be notified
      • addValidationObserver

        public void addValidationObserver​(java.lang.String key,
                                          ValueObserver observer)
        Description copied from interface: ValidatableContainer
        Registers a new observer for validation results of container for specified path and all its children
        Parameters:
        key - validation path to be observed
        observer - observer to be notified
      • removeValidationObserver

        public void removeValidationObserver​(ValueObserver observer)
        Description copied from interface: ValidatableContainer
        Unregisters a new observer for validation results of container
        Parameters:
        observer - observer not to be notified
      • reactOnValidationChange

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

        Returns:
        true if this validatable container can process validation result change