List of usage examples for org.apache.poi.hssf.usermodel HSSFDataValidation setShowErrorBox
public void setShowErrorBox(boolean show)
From source file:uk.ac.manchester.cs.owl.semspreadsheets.model.hssf.impl.SheetHSSFImpl.java
License:BSD License
protected void addConstraint(DataValidationConstraint constraint, int firstCol, int firstRow, int lastCol, int lastRow, boolean showErrorBox) { CellRangeAddressList addressList = new CellRangeAddressList(firstRow, lastRow, firstCol, lastCol); HSSFDataValidation dataValidation = new HSSFDataValidation(addressList, constraint); dataValidation.setShowErrorBox(showErrorBox); sheet.addValidationData(dataValidation); }