private function getTitle() { $div = new HTMLDiv('WindowTitle'); $div->setAttribute('class', 'ui-widget-header'); $div->setStyle('position', 'relative'); $div->setStyle('top', 0); $div->setStyle('text-align', $this->titleAlign); $div->setStyle('padding', '5px'); $span = new HTMLSpan($this->title); $div->appendChild($span); $div->appendChild($this->closeIcon); $div->setAttribute(IMouseEvent::DOWN, "\$('#{$this->windowId}').draggable();"); return $div->getOutput(); }
/** * Retorna um DIV com as mensagem de erros formatadas dentro de tags Paragraph * @return type */ public function htmlFormatted() { if ($this->count()) { $div = new HTMLDiv('div_errors'); for ($index = 0; $index < $this->count(); $index++) { $p = new HTMLParagraph($this->obj->offsetGet($index)); if ($index < $this->count() - 1) { $p->appendText(';'); } else { $p->appendText('.'); } $div->appendChild($p); } return $div->getOutput(); } else { return 'Falha desconhecida no processamento da requisição'; } }
public function getOutput() { parent::appendChild($this->getTitle()); parent::appendChild($this->panel); if ($this->footer->hasChildren()) { parent::appendChild($this->footer); } return parent::getOutput(); }