public static function set(\FormHandler\FormHandler $form, $title, $name, $validator = null)
 {
     $field = parent::set($form, $title, $name);
     $field->setValidator(FormHandler::parseValidator($validator, $field));
     return $field;
 }
 /**
  * FormHandler::listField()
  *
  * Create a listField on the form
  *
  * @param string $title The title of the field
  * @param string $name The name of the field
  * @param array $options The options used for the field
  * @param string $validator The validator which should be used to validate the value of the field
  * @param string $useArrayKeyAsValue The title used above the ON section of the field
  * @param string $onTitle The title used above the OFF section of the field
  * @param boolean $offTitle If the array key's are the values for the options in the field
  * @param int $size The size of the field (how many options are displayed)
  * @param string $extra CSS, Javascript or other which are inserted into the HTML tag
  * @param string $verticalMode Verticalmode
  * @return \FormHandler\Field\SelectList
  * @author Teye Heimans
  * @deprecated Use \FormHandler\Field\SelectList::set() instead
  */
 public function listField($title, $name, $options, $validator = null, $useArrayKeyAsValue = null, $onTitle = null, $offTitle = null, $size = null, $extra = null, $verticalMode = null)
 {
     $field = \FormHandler\Field\SelectList::set($this, $title, $name);
     return $field->setValidator(self::parseValidator($validator, $field))->setOptions($options)->useArrayKeyAsValue($useArrayKeyAsValue)->setSize($size)->setExtra($extra)->setOnTitle($onTitle)->setOffTitle($offTitle)->setVerticalMode($verticalMode);
 }