示例#1
0
文件: Button.php 项目: pablius/oob-n1
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.Button", "button");
     $validProps = array("clickEvent", "disabled", "enableToogle", "handleMouseEvents", "handler", "hidden", "icon", "iconCls", "menu", "menuAlign", "minWidth", "name", "pressed", "repeat", "scope", "tabIndex", "text", "toogleGroup", "tooltip", "tooltipType", "type");
     $this->addValidConfigProperties($validProps);
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.BoxComponent", "box");
     $validProps = array("autoHeight", "autoWidth", "height", "width");
     $this->addValidConfigProperties($validProps);
 }
示例#3
0
文件: Editor.php 项目: pablius/oob-n1
 /**
  * @param PhpExt_Form_Field $field A {@link PhpExt_Form_Field} object (or descendant) to use as editor
  */
 public function __construct($field)
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.Editor", "editor");
     $validProps = array("alignment", "autoSize", "cancelOnEsc", "completeOnEnter", "contrain", "hideEl", "ignoreNoChange", "revertInvalid", "shadow", "swallowKeys", "updateEl", "value");
     $this->addValidConfigProperties($validProps);
     $this->_field = $field;
 }
示例#4
0
 protected function getConfigParams($lazy = false)
 {
     $params = parent::getConfigParams($lazy);
     // Items
     if ($this->_items->getCount() > 0) {
         $params[] = "menu: { items: " . $this->_items->getJavascript() . "}";
     }
     return $params;
 }
示例#5
0
 /**
  * Adds a PhpExt_Component to the Collection
  *
  * @param PhpExt_Component $object
  * @param string $name
  * @return int the index of the new element
  */
 public function add(PhpExt_Component $object, $name = null)
 {
     $object->setOwnerCollection($this);
     return $this->addObject($object, $name);
 }