Displays this select list
978212
public function display()
    {
        $options = $this->getOptions();

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

        SwatWidget::display();

        $this->getForm()->addHiddenField($this->id . '_submitted', 1);

        $select_tag = new SwatHtmlTag('select');
        $select_tag->id = $this->id;
        $select_tag->name = $this->id . '[]';
        $select_tag->class = 'swat-select-list';
        $select_tag->multiple = 'multiple';
        $select_tag->size = $this->size;
        $select_tag->open();

        foreach ($options as $key => $option) {
            $option_tag = new SwatHtmlTag('option');
            $option_tag->value = (string) $option->value;
            $option_tag->id = $this->id . '_' . $key . '_' . $option_tag->value;
            $option_tag->selected = null;
            if (in_array($option->value, $this->values)) {
                $option_tag->selected = 'selected';
            }

            $option_tag->setContent($option->title, $option->content_type);
            $option_tag->display();
        }

        $select_tag->close();
    }
761066
private function clientRenderList()
    {
        if ($this->settings['useGroups'])
        {
            $view = new Gallery_ClientGroupedListView();
        }
        else
        {
            $view = new Gallery_ClientListView();
        }

        $html = $view->render();
        return $html;
    }
239466
private function showlist()
     {
        $this->getMessage('help');

        foreach ($this->options as $opt) {
            echo "\n";
            echo "\t \t \t", $this->log(" ".$opt['name']." => ".$opt['description']." ", 'success');
            echo "\n";
        }
     }
1111857
public void show() {
        setListSelection(comboBox.getSelectedIndex());

        Point location = getPopupLocation();

        show(comboBox, location.x, location.y);

        // For some reason, this is needed to clear the old selection being
        // displayed. Calling list.clearSelection() doesn't cut it.
        list.repaint();
    }
170436
public function display()
    {
        if (!$this->visible || count($this->view->model) < 2) {
            return;
        }

        parent::display();

        $this->createEmbeddedWidgets();

        $columns = $this->view->getVisibleColumns();

        $tr_tag = new SwatHtmlTag('tr');
        $tr_tag->id = $this->id;
        $tr_tag->class = $this->getCSSClassString();
        $tr_tag->open();

        // find checkbox column position
        $position = 0;
        foreach ($columns as $column) {
            if ($column === $this->column) {
                break;
            } else {
                $position++;
            }
        }

        if ($position > 0) {
            $td_before_tag = new SwatHtmlTag('td');
            $td_before_tag->setContent('&nbsp;', 'text/xml');
            if ($position > 1) {
                $td_before_tag->colspan = $position;
            }

            $td_before_tag->display();
        }

        $td_tag = new SwatHtmlTag('td');
        if (count($columns) - $position > 1) {
            $td_tag->colspan = count($columns) - $position;
        }

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

        $this->check_all->extended_count = $this->extended_count;
        $this->check_all->visible_count = $this->visible_count;
        $this->check_all->unit = $this->unit;
        $this->check_all->tab_index = $this->tab_index;
        $this->check_all->display();

        $td_tag->close();

        $tr_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());
    }
1138929
@Override
    public void onListItemSelected(CharSequence value, int number, int requestCode) {
        if (requestCode == REQUEST_LIST_SIMPLE || requestCode == REQUEST_LIST_SINGLE) {
            Toast.makeText(c, "Selected: " + value, Toast.LENGTH_SHORT).show();
        }
    }
1234282
private function displayLogic()
    {
        if (class_exists('DisplayLogicFormField') && count($this->type_array) > 1) {
            $this->field_list['Root.Main'][5]->hideUnless('Type')->isEqualTo('external');
            $this->field_list['Root.Main'][6]->hideUnless('Type')->isEqualTo('news');
            $this->field_list['Root.Main'][7]->hideUnless('Type')->isEqualTo('download');
        }
    }
537208
def list_view_on_selected(self, widget, selected_item_key):
        
        self.lbl.set_text('List selection: ' + self.listView.children[selected_item_key].get_text())
372464
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $this->getForm()->addHiddenField($this->id . '_submitted', 1);

        $input_tag = new SwatHtmlTag('input');
        $input_tag->type = 'checkbox';
        $input_tag->class = $this->getCSSClassString();
        $input_tag->name = $this->id;
        $input_tag->id = $this->id;
        $input_tag->value = '1';
        $input_tag->accesskey = $this->access_key;
        $input_tag->tabindex = $this->tab_index;

        if ($this->value) {
            $input_tag->checked = 'checked';
        }

        if (!$this->isSensitive()) {
            $input_tag->disabled = 'disabled';
        }

        echo '<span class="swat-checkbox-wrapper">';
        $input_tag->display();
        echo '<span class="swat-checkbox-shim"></span>';
        echo '</span>';
    }
