public class CustomDataValidation extends Object
| Modifier and Type | Method and Description |
|---|---|
CustomDataValidation |
allowBlank(boolean allowBlank)
whether blank cells should pass the validation
|
CustomDataValidation |
error(String error)
Message text of error alert.
|
CustomDataValidation |
errorStyle(DataValidationErrorStyle errorStyle)
The style of error alert used for this data validation.
|
CustomDataValidation |
errorTitle(String errorTitle)
Title bar text of error alert.
|
CustomDataValidation |
showDropdown(boolean showDropdown)
Whether Excel will show an in-cell dropdown list
containing the validation list
|
CustomDataValidation |
showErrorMessage(boolean showErrorMessage)
Whether to display the error alert message when an invalid value has been entered.
|
void |
write(org.dhatim.fastexcel.Writer w)
Write this dataValidation as an XML element.
|
public CustomDataValidation allowBlank(boolean allowBlank)
allowBlank - whether or not to allow blank valuespublic CustomDataValidation showDropdown(boolean showDropdown)
showDropdown - whether or not to show the dropdownpublic CustomDataValidation errorStyle(DataValidationErrorStyle errorStyle)
errorStyle - The DataValidationErrorStyle for this DataValidationpublic CustomDataValidation showErrorMessage(boolean showErrorMessage)
showErrorMessage - whether to display the error messagepublic CustomDataValidation errorTitle(String errorTitle)
errorTitle - The error titlepublic CustomDataValidation error(String error)
error - The error messagepublic void write(org.dhatim.fastexcel.Writer w)
throws IOException
w - Output writer.IOException - If an I/O error occurs.Copyright © 2023. All rights reserved.