text: /*!
   * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
   * (c) Copyright 2009-2014 SAP AG or an SAP affiliate company. 
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  jQuery.sap.declare("sap.m.ActionSheetRenderer");
  
  /**
   * @class ActionSheet renderer. 
   * @static
   */
  sap.m.ActionSheetRenderer = {
  };
  
  
  /**
   * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
   * 
   * @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the render output buffer
   * @param {sap.ui.core.Control} oControl an object representation of the control that should be rendered
   */
  sap.m.ActionSheetRenderer.render = function(oRm, oControl){ 
  	var aActionButtons = oControl.getButtons(), 
  		i, bMixedButtons, oButton;
  	
  	for(i = 0 ; i < aActionButtons.length ; i++){
  		oButton = aActionButtons[i];
  		if(oButton.getIcon()){
  			bMixedButtons = true;
  		}else{
  			oButton.addStyleClass("sapMActionSheetButtonNoIcon");
  		}
  	}
  	
  	// write the HTML into the render manager
  	oRm.write("<div");
  	oRm.writeControlData(oControl);
  	oRm.addClass("sapMActionSheet");
  	if(bMixedButtons){
  		oRm.addClass("sapMActionSheetMixedButtons");
  	}
  	oRm.writeClasses();
  	
  	var sTooltip = oControl.getTooltip_AsString();
  	if (sTooltip) {
  		oRm.writeAttributeEscaped("title", sTooltip);
  	}
  	
  	oRm.write(">");
  	
  	for(i = 0 ; i < aActionButtons.length ; i++){
  		oRm.renderControl(aActionButtons[i].addStyleClass("sapMActionSheetButton"));
  	}
  	 
  	if((jQuery.device.is.iphone || (sap.m.Dialog._bOneDesign && sap.ui.Device.system.phone)) && oControl.getShowCancelButton()){
  		oRm.renderControl(oControl._getCancelButton());
  	}
  	
  	oRm.write("</div>");
  };
  