| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.uiinfrastructure.pagecontrols.framework.AValidator
com.plumtree.uiinfrastructure.validators.PositiveIntValidator
public class PositiveIntValidator
Validates that an object is a positive int.
| 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 | |
|---|---|
PositiveIntValidator(java.lang.String _sFormName,
                     java.lang.String _sInputName,
                     java.lang.String _sDefaultValue)
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)
Return a UIError object if the object passed in is not a positive int.  | 
| 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 PositiveIntValidator(java.lang.String _sFormName,
                            java.lang.String _sInputName,
                            java.lang.String _sDefaultValue)
_sFormName - name of the form whre this appears_sInputName - name of the input element_sDefaultValue - default value of the input element| Method Detail | 
|---|
public UIError Validate(java.lang.Object _oObject)
Validate in interface IValidatorpublic java.lang.String GetJSValidationCode()
GetJSValidationCode in interface IValidatorIValidator.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 | ||||||||