com.smartgwt.client.widgets.form.validator
Class IsIntegerValidator

java.lang.Object
  extended by com.smartgwt.client.core.JsObject
      extended by com.smartgwt.client.core.DataClass
          extended by com.smartgwt.client.widgets.form.validator.Validator
              extended by com.smartgwt.client.widgets.form.validator.IsIntegerValidator

public class IsIntegerValidator
extends Validator

Tests whether the value for this field is a whole number. If validator.convertToInteger is true, float values will be converted into integers and validation will succeed.


Field Summary
 
Fields inherited from class com.smartgwt.client.core.JsObject
jsObj
 
Constructor Summary
IsIntegerValidator()
           
 
Method Summary
 boolean getConvertToInteger()
          Return the convertToInteger.
 void setConvertToInteger(boolean convertToInteger)
          Set the convertToInteger.
 
Methods inherited from class com.smartgwt.client.widgets.form.validator.Validator
getClientOnly, getOrCreateRef, getServerCondition, getServerOnly, getStopIfFalse, setClientOnly, setErrorMessage, setServerCondition, setServerOnly, setStopIfFalse
 
Methods inherited from class com.smartgwt.client.core.DataClass
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute
 
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

IsIntegerValidator

public IsIntegerValidator()
Method Detail

setConvertToInteger

public void setConvertToInteger(boolean convertToInteger)
Set the convertToInteger.

Parameters:
convertToInteger - the convertToInteger

getConvertToInteger

public boolean getConvertToInteger()
Return the convertToInteger.

Returns:
the convertToInteger