rem: 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); } }   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: 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); 
context: EchoAppRender.ListComponentSync.prototype._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";            }        }    }        EchoWebCore.EventProcessor.add(this._selectElement, "change", new EchoCore.MethodRef(this, this._processChange), false);        parentElement.appendChild(this._selectElement);};
meta: 600	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/600/4705113f80e2c9e4d43ad240349e3193f4caf648/Render.List.js/buggy/src/webcontainer/java/nextapp/echo/webcontainer/resource/js/Render.List.js