コード例 #1
0
        /// <summary>
        /// Constructs the renderer.
        /// </summary>
        /// <param name="resourceUrlFactory"></param>
        /// <param name="cssClasses">The <see cref="BocListQuirksModeCssClassDefinition"/> containing the CSS classes to apply to the rendered elements.</param>
        protected BocColumnQuirksModeRendererBase(IResourceUrlFactory resourceUrlFactory, BocListQuirksModeCssClassDefinition cssClasses)
        {
            ArgumentUtility.CheckNotNull("resourceUrlFactory", resourceUrlFactory);
            ArgumentUtility.CheckNotNull("cssClasses", cssClasses);

            _cssClasses         = cssClasses;
            _resourceUrlFactory = resourceUrlFactory;
        }
コード例 #2
0
        public BocListTableBlockQuirksModeRenderer(BocListQuirksModeCssClassDefinition cssClasses, IBocRowRenderer rowRenderer)
        {
            ArgumentUtility.CheckNotNull("cssClasses", cssClasses);
            ArgumentUtility.CheckNotNull("rowRenderer", rowRenderer);

            _cssClasses  = cssClasses;
            _rowRenderer = rowRenderer;
        }
コード例 #3
0
        public BocRowQuirksModeRenderer(
            BocListQuirksModeCssClassDefinition cssClasses, IBocIndexColumnRenderer indexColumnRenderer, IBocSelectorColumnRenderer selectorColumnRenderer)
        {
            ArgumentUtility.CheckNotNull("cssClasses", cssClasses);
            ArgumentUtility.CheckNotNull("indexColumnRenderer", indexColumnRenderer);
            ArgumentUtility.CheckNotNull("selectorColumnRenderer", selectorColumnRenderer);

            _cssClasses             = cssClasses;
            _indexColumnRenderer    = indexColumnRenderer;
            _selectorColumnRenderer = selectorColumnRenderer;
        }
コード例 #4
0
        /// <summary>
        /// Contructs a renderer bound to a <see cref="BocList"/> to render and an <see cref="HtmlTextWriter"/> to render to.
        /// </summary>
        /// <remarks>
        /// This class should not be instantiated directly by clients. Instead, a <see cref="BocListQuirksModeRenderer"/> should use a
        /// factory to obtain an instance of this class.
        /// </remarks>
        public BocListNavigationBlockQuirksModeRenderer(
            IResourceUrlFactory resourceUrlFactory,
            IGlobalizationService globalizationService,
            BocListQuirksModeCssClassDefinition cssClasses)
        {
            ArgumentUtility.CheckNotNull("resourceUrlFactory", resourceUrlFactory);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);
            ArgumentUtility.CheckNotNull("cssClasses", cssClasses);

            _resourceUrlFactory   = resourceUrlFactory;
            _globalizationService = globalizationService;
            _cssClasses           = cssClasses;
        }
コード例 #5
0
        /// <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;
        }
 /// <summary>
 /// Contructs a renderer bound to a <see cref="BocList"/> to render, an <see cref="HtmlTextWriter"/> to render to, and a
 /// <see cref="BocRowEditModeColumnDefinition"/> column for which to render cells.
 /// </summary>
 /// <remarks>
 /// This class should not be instantiated directly by clients. Instead, a <see cref="BocRowRenderer"/> should use a
 /// factory to obtain instances of this class.
 /// </remarks>
 public BocRowEditModeColumnQuirksModeRenderer(IResourceUrlFactory resourceUrlFactory, BocListQuirksModeCssClassDefinition cssClasses)
     : base(resourceUrlFactory, cssClasses)
 {
 }
 protected BocValueColumnQuirksModeRendererBase(IResourceUrlFactory resourceUrlFactory, BocListQuirksModeCssClassDefinition cssClasses)
     : base(resourceUrlFactory, cssClasses)
 {
 }
        public BocSelectorColumnQuirksModeRenderer(BocListQuirksModeCssClassDefinition cssClasses)
        {
            ArgumentUtility.CheckNotNull("cssClasses", cssClasses);

            _cssClasses = cssClasses;
        }
コード例 #9
0
        /// <summary>
        /// Contructs a renderer bound to a <see cref="BocList"/> to render and an <see cref="HtmlTextWriter"/> to render to.
        /// </summary>
        /// <remarks>
        /// This class should not be instantiated directly by clients. Instead, a <see cref="BocListRenderer"/> should use a
        /// factory to obtain an instance of this class.
        /// </remarks>
        public BocListMenuBlockQuirksModeRenderer(BocListQuirksModeCssClassDefinition cssClasses)
        {
            ArgumentUtility.CheckNotNull("cssClasses", cssClasses);

            _cssClasses = cssClasses;
        }