protected function onConstruct() { parent::onConstruct(); $this->setTitle('Statistics'); $this->tabbedPane = new TabbedPane(); $this->tabbedPane->setPosition(1, -15); $this->tabbedPane->addTab(self::$overviewTab); $this->tabbedPane->addTab(self::$cpuGraphTab); $this->tabbedPane->addTab(self::$memoryTab); $this->tabbedPane->addTab(self::$networkGraphTab); $this->tabbedPane->addTab(self::$pluginsTab); $this->addComponent($this->tabbedPane); }
protected function onConstruct() { parent::onConstruct(); $this->setTitle('Plugin Manager'); $this->setMaximizable(); $this->pager = new Pager(); $this->pager->setPosition(2, -16); $this->pager->setStretchContentX(true); $this->addComponent($this->pager); foreach (self::$plugins as $plugin) { $this->pager->addItem($plugin); } }
protected function onConstruct() { parent::onConstruct(); $this->setSize(count(self::$modes) * 20 + 2, 36); $this->setTitle('Choose Game Mode'); // create layout for buttons ... $this->buttonsFrame = new Frame(1, -15, new Line()); $this->addComponent($this->buttonsFrame); foreach (self::$modes as $mode => $modeInfo) { $button = new ButtonMode($modeInfo[0], $modeInfo[1]); $button->setAction($this->createAction(array($this, 'onClickMode'), $mode)); $this->buttons[$mode] = $button; $this->buttonsFrame->addComponent($button); } }