rem: EchoAppRender.ToggleButtonSync.prototype._renderContent = function() { var text = this.component.getRenderProperty("text"); var icon = this.component.getRenderProperty("icon"); this._stateElement = this._createStateElement();  var entityCount = (text ? 1 : 0) + (icon ? 1 : 0) + (this._stateElement ? 1 : 0); if (entityCount == 1) { if (text) { this._renderButtonText(this._divElement, text); } else if (icon) { this._iconElement = this._renderButtonIcon(this._divElement, icon); } else { this._divElement.appendChild(this._stateElement); } } else if (entityCount == 2) { var orientation = EchoAppRender.TriCellTable.TRAILING_LEADING;; var margin; if (this._stateElement) { margin = this.component.getRenderProperty("stateMargin", EchoAppRender.ButtonSync._defaultIconTextMargin); } else { margin = this.component.getRenderProperty("iconTextMargin", EchoAppRender.ButtonSync._defaultIconTextMargin); 
add: _renderContent: function() { var text = this.component.getRenderProperty("text"); var icon = this.component.getRenderProperty("icon"); this._stateElement = this._createStateElement();  var entityCount = (text ? 1 : 0) + (icon ? 1 : 0) + (this._stateElement ? 1 : 0); if (entityCount == 1) { if (text) { this._renderButtonText(this._divElement, text); } else if (icon) { this._iconElement = this._renderButtonIcon(this._divElement, icon); } else { this._divElement.appendChild(this._stateElement); } } else if (entityCount == 2) { var orientation = EchoAppRender.TriCellTable.TRAILING_LEADING;; var margin; if (this._stateElement) { margin = this.component.getRenderProperty("stateMargin", EchoAppRender.ButtonSync._defaultIconTextMargin); } else { margin = this.component.getRenderProperty("iconTextMargin", EchoAppRender.ButtonSync._defaultIconTextMargin); } var tct = new EchoAppRender.TriCellTable(orientation, EchoAppRender.Extent.toPixels(margin)); if (text) { this._renderButtonText(tct.tdElements[0], text); if (icon) { this._iconElement = this._renderButtonIcon(tct.tdElements[1], icon); } else { tct.tdElements[1].appendChild(this._stateElement); } } else { this._iconElement = this._renderButtonIcon(tct.tdElements[0], icon); tct.tdElements[1].appendChild(this._stateElement); } this._divElement.appendChild(tct.tableElement); } else if (entityCount == 3) { var orientation = EchoAppRender.TriCellTable.TRAILING_LEADING; var margin = this.component.getRenderProperty("iconTextMargin", EchoAppRender.ButtonSync._defaultIconTextMargin); var stateOrientation = EchoAppRender.TriCellTable.TRAILING_LEADING; var stateMargin = this.component.getRenderProperty("stateMargin", EchoAppRender.ButtonSync._defaultIconTextMargin); var tct = new EchoAppRender.TriCellTable(orientation, EchoAppRender.Extent.toPixels(margin), stateOrientation, EchoAppRender.Extent.toPixels(stateMargin)); this._renderButtonText(tct.tdElements[0], text); this._iconElement = this._renderButtonIcon(tct.tdElements[1], icon); tct.tdElements[2].appendChild(this._stateElement); this._divElement.appendChild(tct.tableElement); 
context: EchoAppRender.ToggleButtonSync.prototype._renderContent = function() {    var text = this.component.getRenderProperty("text");    var icon = this.component.getRenderProperty("icon");    this._stateElement = this._createStateElement();        var entityCount = (text ? 1 : 0) + (icon ? 1 : 0) + (this._stateElement ? 1 : 0);    if (entityCount == 1) {    	if (text) {            this._renderButtonText(this._divElement, text);    	} else if (icon) {	        this._iconElement = this._renderButtonIcon(this._divElement, icon);    	} else {    	    this._divElement.appendChild(this._stateElement);    	}    } else if (entityCount == 2) {        var orientation = EchoAppRender.TriCellTable.TRAILING_LEADING;;        var margin;        if (this._stateElement) {	        margin = this.component.getRenderProperty("stateMargin", EchoAppRender.ButtonSync._defaultIconTextMargin);        } else {	        margin = this.component.getRenderProperty("iconTextMargin", EchoAppRender.ButtonSync._defaultIconTextMargin);        }        var tct = new EchoAppRender.TriCellTable(orientation, EchoAppRender.Extent.toPixels(margin));        if (text) {	        this._renderButtonText(tct.tdElements[0], text);	        if (icon) {		        this._iconElement = this._renderButtonIcon(tct.tdElements[1], icon);	        } else {                tct.tdElements[1].appendChild(this._stateElement);	        }        } else {	        this._iconElement = this._renderButtonIcon(tct.tdElements[0], icon);            tct.tdElements[1].appendChild(this._stateElement);        }        this._divElement.appendChild(tct.tableElement);    } else if (entityCount == 3) {        var orientation = EchoAppRender.TriCellTable.TRAILING_LEADING;        var margin = this.component.getRenderProperty("iconTextMargin", EchoAppRender.ButtonSync._defaultIconTextMargin);        var stateOrientation = EchoAppRender.TriCellTable.TRAILING_LEADING;        var stateMargin = this.component.getRenderProperty("stateMargin", EchoAppRender.ButtonSync._defaultIconTextMargin);        var tct = new EchoAppRender.TriCellTable(orientation,         	EchoAppRender.Extent.toPixels(margin), stateOrientation, EchoAppRender.Extent.toPixels(stateMargin));        this._renderButtonText(tct.tdElements[0], text);        this._iconElement = this._renderButtonIcon(tct.tdElements[1], icon);        tct.tdElements[2].appendChild(this._stateElement);        this._divElement.appendChild(tct.tableElement);    }};
meta: 600	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/600/4705113f80e2c9e4d43ad240349e3193f4caf648/Render.Button.js/buggy/src/webcontainer/java/nextapp/echo/webcontainer/resource/js/Render.Button.js