Interface ValidationFocusTransferHandler
-
- All Known Implementing Classes:
ConfigurableFlowValidationHandler,DefaultEditorAreaValidationHandler,InlineEditorFocusTransfer
public interface ValidationFocusTransferHandlerInterface of object capable of transferring focus from one editor to other. It is used to select editor for specified path.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringON_FOCUS_TRANSFER_REQUESTEDEvent indicating that focus transfer has been requested due to validationstatic java.lang.StringON_FOCUS_TRANSFERREDEvent indicating that focus transfer has been made due to validationstatic intTRANSFER_ERROR_OTHERSome other error occurred during focus transferstatic intTRANSFER_ERROR_UNKNOWN_PATHFocus could not be transferred, as no field for provided path could be foundstatic intTRANSFER_SUCCESSFocus has bean successfully transferred
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intfocusValidationPath(org.zkoss.zk.ui.Component parent, java.lang.String path)Tries to transfer focus to field bound to specified path
-
-
-
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 fieldspath- path to be focused- Returns:
- result of transfer
- See Also:
TRANSFER_SUCCESS,TRANSFER_ERROR_UNKNOWN_PATH,TRANSFER_ERROR_OTHER
-
-