Name

numbervalidator

Synopsis

LZX: numbervalidator
JavaScript: numbervalidator
Type: Class
Access: public
Topic: Incubator.Validators
Declared in: lps/components/incubator/validators/numbervalidator.lzx

Superclass Chain

node (LzNode) » view (LzView) » basevalidator » numbervalidator

Known Subclasses

Details

Properties (8)

domain
<attribute name="domain" type="string" value="real" />
public var domain : String;
maxvalue
<attribute name="maxvalue" type="number" value="null" />
public var maxvalue : Number;
minvalue
<attribute name="minvalue" type="number" value="null" />
public var minvalue : Number;
notintErrorstring
<attribute name="notintErrorstring" type="string" value="Enter integer value." />
public var notintErrorstring : String;
notnumberErrorstring
<attribute name="notnumberErrorstring" type="string" value="This field contains invalid characters." />
public var notnumberErrorstring : String;
toobigErrorstring
<attribute name="toobigErrorstring" type="string" value="This number is too large." />
public var toobigErrorstring : String;
toosmallErrorstring
<attribute name="toosmallErrorstring" type="string" value="This number is too small." />
public var toosmallErrorstring : String;
trim
<attribute name="trim" type="boolean" value="true" />
public var trim : Boolean;

Methods (3)

doValidation()
<method name="doValidation" args="val" />
public function doValidation(val);
isInt()
<method name="isInt" args="value" />
public function isInt(value);
isValidNumber()
<method name="isValidNumber" args="value" />
public function isValidNumber(value);

LZX Synopsis

<class name="numbervalidator" extends=" basevalidator ">
  <attribute name=" domain " type="string" value="real" />
  <attribute name=" maxvalue " type="number" value="null" />
  <attribute name=" minvalue " type="number" value="null" />
  <attribute name=" notintErrorstring " type="string" value="Enter integer value." />
  <attribute name=" notnumberErrorstring " type="string" value="This field contains invalid characters." />
  <attribute name=" toobigErrorstring " type="string" value="This number is too large." />
  <attribute name=" toosmallErrorstring " type="string" value="This number is too small." />
  <attribute name=" trim " type="boolean" value="true" />
  <method name=" doValidation " args="val" />
  <method name=" isInt " args="value" />
  <method name=" isValidNumber " args="value" />
</class>

JavaScript Synopsis

public numbervalidator extends  basevalidator  {
  public var domain  : String;
  public var maxvalue  : Number;
  public var minvalue  : Number;
  public var notintErrorstring  : String;
  public var notnumberErrorstring  : String;
  public var toobigErrorstring  : String;
  public var toosmallErrorstring  : String;
  public var trim  : Boolean;
  prototype public function doValidation (val);
  prototype public function isInt (value);
  prototype public function isValidNumber (value);
}