|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xssf.usermodel.XSSFDataValidation
public class XSSFDataValidation
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.poi.ss.usermodel.DataValidation |
---|
DataValidation.ErrorStyle |
Constructor Summary | |
---|---|
XSSFDataValidation(XSSFDataValidationConstraint constraint,
CellRangeAddressList regions,
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDataValidation ctDataValidation)
|
Method Summary | |
---|---|
void |
createErrorBox(java.lang.String title,
java.lang.String text)
Sets the title and text for the error box . |
void |
createPromptBox(java.lang.String title,
java.lang.String text)
Sets the title and text for the prompt box . |
boolean |
getEmptyCellAllowed()
Retrieve the settings for empty cells allowed |
java.lang.String |
getErrorBoxText()
|
java.lang.String |
getErrorBoxTitle()
|
int |
getErrorStyle()
o |
java.lang.String |
getPromptBoxText()
|
java.lang.String |
getPromptBoxTitle()
|
CellRangeAddressList |
getRegions()
|
boolean |
getShowErrorBox()
|
boolean |
getShowPromptBox()
|
boolean |
getSuppressDropDownArrow()
Useful only list validation objects . |
DataValidationConstraint |
getValidationConstraint()
|
java.lang.String |
prettyPrint()
|
void |
setEmptyCellAllowed(boolean allowed)
Sets if this object allows empty as a valid value |
void |
setErrorStyle(int errorStyle)
Sets the error style for error box |
void |
setShowErrorBox(boolean show)
Sets the behaviour when an invalid value is entered |
void |
setShowPromptBox(boolean show)
Sets the behaviour when a cell which belongs to this object is selected |
void |
setSuppressDropDownArrow(boolean suppress)
Useful for list validation objects . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSSFDataValidation(XSSFDataValidationConstraint constraint, CellRangeAddressList regions, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDataValidation ctDataValidation)
Method Detail |
---|
public void createErrorBox(java.lang.String title, java.lang.String text)
DataValidation
createErrorBox
in interface DataValidation
title
- The error box's titletext
- The error box's textpublic void createPromptBox(java.lang.String title, java.lang.String text)
DataValidation
createPromptBox
in interface DataValidation
title
- The prompt box's titletext
- The prompt box's textpublic boolean getEmptyCellAllowed()
DataValidation
getEmptyCellAllowed
in interface DataValidation
public java.lang.String getErrorBoxText()
getErrorBoxText
in interface DataValidation
null
public java.lang.String getErrorBoxTitle()
getErrorBoxTitle
in interface DataValidation
null
public int getErrorStyle()
DataValidation
getErrorStyle
in interface DataValidation
DataValidation.ErrorStyle
public java.lang.String getPromptBoxText()
getPromptBoxText
in interface DataValidation
null
public java.lang.String getPromptBoxTitle()
getPromptBoxTitle
in interface DataValidation
null
public boolean getShowErrorBox()
getShowErrorBox
in interface DataValidation
true
if an error box should be displayed , false
otherwisepublic boolean getShowPromptBox()
getShowPromptBox
in interface DataValidation
true
if an prompt box should be displayed , false
otherwisepublic boolean getSuppressDropDownArrow()
DataValidation
getSuppressDropDownArrow
in interface DataValidation
true
if a list should display the values into a drop down list ,
false
otherwise .public DataValidationConstraint getValidationConstraint()
getValidationConstraint
in interface DataValidation
public void setEmptyCellAllowed(boolean allowed)
DataValidation
setEmptyCellAllowed
in interface DataValidation
allowed
- true
if this object should treats empty as valid value , false
otherwisepublic void setErrorStyle(int errorStyle)
DataValidation
setErrorStyle
in interface DataValidation
DataValidation.ErrorStyle
public void setShowErrorBox(boolean show)
DataValidation
setShowErrorBox
in interface DataValidation
show
- true
if an error box should be displayed , false
otherwisepublic void setShowPromptBox(boolean show)
DataValidation
setShowPromptBox
in interface DataValidation
show
- true
if an prompt box should be displayed , false
otherwisepublic void setSuppressDropDownArrow(boolean suppress)
DataValidation
setSuppressDropDownArrow
in interface DataValidation
suppress
- 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 sidepublic CellRangeAddressList getRegions()
getRegions
in interface DataValidation
public java.lang.String prettyPrint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |