|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.form.validator.Validator
com.smartgwt.client.widgets.form.validator.StringCountValidator
public class StringCountValidator
Determine whether a string value contains some substring multiple times. The substring to check for is specified via validator.substring. The validator.operator property allows you to specify how to test the number of substring occurrances. Valid values for this property are ==, !=, <, <=, >, >=.The number of matches to check for is specified via validator.count.
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
StringCountValidator()
|
Method Summary | |
---|---|
int |
getCount()
Return the count. |
java.lang.String |
getOperator()
Return the operator. |
java.lang.String |
getSubstring()
Return the substring. |
void |
setCount(int count)
Set the count. |
void |
setOperator(java.lang.String operator)
Set the operator. |
void |
setSubstring(java.lang.String substring)
Set the substring. |
Methods inherited from class com.smartgwt.client.widgets.form.validator.Validator |
---|
getClientOnly, getOrCreateRef, getStopIfFalse, setClientOnly, setErrorMessage, setStopIfFalse |
Methods inherited from class com.smartgwt.client.core.JsObject |
---|
isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCountValidator()
Method Detail |
---|
public void setSubstring(java.lang.String substring)
substring
- the substringpublic java.lang.String getSubstring()
public void setOperator(java.lang.String operator)
operator
- the operatorpublic java.lang.String getOperator()
public void setCount(int count)
count
- the countpublic int getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |