/*! * 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. */ // Provides default renderer for control sap.m.MessagePage sap.ui.define(['sap/ui/core/library'], function(coreLibrary) { "use strict"; var TextDirection = coreLibrary.TextDirection; /** * MessagePage renderer. * @namespace */ var MessagePageRenderer = {}; /** * 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} oMessagePage an object representation of the control that should be rendered * @returns {sap.m.MessagePageRenderer} this instance for chaining */ MessagePageRenderer.render = function(oRm, oMessagePage) { this.startOpeningDiv(oRm, oMessagePage); this.renderHeader(oRm, oMessagePage); this.startInnerDivs(oRm); this.renderContent(oRm, oMessagePage); this.endInnerDivs(oRm); this.endOpeningDiv(oRm); }; MessagePageRenderer.startOpeningDiv = function(oRm, oMessagePage) { oRm.write("