Interface ValidationFocusTransferHandler

    • Field Detail

      • ON_FOCUS_TRANSFER_REQUESTED

        static final java.lang.String ON_FOCUS_TRANSFER_REQUESTED
        Event indicating that focus transfer has been requested due to validation
        See Also:
        Constant Field Values
      • ON_FOCUS_TRANSFERRED

        static final java.lang.String ON_FOCUS_TRANSFERRED
        Event indicating that focus transfer has been made due to validation
        See Also:
        Constant Field Values
      • TRANSFER_SUCCESS

        static final int TRANSFER_SUCCESS
        Focus has bean successfully transferred
        See Also:
        Constant Field Values
      • TRANSFER_ERROR_UNKNOWN_PATH

        static final int TRANSFER_ERROR_UNKNOWN_PATH
        Focus could not be transferred, as no field for provided path could be found
        See Also:
        Constant Field Values
      • TRANSFER_ERROR_OTHER

        static final int TRANSFER_ERROR_OTHER
        Some other error occurred during focus transfer
        See Also:
        Constant Field Values
    • Method Detail

      • focusValidationPath

        int focusValidationPath​(org.zkoss.zk.ui.Component parent,
                                java.lang.String path)
        Tries to transfer focus to field bound to specified path
        Parameters:
        parent - parent component of fields
        path - path to be focused
        Returns:
        result of transfer
        See Also:
        TRANSFER_SUCCESS, TRANSFER_ERROR_UNKNOWN_PATH, TRANSFER_ERROR_OTHER