Exemple #1
0
 public function addControl($control)
 {
     if ($control instanceof MBaseGroup) {
         $div = new MContainerControl('accordion_' . $control->getId());
         $div->addControl($control);
         $div->property->title = $control->getCaption();
         parent::addControl($div);
     }
 }
Exemple #2
0
 public function init($id = '', $content = '', $class = '', $attributes = array())
 {
     parent::init($id);
     $this->setAttributes($attributes);
     $this->setInner($content);
     $this->setClass($class);
 }
Exemple #3
0
 public function init($id = '', $controls = array(), $disposition = MContainer::DISPOSITION_VERTICAL, $labelMode = MFieldLabel::LABEL_ABOVE, $showLabel = true)
 {
     parent::init($id);
     $this->setLabelMode($labelMode);
     $this->setShowLabel($showLabel);
     $this->setDisposition($disposition);
     $this->setControls($controls);
 }
 public function generateInner()
 {
     parent::generateInner();
     if ($this->property->subscribe) {
         $this->page->onLoad("dojo.subscribe('{$this->property->subscribe}',function(id) {manager.byId('{$this->getId()}').selectChild('stack_'+id);} );");
     }
     $this->page->addDojoRequire('dijit.layout.StackContainer');
     $this->setDojoType("dijit.layout.StackContainer");
 }
Exemple #5
0
 public function __set($name, $value)
 {
     $property = strtolower($name);
     if ($property == 'colspan') {
         $this->setAttribute('colspan', $value);
     } else {
         parent::__set($name, $value);
     }
 }
Exemple #6
0
 public function onCreate()
 {
     parent::onCreate();
     $this->useStore = false;
 }
 public function onCreate()
 {
     parent::onCreate();
     $this->setText('OptionGroup');
     $this->setRender('optiongroup');
 }
Exemple #8
0
 public function onCreate()
 {
     parent::onCreate();
     $this->setRender('box');
 }
Exemple #9
0
 public function onCreate()
 {
     parent::onCreate();
     $this->setClass('mTable');
     $this->setRender('table');
 }
Exemple #10
0
 public function __set($name, $value)
 {
     $property = strtolower($name);
     //mtrace('mgrid property = ' . $name . ' value = ' . $value);
     if (!$value) {
         return;
     }
     if ($property == 'actionupdate') {
         $this->addActionUpdate($value);
     } elseif ($property == 'actiondelete') {
         $this->addActionDelete($value);
     } elseif ($property == 'actiontext') {
         $this->addActionText('', $value);
     } elseif ($property == 'actionicon') {
         $this->addActionIcon('', $value);
     } elseif ($property == 'actionselect') {
         $this->addActionSelect($value);
     } else {
         parent::__set($name, $value);
     }
 }
Exemple #11
0
 public function onCreate()
 {
     parent::onCreate();
     $this->showValues = false;
     $this->type = 'filter';
 }
Exemple #12
0
 public function onCreate()
 {
     parent::onCreate();
     $this->setRender('contentpane');
 }