/// <summary> /// Initializes the renderer with the <see cref="BocList"/> to render and the <see cref="HtmlTextWriter"/> to render it to. /// </summary> /// <param name="cssClasses">The <see cref="BocListQuirksModeCssClassDefinition"/> containing the CSS classes to apply to the rendered elements.</param> /// <param name="tableBlockRenderer">The <see cref="IBocListTableBlockRenderer"/> responsible for rendering the table-part of the <see cref="BocList"/>.</param> /// <param name="navigationBlockRenderer">The <see cref="IBocListNavigationBlockRenderer"/> responsible for rendering the navigation-part of the <see cref="BocList"/>.</param> /// <param name="menuBlockRenderer">The <see cref="IBocListMenuBlockRenderer"/> responsible for rendering the menu-part of the <see cref="BocList"/>.</param> /// <param name="resourceUrlFactory">The <see cref="IResourceUrlFactory"/> responsible for creating URLs for resources.</param> public BocListQuirksModeRenderer( BocListQuirksModeCssClassDefinition cssClasses, IBocListTableBlockRenderer tableBlockRenderer, IBocListNavigationBlockRenderer navigationBlockRenderer, IBocListMenuBlockRenderer menuBlockRenderer, IResourceUrlFactory resourceUrlFactory) : base(resourceUrlFactory) { ArgumentUtility.CheckNotNull("cssClasses", cssClasses); ArgumentUtility.CheckNotNull("tableBlockRenderer", tableBlockRenderer); ArgumentUtility.CheckNotNull("navigationBlockRenderer", navigationBlockRenderer); ArgumentUtility.CheckNotNull("menuBlockRenderer", menuBlockRenderer); _cssClasses = cssClasses; _tableBlockRenderer = tableBlockRenderer; _navigationBlockRenderer = navigationBlockRenderer; _menuBlockRenderer = menuBlockRenderer; }
public BocListRenderer( IResourceUrlFactory resourceUrlFactory, IGlobalizationService globalizationService, IRenderingFeatures renderingFeatures, BocListCssClassDefinition cssClasses, IBocListTableBlockRenderer tableBlockRenderer, IBocListNavigationBlockRenderer navigationBlockRenderer, IBocListMenuBlockRenderer menuBlockRenderer) : base(resourceUrlFactory, globalizationService, renderingFeatures) { ArgumentUtility.CheckNotNull("cssClasses", cssClasses); ArgumentUtility.CheckNotNull("tableBlockRenderer", tableBlockRenderer); ArgumentUtility.CheckNotNull("navigationBlockRenderer", navigationBlockRenderer); ArgumentUtility.CheckNotNull("menuBlockRenderer", menuBlockRenderer); _cssClasses = cssClasses; _tableBlockRenderer = tableBlockRenderer; _navigationBlockRenderer = navigationBlockRenderer; _menuBlockRenderer = menuBlockRenderer; }