709675
public function render()
    {
        parent::render();

        $soxId = $this->getEditObjectId();
        $sSLViewName = getViewName('oxselectlist');

        // all selectlists
        $oAllSel = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
        $oAllSel->init("oxselectlist");
        $sQ = "select * from $sSLViewName";
        $oAllSel->selectString($sQ);
        $this->_aViewData["allsel"] = $oAllSel;

        $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $this->_aViewData["edit"] = $oArticle;

        if (isset($soxId) && $soxId != "-1") {
            // load object
            $oArticle->loadInLang($this->_iEditLang, $soxId);

            if ($oArticle->isDerived()) {
                $this->_aViewData['readonly'] = true;
            }

            $_POST["language"] = $_GET["language"] = $this->_iEditLang;
            $oVariants = $oArticle->getAdminVariants($this->_iEditLang);

            $this->_aViewData["mylist"] = $oVariants;

            // load object in other languages
            $oOtherLang = $oArticle->getAvailableInLangs();
            if (!isset($oOtherLang[$this->_iEditLang])) {
                // echo "language entry doesn't exist! using: ".key($oOtherLang);
                $oArticle->loadInLang(key($oOtherLang), $soxId);
            }

            foreach ($oOtherLang as $id => $language) {
                $oLang = new stdClass();
                $oLang->sLangDesc = $language;
                $oLang->selected = ($id == $this->_iEditLang);
                $this->_aViewData["otherlang"][$id] = clone $oLang;
            }

            if ($oArticle->oxarticles__oxparentid->value) {
                $this->_aViewData["parentarticle"] = $this->_getProductParent($oArticle->oxarticles__oxparentid->value);
                $this->_aViewData["oxparentid"] = $oArticle->oxarticles__oxparentid->value;
                $this->_aViewData["issubvariant"] = 1;
                // A. disable variant information editing for variant
                $this->_aViewData["readonly"] = 1;
            }
            $this->_aViewData["editlanguage"] = $this->_iEditLang;

            $aLang = array_diff(\OxidEsales\Eshop\Core\Registry::getLang()->getLanguageNames(), $oOtherLang);
            if (count($aLang)) {
                $this->_aViewData["posslang"] = $aLang;
            }

            foreach ($oOtherLang as $id => $language) {
                $oLang = new stdClass();
                $oLang->sLangDesc = $language;
                $oLang->selected = ($id == $this->_iEditLang);
                $this->_aViewData["otherlang"][$id] = $oLang;
            }
        }

        return "article_variant.tpl";
    }
616402
def view_list(self):
        ''''''
        done = set()
        ret = []
        while len(done) != self.count():
            p = self.view_indexes(done)
            if len(p) > 0:
                ret.append(p)
        return ret
386584
function ( options ) {
                _.bindAll( this, "selectNext", "selectPrev", "onSelect", "render" );
                this.collection = options.collection;
                this.listenTo( this.collection, "select:one", this.onSelect );
                this.listenTo( this.collection, "remove", this.render );
                this.render();
            }
166423
function() {
            $('option', this.$select).each($.proxy(function(index, element) {
                var $input = $('li input', this.$ul).filter(function() {
                    return $(this).val() === $(element).val();
                });

                if ($(element).is(':selected')) {
                    $input.prop('checked', true);

                    if (this.options.selectedClass) {
                        $input.parents('li')
                            .addClass(this.options.selectedClass);
                    }
                }
                else {
                    $input.prop('checked', false);

                    if (this.options.selectedClass) {
                        $input.parents('li')
                            .removeClass(this.options.selectedClass);
                    }
                }

                if ($(element).is(":disabled")) {
                    $input.attr('disabled', 'disabled')
                        .prop('disabled', true)
                        .parents('li')
                        .addClass('disabled');
                }
                else {
                    $input.prop('disabled', false)
                        .parents('li')
                        .removeClass('disabled');
                }
            }, this));

            this.updateButtonText();
            this.updateSelectAll();
        }
346727
protected void showElements() {
        view.clear(); 
        for (final Entry entry : entries) {
            final boolean selected = this.value == null || entry.getValue().equals(this.value);
            view.add(entry.getUri(), this.imageWidth, this.imageHeight, entry.getHeading(), entry.getText(), selected, () -> {
                ImageListEditor.this.setValue(entry.getValue(), true);
            });
         }
    }
254915
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        $fieldset_tag = new SwatHtmlTag('fieldset');
        $fieldset_tag->id = $this->id;
        $fieldset_tag->class = $this->getCSSClassString();
        $fieldset_tag->open();

        if ($this->title !== null) {
            $legend_tag = new SwatHtmlTag('legend');

            if ($this->access_key != '') {
                $legend_tag->accesskey = $this->access_key;
            }

            $legend_tag->setContent($this->title, $this->title_content_type);
            $legend_tag->display();
        }

        $this->displayChildren();

        Swat::displayInlineJavaScript($this->getInlineJavascript());

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

        parent::display();

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

        // toggle button content is displayed with JavaScript

        if ($this->valid_range_start === null) {
            $today = new SwatDate();
            $value = $today->formatLikeIntl('MM/dd/yyyy');
        } else {
            $value = $this->valid_range_start->formatLikeIntl('MM/dd/yyyy');
        }

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

        $container_div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }