Пример #1
0
 public function addChild(\blaze\web\component\UIComponent $child)
 {
     if (!$this->useMap && $child instanceof Area) {
         $this->useMap = true;
     }
     return parent::addChild($child);
 }
Пример #2
0
 public function addChild(\blaze\web\component\UIComponent $child)
 {
     if ($this->header == null && $child instanceof DataTableHeader) {
         return $this->header = $child->setParent($this);
     } else {
         if ($this->footer == null && $child instanceof DataTableFooter) {
             return $this->footer = $child->setParent($this);
         } else {
             return parent::addChild($child);
         }
     }
 }
Пример #3
0
 public function addChild(\blaze\web\component\UIComponent $child)
 {
     return parent::addChild($child);
     //        if($child instanceof DataListRow){
     //            $this->rows[] = $child;
     //            return $this;
     //        }else{
     //            // Not possible because of XSD
     //            //return parent::addChild($child);
     //            throw new \blaze\lang\IllegalArgumentException();
     //        }
 }
Пример #4
0
 public function queueEvent(\blaze\web\event\BlazeEvent $event)
 {
     if ($event != null && $event instanceof \blaze\web\event\ActionEvent) {
         if ($this->getImmediate()) {
             $event->setPhaseId(\blaze\web\event\PhaseId::APPLY_REQUEST);
         } else {
             $event->setPhaseId(\blaze\web\event\PhaseId::INVOKE_APPLICATION);
         }
     }
     parent::queueEvent($event);
 }
Пример #5
0
 public function getClientId(\blaze\web\application\BlazeContext $context)
 {
     $clientId = parent::getClientId($context);
     if ($this->columnId == -1) {
         return $clientId;
     } else {
         return $clientId . self::CONTAINER_SEPARATOR . $this->columnId;
     }
 }
Пример #6
0
 public function processRender(\blaze\web\application\BlazeContext $context)
 {
     parent::processRender($context);
     $this->submitted = false;
 }