Example usage for org.apache.poi.hssf.usermodel HSSFDataValidation setShowErrorBox

List of usage examples for org.apache.poi.hssf.usermodel HSSFDataValidation setShowErrorBox

Introduction

In this page you can find the example usage for org.apache.poi.hssf.usermodel HSSFDataValidation setShowErrorBox.

Prototype

public void setShowErrorBox(boolean show) 

Source Link

Usage

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);
}