rem:  var selection = this.component.getProperty("selection"); if (selection) { for (var i = 0; i < selection.length; ++i) { if (selection[i] >= 0 && selection[i] < this._selectElement.options.length) { this._selectElement.options[selection[i]].selected = "selected"; } } } 
add: this._renderSelection(false); 
context:     _renderMain: function(update, parentElement, size) {        this._selectElement = document.createElement("select");        this._selectElement.size = size;        if (this.component.getProperty("selectionMode") == EchoApp.ListBox.MULTIPLE_SELECTION) {            this._selectElement.multiple = "multiple";        }                EchoAppRender.Border.render(this.component.getRenderProperty("border"), this._selectElement);        EchoAppRender.Color.renderFB(this.component, this._selectElement);        EchoAppRender.Font.renderComponentProperty(this.component, "font", null, this._selectElement);        EchoAppRender.Insets.renderComponentProperty(this.component, "insets", null, this._selectElement, "padding");            if (this.component.items) {            for (var i = 0; i < this.component.items.length; ++i) {                var optionElement = document.createElement("option");                optionElement.appendChild(document.createTextNode(this.component.items[i].toString()));                if (this.component.items[i].foreground) {                    EchoAppRender.Color.render(this.component.items[i].foreground, optionElement, "color");                }                if (this.component.items[i].background) {                    EchoAppRender.Color.render(this.component.items[i].background, optionElement, "backgroundColor");                }                if (this.component.items[i].font) {                    EchoAppRender.Font.render(this.component.items[i].font, optionElement);                }                this._selectElement.appendChild(optionElement);            }        }                // Set selection.        var selection = this.component.getProperty("selection");        if (selection) {            for (var i = 0; i < selection.length; ++i) {                if (selection[i] >= 0 && selection[i] < this._selectElement.options.length) {                    this._selectElement.options[selection[i]].selected = "selected";                }            }        }                WebCore.EventProcessor.add(this._selectElement, "change", new Core.MethodRef(this, this._processChange), false);                parentElement.appendChild(this._selectElement);    },
meta: 600	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/600/58eb1cc97057d7ec26fa4e1140fe8eb05fb2837a/Render.List.js/clean/src/webcontainer/java/nextapp/echo/webcontainer/resource/js/Render.List.js