public class ValidationHelper extends Object
Constructor and Description |
---|
ValidationHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(Sheet sheet,
int row,
int col,
String editText,
org.zkoss.zk.ui.event.EventListener callback)
To help you validate the cell edit text, it returns true if validation passed or no validation rule.
You can also assign a callback listener if the cell is configured to show a error-box to ask user re-input the edit value again when validation fail.
|
public boolean validate(Sheet sheet, int row, int col, String editText, org.zkoss.zk.ui.event.EventListener callback)
sheet
- row
- col
- editText
- callback
- the callback listener for validationCopyright © 2020. All rights reserved.