| Modifier and Type | Field and Description |
|---|---|
| private DVConstraint | |
| private boolean | |
| private String | |
| private String | |
| private int | |
| private String | |
| private String | |
| private CellRangeAddressList | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | HSSFDataValidation(CellRangeAddressList
A list of regions where the constraint is validated. regions, DataValidationConstraint The constraints to apply for this validation. constraint)Constructor which initializes the cell range on which this object will be applied |
| Modifier and Type | Method and Description |
|---|---|
| public DVRecord | |
| public void | createErrorBox(String
The error box's title title, String The error box's text text)Implements org. Sets the title and text for the error box . |
| public void | createPromptBox(String
The prompt box's title title, String The prompt box's text text)Implements org. Sets the title and text for the prompt box . |
| public DVConstraint | |
| public boolean | getEmptyCellAllowed()
Implements org. Retrieve the settings for empty cells allowed |
| public String | |
| public String | |
| public int | |
| public String | |
| public String | |
| public CellRangeAddressList | |
| public boolean | |
| public boolean | |
| public boolean | getSuppressDropDownArrow()
Implements org. Useful only list validation objects . |
| public DataValidationConstraint | |
| public void | setEmptyCellAllowed(boolean
true if this object should treats empty as valid value , false
otherwiseImplements org. Sets if this object allows empty as a valid value |
| public void | setErrorStyle(int error_style)
Implements org. Sets the error style for error box |
| public void | setShowErrorBox(boolean
true if an error box should be displayed , false otherwiseImplements org. Sets the behaviour when an invalid value is entered |
| public void | setShowPromptBox(boolean
true if an prompt box should be displayed , false otherwiseImplements org. Sets the behaviour when a cell which belongs to this object is selected |
| public void | setSuppressDropDownArrow(boolean
True if a list should display the values into a drop down list ,
false otherwise . In other words , if a list should display
the arrow sign on its right side suppress)Implements org. Useful for list validation objects . |
| _constraint | back to summary |
|---|---|
| private DVConstraint _constraint | |
| _emptyCellAllowed | back to summary |
|---|---|
| private boolean _emptyCellAllowed | |
| _error_text | back to summary |
|---|---|
| private String _error_text | |
| _error_title | back to summary |
|---|---|
| private String _error_title | |
| _errorStyle | back to summary |
|---|---|
| private int _errorStyle | |
| _prompt_text | back to summary |
|---|---|
| private String _prompt_text | |
| _prompt_title | back to summary |
|---|---|
| private String _prompt_title | |
| _regions | back to summary |
|---|---|
| private CellRangeAddressList _regions | |
| _showErrorBox | back to summary |
|---|---|
| private boolean _showErrorBox | |
| _showPromptBox | back to summary |
|---|---|
| private boolean _showPromptBox | |
| _suppress_dropdown_arrow | back to summary |
|---|---|
| private boolean _suppress_dropdown_arrow | |
| HSSFDataValidation | back to summary |
|---|---|
| public HSSFDataValidation(CellRangeAddressList regions, DataValidationConstraint constraint) Constructor which initializes the cell range on which this object will be applied
| |
| createDVRecord | back to summary |
|---|---|
| public DVRecord createDVRecord(HSSFSheet sheet) | |
| createErrorBox | back to summary |
|---|---|
| public void createErrorBox(String title, String text) Implements org. Doc from org. Sets the title and text for the error box . Error box is displayed when the user enters an invalid value int o a cell which belongs to this validation object . In order for an error box to be displayed you should also use method setShowErrorBox( boolean show ) | |
| createPromptBox | back to summary |
|---|---|
| public void createPromptBox(String title, String text) Implements org. Doc from org. Sets the title and text for the prompt box . Prompt box is displayed when the user selects a cell which belongs to this validation object . In order for a prompt box to be displayed you should also use method setShowPromptBox( boolean show ) | |
| getConstraint | back to summary |
|---|---|
| public DVConstraint getConstraint() | |
| getEmptyCellAllowed | back to summary |
|---|---|
| public boolean getEmptyCellAllowed() Implements org. Doc from org. Retrieve the settings for empty cells allowed
| |
| getErrorBoxText | back to summary |
|---|---|
| public String getErrorBoxText() Implements org.
| |
| getErrorBoxTitle | back to summary |
|---|---|
| public String getErrorBoxTitle() Implements org.
| |
| getErrorStyle | back to summary |
|---|---|
| public int getErrorStyle() Implements org. Doc from org. o
| |
| getPromptBoxText | back to summary |
|---|---|
| public String getPromptBoxText() Implements org.
| |
| getPromptBoxTitle | back to summary |
|---|---|
| public String getPromptBoxTitle() Implements org.
| |
| getRegions | back to summary |
|---|---|
| public CellRangeAddressList getRegions() Implements org. | |
| getShowErrorBox | back to summary |
|---|---|
| public boolean getShowErrorBox() Implements org.
| |
| getShowPromptBox | back to summary |
|---|---|
| public boolean getShowPromptBox() Implements org.
| |
| getSuppressDropDownArrow | back to summary |
|---|---|
| public boolean getSuppressDropDownArrow() Implements org. Doc from org. Useful only list validation objects . This method always returns false if the object isn't a list validation object
| |
| getValidationConstraint | back to summary |
|---|---|
| public DataValidationConstraint getValidationConstraint() Implements org. | |
| setEmptyCellAllowed | back to summary |
|---|---|
| public void setEmptyCellAllowed(boolean allowed) Implements org. Doc from org. Sets if this object allows empty as a valid value
| |
| setErrorStyle | back to summary |
|---|---|
| public void setErrorStyle(int error_style) Implements org. Doc from org. Sets the error style for error box | |
| setShowErrorBox | back to summary |
|---|---|
| public void setShowErrorBox(boolean show) Implements org. Doc from org. Sets the behaviour when an invalid value is entered
| |
| setShowPromptBox | back to summary |
|---|---|
| public void setShowPromptBox(boolean show) Implements org. Doc from org. Sets the behaviour when a cell which belongs to this object is selected
| |
| setSuppressDropDownArrow | back to summary |
|---|---|
| public void setSuppressDropDownArrow(boolean suppress) Implements org. Doc from org. Useful for list validation objects .
| |