|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.pagecontrols.framework.AValidator com.plumtree.uiinfrastructure.validators.LengthValidator
public class LengthValidator
Validates that a input value is less than a given length
Field Summary | |
---|---|
java.lang.String |
m_strFormName
name of the form where this validator appears (used by JavaScript validation) |
java.lang.String |
m_strInputName
name of the input which this validator works on (used by JavaScript validation) |
java.lang.String |
VALIDATOR_NAME
|
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AValidator |
---|
m_sErrorMessage |
Constructor Summary | |
---|---|
LengthValidator(java.lang.String _sFormName,
java.lang.String _sInputName,
int _iMax,
int _iMin)
Creates a new PositiveIntValidator. |
Method Summary | |
---|---|
java.lang.String |
GetJSFunction(java.lang.String _sParameters)
Return the name of the JavaScript validation method along with whatever parameters the script needs. |
java.lang.String |
GetJSValidationCode()
Returns the JavaScript Validation method that may be used on a page to validate associated form input. |
java.lang.String |
GetName()
Return the name of this Validator |
UIError |
Validate(java.lang.Object _oObject)
Validation method. |
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AValidator |
---|
GetErrorMessage, SetErrorMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IValidator |
---|
SetErrorMessage |
Field Detail |
---|
public java.lang.String VALIDATOR_NAME
public java.lang.String m_strFormName
public java.lang.String m_strInputName
Constructor Detail |
---|
public LengthValidator(java.lang.String _sFormName, java.lang.String _sInputName, int _iMax, int _iMin)
_sFormName
- name of the form whre this appears_sInputName
- name of the input element_sDefaultValue
- default value of the input elementMethod Detail |
---|
public UIError Validate(java.lang.Object _oObject)
IValidator
Validate
in interface IValidator
public java.lang.String GetJSValidationCode()
GetJSValidationCode
in interface IValidator
IValidator.GetJSValidationCode()
public java.lang.String GetJSFunction(java.lang.String _sParameters)
GetJSFunction
in interface IValidator
_sParameters
- areguments to Javascript function
public java.lang.String GetName()
GetName
in interface IValidator
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |