Displays this rating control
962803
public function display()
    {
        parent::display();

        if (!$this->visible) {
            return;
        }

        $flydown = $this->getCompositeWidget('flydown');
        $flydown->value = (string) $this->value;

        $div = new SwatHtmlTag('div');
        $div->id = $this->id;
        $div->class = $this->getCSSClassString();
        if (!$this->isSensitive()) {
            $div->class .= ' swat-insensitive';
        }
        $div->open();
        $flydown->display();
        $div->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
1257683
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        $outer_div = new SwatHtmlTag('div');
        $outer_div->id = $this->id;
        $outer_div->class = $this->getCSSClassString();

        $outer_div->open();
        $this->displayTitle();
        $this->displayContent();
        $outer_div->close();
    }
252550
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $ordered_options = $this->getOrderedOptions();

        $div_tag = new SwatHtmlTag('div');
        $div_tag->id = $this->id;
        $div_tag->class = $this->getCSSClassString();
        $div_tag->open();

        $list_div = new SwatHtmlTag('div');
        $list_div->style = "width: {$this->width}; height: {$this->height};";
        $list_div->id = "{$this->id}_list";
        $list_div->class = 'swat-change-order-list';
        $list_div->open();

        $option_div = new SwatHtmltag('div');
        $option_div->class = 'swat-change-order-item';

        foreach ($ordered_options as $option) {
            $title = $option->title === null ? '' : $option->title;
            $option_div->setContent($title, $option->content_type);
            $option_div->display();
        }

        $list_div->close();

        $this->displayButtons();

        echo '<div class="swat-clear"></div>';

        $values = array();
        foreach ($ordered_options as $option) {
            $values[] = SwatString::signedSerialize(
                $option->value,
                $this->getForm()->getSalt()
            );
        }

        $hidden_tag = new SwatHtmlTag('input');
        $hidden_tag->type = 'hidden';
        $hidden_tag->id = $this->id . '_value';
        $hidden_tag->name = $this->id;
        $hidden_tag->value = implode(',', $values);
        $hidden_tag->display();

        $hidden_items_tag = new SwatHtmlTag('input');
        $hidden_items_tag->type = 'hidden';
        $hidden_items_tag->id = $this->id . '_dynamic_items';
        $hidden_items_tag->value = '';
        $hidden_items_tag->display();

        $div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
634205
def show(self, display=None):
        
        self._stable = False
        if not display:
            self.attrs["style"].pop("display")
        else:
            self.attrs["style"]["display"] = display
        return self
346951
def markWatched(self):
        
        key = '/:/scrobble?key=%s&identifier=com.plexapp.plugins.library' % self.ratingKey
        self._server.query(key)
        self.reload()
160134
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $count = count($this);
        $i = 1;

        $container_tag = $this->getContainerTag();
        $container_tag->open();

        foreach ($this->entries as $entry) {
            // display separator
            if ($i > 1) {
                echo SwatString::minimizeEntities($this->separator);
            }

            // link all entries or link all but the last entry
            $link = $this->link_last_entry || $i < $count;

            $this->displayEntry($entry, $link, $i === 1);

            $i++;
        }

        $container_tag->close();
    }
380437
public function cmdGetReview()
    {
        $result = $this->getListReview();
        $this->outputFormat($result);
        $this->outputFormatTableReview($result);
        $this->output();
    }
103860
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        $div = new SwatHtmlTag('div');
        $div->id = $this->id;
        $div->class = $this->getCSSClassString();

        $div->open();
        $this->displayChildren();
        $div->close();
    }
22293
public void show() {

        addStyleName(I_CmsLayoutBundle.INSTANCE.attributeChoice().hovering());
        if (displayAbove()) {
            addStyleName(I_CmsLayoutBundle.INSTANCE.attributeChoice().displayAbove());
        } else {
            removeStyleName(I_CmsLayoutBundle.INSTANCE.attributeChoice().displayAbove());
        }
    }
285378
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $tag = $this->isSensitive()
            ? $this->getSensitiveTag()
            : $this->getInsensitiveTag();

        $tag->open();

        $icon_span = new SwatHtmlTag('span');

        if ($this->isSensitive()) {
            $icon_span->class = 'swat-tool-link-icon';
        } else {
            $icon_span->class =
                'swat-tool-link-icon swat-tool-link-icon-insensitive';
        }

        $icon_span->setContent('');

        $icon_span->display();

        $title_span = new SwatHtmlTag('span');
        $title_span->class = 'swat-tool-link-title';
        $title_span->setContent($this->title, $this->content_type);
        $title_span->display();

        $tag->close();
    }
1350953
public function display()
    {
        if (!$this->visible) {
            return;
        }

        if ($this->model === null) {
            return;
        }

        parent::display();

        if (
            count($this->model) === 0 &&
            $this->no_records_message !== null &&
            $this->show_check_all !== true
        ) {
            $div = new SwatHtmlTag('div');
            $div->class = 'swat-none';
            $div->setContent(
                $this->no_records_message,
                $this->no_records_message_type
            );

            $div->display();
            return;
        }

        $tile_view_tag = new SwatHtmlTag('div');
        $tile_view_tag->id = $this->id;
        $tile_view_tag->class = $this->getCSSClassString();
        $tile_view_tag->open();

        $this->displayTiles();

        if ($this->showCheckAll()) {
            $check_all = $this->getCompositeWidget('check_all');

            if ($this->check_all_title !== null) {
                $check_all->title = $this->check_all_title;
                $check_all->content_type = $this->check_all_content_type;
            }

            $check_all->extended_count = $this->check_all_extended_count;
            $check_all->visible_count = $this->check_all_visible_count;
            $check_all->unit = $this->check_all_unit;
            $check_all->display();
        }

        $clear_div_tag = new SwatHtmlTag('div');
        $clear_div_tag->class = 'swat-clear';
        $clear_div_tag->setContent('');
        $clear_div_tag->display();

        $tile_view_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
271519
protected function displayStatus()
    {
        $name = $this->getName();
        $description = $this->getDescription();
        $time = $this->timer->getTime($this);
        $event = $this->event ? $this->event->getName() : null;

        $this->explainer->display($name, $description, $event, $time);
    }
762413
public function display() {
        if (count($this->capabilities) > self::NUM_CAPS_FOR_SEARCH) {
            global $PAGE;
            $jsmodule = array(
                'name' => 'rolescapfilter',
                'fullpath' => '/admin/roles/module.js',
                'strings' => array(
                    array('filter', 'moodle'),
                    array('clear', 'moodle'),                ),
                'requires' => array('node', 'cookie', 'escape')
            );
            $PAGE->requires->js_init_call('M.core_role.init_cap_table_filter', array($this->id, $this->context->id), false,
                $jsmodule);
        }
        echo '<table class="' . implode(' ', $this->classes) . '" id="' . $this->id . '">' . "\n<thead>\n";
        echo '<tr><th class="name" align="left" scope="col">' . get_string('capability', 'core_role') . '</th>';
        $this->add_header_cells();
        echo "</tr>\n</thead>\n<tbody>\n";

        // Loop over capabilities.
        $contextlevel = 0;
        $component = '';
        foreach ($this->capabilities as $capability) {
            if ($this->skip_row($capability)) {
                continue;
            }

            // Prints a breaker if component or name or context level has changed.
            if (component_level_changed($capability, $component, $contextlevel)) {
                $this->print_heading_row($capability);
            }
            $contextlevel = $capability->contextlevel;
            $component = $capability->component;

            // Start the row.
            $rowattributes = $this->get_row_attributes($capability);
            // Handle class attributes same as other.
            $rowclasses = array_unique(array_merge(array('rolecap'), $this->get_row_classes($capability)));
            if (array_key_exists('class', $rowattributes)) {
                $rowclasses = array_unique(array_merge($rowclasses, array($rowattributes['class'])));
            }
            $rowattributes['class']  = implode(' ', $rowclasses);

            // Table cell for the capability name.
            $contents = '<th scope="row" class="name"><span class="cap-desc">' . get_capability_docs_link($capability) .
                '<span class="cap-name">' . $capability->name . '</span></span></th>';

            // Add the cells specific to this table.
            $contents .= $this->add_row_cells($capability);

            echo html_writer::tag('tr', $contents, $rowattributes);
        }

        // End of the table.
        echo "</tbody>\n</table>\n";
    }
572584
protected void displayResult() {

        if (m_thread.getMatchedResources().isEmpty()) {
            m_resultTable.setVisible(false);
            m_infoIntroLayout.setVisible(false);
            m_infoEmptyResult.setVisible(true);
        } else {
            m_resultTable.setVisible(true);
            m_infoIntroLayout.setVisible(false);
            m_infoEmptyResult.setVisible(false);
        }
        m_resultTable.fillTable(A_CmsUI.getCmsObject(), m_thread.getMatchedResources());
        m_searchForm.removeComponent(m_report);
        m_report = null;
    }
1247868
def _get_rating(self, entry):
        """"""
        r_info = ''
        for string in entry[2].strings:
            r_info += string
        rating, share = r_info.split('/')
        return (rating, share.strip('*'))
33035
public function display()
    {
        $options = $this->getOptions();

        if (!$this->visible || $options === null) {
            return;
        }

        SwatWidget::display();

        // add a hidden field so we can check if this list was submitted on
        // the process step
        $this->getForm()->addHiddenField($this->id . '_submitted', 1);

        if (count($options) === 1) {
            // get first and only element
            $this->displaySingle(current($options));
            return;
        }

        $ul_tag = new SwatHtmlTag('ul');
        $ul_tag->id = $this->id;
        $ul_tag->class = $this->getCSSClassString();
        $ul_tag->open();

        $li_tag = new SwatHtmlTag('li');
        $index = 0;

        foreach ($options as $option) {
            // add option-specific CSS classes from option metadata
            $classes = $this->getOptionMetadata($option, 'classes');
            if (is_array($classes)) {
                $li_tag->class = implode(' ', $classes);
            } elseif ($classes) {
                $li_tag->class = strval($classes);
            } else {
                $li_tag->removeAttribute('class');
            }

            $sensitive = $this->getOptionMetadata($option, 'sensitive');
            if ($sensitive === false || !$this->isSensitive()) {
                if ($li_tag->class === null) {
                    $li_tag->class = 'swat-insensitive';
                } else {
                    $li_tag->class .= ' swat-insensitive';
                }
            }

            if ($option instanceof SwatFlydownDivider) {
                if ($li_tag->class === null) {
                    $li_tag->class = 'swat-radio-list-divider-li';
                } else {
                    $li_tag->class .= ' swat-radio-list-divider-li';
                }
            }

            $li_tag->id = $this->id . '_li_' . (string) $index;
            $li_tag->open();

            if ($option instanceof SwatFlydownDivider) {
                $this->displayDivider($option, $index);
            } else {
                $this->displayOption($option, $index);
                $this->displayOptionLabel($option, $index);
            }

            $li_tag->close();
            $index++;
        }

        $ul_tag->close();
    }
904993
protected void revalidateSelection(int rating) {
        for (MaterialIcon icon : iconList) {
            icon.removeStyleName(AddinsCssName.MATERIAL_RATING_UNSELECTED);
            icon.removeStyleName(AddinsCssName.MATERIAL_RATING_SELECTED);
        }

        for (int i = 0; i < rating && i < iconList.size(); i++) {
            MaterialIcon icon = iconList.get(i);
            icon.setIconType(selectedRatingIcon);
            icon.addStyleName(AddinsCssName.MATERIAL_RATING_SELECTED);
        }

        for (int i = rating; i < iconList.size(); i++) {
            MaterialIcon icon = iconList.get(i);
            icon.setIconType(unselectedRatingIcon);
            icon.addStyleName(AddinsCssName.MATERIAL_RATING_UNSELECTED);
        }
    }