public class ListDataValidation extends Object
Modifier and Type | Method and Description |
---|---|
ListDataValidation |
allowBlank(boolean allowBlank)
whether blank cells should pass the validation
|
ListDataValidation |
error(String error)
Message text of error alert.
|
ListDataValidation |
errorStyle(DataValidationErrorStyle errorStyle)
The style of error alert used for this data validation.
|
ListDataValidation |
errorTitle(String errorTitle)
Title bar text of error alert.
|
ListDataValidation |
showDropdown(boolean showDropdown)
Whether Excel will show an in-cell dropdown list
containing the validation list
|
ListDataValidation |
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 ListDataValidation allowBlank(boolean allowBlank)
allowBlank
- whether or not to allow blank valuespublic ListDataValidation showDropdown(boolean showDropdown)
showDropdown
- whether or not to show the dropdownpublic ListDataValidation errorStyle(DataValidationErrorStyle errorStyle)
errorStyle
- The DataValidationErrorStyle for this DataValidationpublic ListDataValidation showErrorMessage(boolean showErrorMessage)
showErrorMessage
- whether to display the error messagepublic ListDataValidation errorTitle(String errorTitle)
errorTitle
- The error titlepublic ListDataValidation 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 © 2021. All rights reserved.