|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gwtext.client.widgets.form.VType
public class VType
Basic pre-created validation types. Overridable validation definitions. The validations provided are basic and intended to be easily customizable and extended.
TextField.setVtype(VType)
Field Summary | |
---|---|
static VType |
ALPHA
The function used to validate alpha values |
static VType |
ALPHANUM
The function used to validate alphanumeric values. |
static VType |
EMAIL
The function used to validate email addresses. |
static VType |
URL
The function used to validate URLs. |
Method Summary | |
---|---|
java.lang.String |
getVType()
|
static void |
setAlphaMask(RegExp alphaMask)
The keystroke filter mask to be applied on alpha input. |
static void |
setAlphanumMask(RegExp alphanumMask)
The keystroke filter mask to be applied on alphanumeric input. |
static void |
setAlphanumText(java.lang.String alphanumText)
The error text to display when the alphanumeric validation function returns false. |
static void |
setAlphaText(java.lang.String alphaText)
The error text to display when the alpha validation function returns false. |
static void |
setEmailMask(RegExp emailMask)
The keystroke filter mask to be applied on email input. |
static void |
setEmailText(java.lang.String emailText)
The error text to display when the email validation function returns false. |
static void |
setUrlText(java.lang.String urlText)
The error text to display when the url validation function returns false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static VType ALPHA
public static VType ALPHANUM
public static VType EMAIL
public static VType URL
Method Detail |
---|
public java.lang.String getVType()
public static void setAlphaText(java.lang.String alphaText)
alphaText
- error messagepublic static void setAlphaMask(RegExp alphaMask)
alphaMask
- the alpha maskpublic static void setAlphanumText(java.lang.String alphanumText)
alphanumText
- the error messagepublic static void setAlphanumMask(RegExp alphanumMask)
alphanumMask
- the alpha num maskpublic static void setEmailText(java.lang.String emailText)
emailText
- the error messagepublic static void setEmailMask(RegExp emailMask)
emailMask
- the email maskpublic static void setUrlText(java.lang.String urlText)
urlText
- the error message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |