protected function compute_options(array &$field_options)
 {
     foreach ($field_options as $attribute => $value) {
         $attribute = strtolower($attribute);
         switch ($attribute) {
             case 'vertical':
                 $this->vertical = (bool) $value;
                 unset($field_options['vertical']);
                 break;
         }
     }
     parent::compute_options($field_options);
 }
 /**
  * @desc Constructs a FormFieldDecimalNumberEditor.
  * @param string $id Field identifier
  * @param string $label Field label
  * @param string $value Default value
  * @param string[] $field_options Map containing the options
  * @param FormFieldConstraint[] $constraints The constraints checked during the validation
  */
 public function __construct($id, $label, $value, $field_options = array(), array $constraints = array())
 {
     $this->pattern = '`^[0-9]+([\\.|,][0-9]{1,2})?$`i';
     parent::__construct($id, $label, $value, $field_options, $constraints);
     $this->set_css_form_field_class('form-field-decimal');
 }