/** * Shows the widget at the screen */ public function show() { // define the font style $this->style->font_family = $this->fontFace; $this->style->color = $this->fontColor; $this->style->font_size = $this->fontSize . 'pt'; $this->style->_moz_user_select = 'none'; $this->style->_webkit_user_select = 'none'; $this->style->user_select = 'none'; // detect a previously loaded style if ($loadedstyle = TStyle::findStyle($this->style)) { $this->tag->{'class'} = $loadedstyle; } else { $this->style->show(); } if ($this->fontStyle) { $pieces = explode(',', $this->fontStyle); if ($pieces) { $value = $this->value; foreach ($pieces as $piece) { $value = "<{$piece}>{$value}</{$piece}>"; } } // add content to the tag $this->tag->add($value); } else { // add content to the tag $this->tag->add($this->value); } // show the tag $this->tag->show(); }