Name

datevalidator

Synopsis

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

Superclass Chain

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

Known Subclasses

Details

Properties (6)

format
<attribute name="format" type="string" value="mm/dd/yyyy" />
public var format : String;
invaliddateErrorstring
<attribute name="invaliddateErrorstring" type="string" value="Please enter a valid date." />
public var invaliddateErrorstring : String;
invalidformatErrorstring
<attribute name="invalidformatErrorstring" type="string" value="Please input the date in a valid format." />
public var invalidformatErrorstring : String;
invalidmonthErrorstring
<attribute name="invalidmonthErrorstring" type="string" value="Please enter a month between 1 and 12." />
public var invalidmonthErrorstring : String;
invalidyearErrorstring
<attribute name="invalidyearErrorstring" type="string" value="Please enter a year between 0 and 9999." />
public var invalidyearErrorstring : String;
trim
<attribute name="trim" type="boolean" value="true" />
public var trim : Boolean;

Methods (11)

doValidation()
<method name="doValidation" args="val" />
public function doValidation(val);
getDate()
<method name="getDate" args="value" />
public function getDate(value);
getlastdate()
<method name="getlastdate" args="value" />
public function getlastdate(value);
getlastdayofFeb()
<method name="getlastdayofFeb" args="value" />
public function getlastdayofFeb(value);
getMonth()
<method name="getMonth" args="value" />
public function getMonth(value);
getYear()
<method name="getYear" args="value" />
public function getYear(value);
isInt()
<method name="isInt" args="value" />
public function isInt(value);
isValidDate()
<method name="isValidDate" args="value" />
public function isValidDate(value);
isValidLength()
<method name="isValidLength" args="value" />
public function isValidLength(value);
isValidMonth()
<method name="isValidMonth" args="value" />
public function isValidMonth(value);
isValidYear()
<method name="isValidYear" args="value" />
public function isValidYear(value);

LZX Synopsis

<class name="datevalidator" extends=" basevalidator ">
  <attribute name=" format " type="string" value="mm/dd/yyyy" />
  <attribute name=" invaliddateErrorstring " type="string" value="Please enter a valid date." />
  <attribute name=" invalidformatErrorstring " type="string" value="Please input the date in a valid format." />
  <attribute name=" invalidmonthErrorstring " type="string" value="Please enter a month between 1 and 12." />
  <attribute name=" invalidyearErrorstring " type="string" value="Please enter a year between 0 and 9999." />
  <attribute name=" trim " type="boolean" value="true" />
  <method name=" doValidation " args="val" />
  <method name=" getDate " args="value" />
  <method name=" getlastdate " args="value" />
  <method name=" getlastdayofFeb " args="value" />
  <method name=" getMonth " args="value" />
  <method name=" getYear " args="value" />
  <method name=" isInt " args="value" />
  <method name=" isValidDate " args="value" />
  <method name=" isValidLength " args="value" />
  <method name=" isValidMonth " args="value" />
  <method name=" isValidYear " args="value" />
</class>

JavaScript Synopsis

public datevalidator extends  basevalidator  {
  public var format  : String;
  public var invaliddateErrorstring  : String;
  public var invalidformatErrorstring  : String;
  public var invalidmonthErrorstring  : String;
  public var invalidyearErrorstring  : String;
  public var trim  : Boolean;
  prototype public function doValidation (val);
  prototype public function getDate (value);
  prototype public function getlastdate (value);
  prototype public function getlastdayofFeb (value);
  prototype public function getMonth (value);
  prototype public function getYear (value);
  prototype public function isInt (value);
  prototype public function isValidDate (value);
  prototype public function isValidLength (value);
  prototype public function isValidMonth (value);
  prototype public function isValidYear (value);
}