/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([], function() { "use strict"; /** * ObjectIdentifier renderer. * @namespace */ var ObjectIdentifierRenderer = {}; /** * 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} * oOI An object representation of the control that should be * rendered */ ObjectIdentifierRenderer.render = function(oRm, oOI) { var sTooltip; // Return immediately if control is invisible if (!oOI.getVisible()) { return; } // write the HTML into the render manager oRm.write(""); oRm.write(""); oRm.write("
"); oRm.renderControl(oOI._getTitleControl()); //Render WAI ARIA hidden label for title oRm.renderControl(oOI._oAriaCustomRole); oRm.write("
"); // Title ends oRm.write(""); if (oOI.getBadgeAttachments()) { oRm.write(""); oRm.renderControl(oOI._getAttachmentsIcon()); oRm.write(""); // Icon span ends } if (oOI.getBadgeNotes()) { oRm.write(""); oRm.renderControl(oOI._getNotesIcon()); oRm.write(""); // Icon span ends } if (oOI.getBadgePeople()) { oRm.write(""); oRm.renderControl(oOI._getPeopleIcon()); oRm.write(""); // Icon span ends } oRm.write(""); // Icons end oRm.write(""); // Top row ends oRm.write("
"); oRm.renderControl(oOI._getTextControl()); oRm.write("
"); // Text ends oRm.write(""); // Identifier ends }; return ObjectIdentifierRenderer; }, /* bExport= */ true);