/** * @see View::createUserInterface() */ protected function createUserInterface() { $resourceBundle = Application::getInstance()->getBundle(); //Definição do título da página principal da aplicação $this->setTitle($resourceBundle->getString('MAIN_TITLE')); //Carregamento da folha de estilo principal da aplicação $this->addStyle('/css/application.css'); //Painel principal $this->applicationPanel = $this->addChild(new Panel()); $this->applicationPanel->setId('application'); $topPanel = $this->applicationPanel->addChild(new Panel()); $topPanel->setId('top'); //Título da aplicação $topPanel->addChild(new Heading())->addChild(new Anchor('/'))->addChild(new Text($resourceBundle->getString('SHORT_TITLE'))); //Criação do menu da aplicação $this->applicationMenu = $topPanel->addChild(new Menu()); foreach ($resourceBundle->getResource('MENU') as $resourceItem) { $this->applicationMenu->addItem($resourceItem->getValue(), $resourceItem->getIterator()->current()->getValue()); } //Painel de conteúdo $this->contentPanel = $this->applicationPanel->addChild(new Panel()); $this->contentPanel->setId('content'); }