Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class ButtonResetBox extends ButtonBox {
4
  function ButtonResetBox($text) {
5
    $this->ButtonBox($text);
6
  }
7
 
8
  function &create(&$root, &$pipeline) {
9
    if ($root->has_attribute("value")) {
10
      $text = $root->get_attribute("value");
11
    } else {
12
      $text = DEFAULT_RESET_TEXT;
13
    };
14
 
15
    $box =& new ButtonResetBox($text);
16
    $box->readCSS($pipeline->get_current_css_state());
17
 
18
    return $box;
19
  }
20
 
21
  function readCSS(&$state) {
22
    parent::readCSS($state);
23
 
24
    $this->_readCSS($state,
25
                    array(CSS_HTML2PS_FORM_ACTION));
26
  }
27
 
28
  function _render_field(&$driver) {
29
    $driver->field_pushbuttonreset($this->get_left_padding(),
30
                                   $this->get_top_padding(),
31
                                   $this->get_width() + $this->get_padding_left() + $this->get_padding_right(),
32
                                   $this->get_height() + $this->get_padding_top() + $this->get_padding_bottom());
33
  }
34
}
35
 
36
?>