public class DataValidation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
eAny |
static int |
eBetween |
static int |
eDate |
static int |
eDecimal |
static int |
eEqual |
static int |
eFormula |
static int |
eGreater |
static int |
eGreaterOrEqual |
static int |
eInfo |
static int |
eInteger |
static int |
eLess |
static int |
eLessOrEqual |
static int |
eNotBetween |
static int |
eNotEqual |
static int |
eStop |
static int |
eTextLength |
static int |
eTime |
static int |
eUser |
static int |
eWarning |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorBoxText()
the error box text
|
java.lang.String |
getErrorBoxTitle()
return the error box title
|
int |
getErrorStyle()
error style
stop
eStop warning info |
java.lang.String |
getFormula1()
the first formula
|
java.lang.String |
getFormula2()
the second formula
|
int |
getOperator()
dv opertor
between
eBetween notbetween equal notequal greater less greaterorequal lessorequal |
java.lang.String |
getPromtBoxText()
return the promt box text
|
java.lang.String |
getPromtBoxTitle()
return the title of the dv's promt box
|
int |
getType()
type
any
eAny integer decimal user date time textlength formula |
boolean |
isAllowBlank()
return whether the data validation allows the use of empty or blank entries
|
boolean |
isEmpty() |
boolean |
isShowDropDown() |
boolean |
isShowErrorMessage() |
boolean |
isShowInputMessage() |
void |
setAllowBlank(boolean v)
set whether the data validation allows the use of empty or blank entries
|
void |
setErrorBoxText(java.lang.String errorBoxText)
set dv's error box text
|
void |
setErrorBoxTitle(java.lang.String errorBoxTitle)
the dv's error box title
|
void |
setErrorStyle(int errorStyle)
set the dv error style
stop
eStop warning info |
void |
setFormula1(java.lang.String text)
set the first formula
|
void |
setFormula2(java.lang.String text)
set the second formula
|
void |
setOperator(int operator)
set the dv operator
between
eBetween notbetween equal notequal greater less greaterorequal lessorequal |
void |
setPromtBoxText(java.lang.String promtBoxText)
set the dv's promt box text
|
void |
setPromtBoxTitle(java.lang.String promtBoxTitle)
set the title of the dv's promt box
|
void |
setShowDropDown(boolean v) |
void |
setShowErrorMessage(boolean v) |
void |
setShowInputMessage(boolean v) |
void |
setType(int dataType)
set the data validation type
any
eAny integer decimal user date time textlength formula |
public static int eAny
public static int eInteger
public static int eDecimal
public static int eUser
public static int eDate
public static int eTime
public static int eTextLength
public static int eFormula
public static int eStop
public static int eWarning
public static int eInfo
public static int eBetween
public static int eNotBetween
public static int eEqual
public static int eNotEqual
public static int eGreater
public static int eLess
public static int eGreaterOrEqual
public static int eLessOrEqual
public int getType()
eAny
integer decimal user date time textlength formulapublic void setType(int dataType)
eAny
integer decimal user date time textlength formuladataType
- typepublic int getOperator()
eBetween
notbetween equal notequal greater less greaterorequal lessorequalpublic void setOperator(int operator)
eBetween
notbetween equal notequal greater less greaterorequal lessorequaloperator
- oppublic int getErrorStyle()
eStop
warning infopublic void setErrorStyle(int errorStyle)
eStop
warning infoerrorStyle
- error stylepublic java.lang.String getFormula1()
public void setFormula1(java.lang.String text) throws SXException
text
- formula contentSXException
- invalid formulapublic java.lang.String getFormula2()
public void setFormula2(java.lang.String text) throws SXException
text
- formula contentSXException
- invalid formulapublic java.lang.String getErrorBoxText()
public void setErrorBoxText(java.lang.String errorBoxText)
errorBoxText
- error box textpublic java.lang.String getErrorBoxTitle()
public void setErrorBoxTitle(java.lang.String errorBoxTitle)
errorBoxTitle
- titlepublic java.lang.String getPromtBoxText()
public void setPromtBoxText(java.lang.String promtBoxText)
promtBoxText
- textpublic java.lang.String getPromtBoxTitle()
public void setPromtBoxTitle(java.lang.String promtBoxTitle)
promtBoxTitle
- titlepublic boolean isAllowBlank()
public void setAllowBlank(boolean v)
v
- true allowpublic boolean isShowErrorMessage()
public void setShowErrorMessage(boolean v)
public boolean isShowInputMessage()
public void setShowInputMessage(boolean v)
public boolean isShowDropDown()
public void setShowDropDown(boolean v)
public boolean isEmpty()