/**
  * Cria um componente Option e agrega ao Select
  *
  * @param text $label            
  * @param text $value            
  * @param boolean $selected            
  */
 public function createOption($label, $value, $selected = false)
 {
     $option = new SimpleTag("option", $label);
     $decorator = new HtmlTagDecorator($option);
     $decorator->appendValue($value);
     if ($selected === true) {
         $decorator->appendSelected();
     }
     $this->appendOption($decorator);
     return $this;
 }
 /**
  * Gera um componente HTML <b>input</b> do tipo <b>submit</b>.
  *
  * @return HtmlTagDecorator
  */
 public static function getSubmit()
 {
     $component = new EmptyTag("input");
     $decorator = new HtmlTagDecorator($component);
     $decorator->appendType("submit");
     return $decorator;
 }