protected CellContainerTemplate(XNode node, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory)
            : base(node, languageCode, entityMetadata, cellTemplateFactory)
        {
            cellTemplateFactory.ThrowOnNull("cellTemplateFactory");

            CellTemplateFactory = cellTemplateFactory;
        }
Beispiel #2
0
 protected RowTemplate(XNode rowNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory) : base(rowNode, languageCode, entityMetadata, cellTemplateFactory)
 {
 }
Beispiel #3
0
 public SavedQueryRowTemplate(XNode rowNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory) : base(rowNode, languageCode, entityMetadata, cellTemplateFactory)
 {
 }
 public virtual ITemplate CreateTemplate(XNode rowNode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory)
 {
     return(new GridLayoutRowTemplate(rowNode, LanguageCode, entityMetadata, cellTemplateFactory));
 }
Beispiel #5
0
        public SectionTemplate(XNode sectionNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory, TableLayoutRowTemplateFactory rowTemplateFactory)
            : base(sectionNode, languageCode, entityMetadata, cellTemplateFactory)
        {
            rowTemplateFactory.ThrowOnNull("rowTemplateFactory");

            RowTemplateFactory = rowTemplateFactory;

            string description;

            if (sectionNode.TryGetLanguageSpecificLabelValue(this.LanguageCode, out description))
            {
                Label = description;
            }

            bool showLabel;

            if (sectionNode.TryGetBooleanAttributeValue(".", "showlabel", out showLabel))
            {
                ShowLabel = showLabel;
            }

            bool showBar;

            if (sectionNode.TryGetBooleanAttributeValue(".", "showbar", out showBar))
            {
                ShowBar = showBar;
            }
        }
Beispiel #6
0
 public GridLayoutRowTemplate(XNode rowNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory) : base(rowNode, languageCode, entityMetadata, cellTemplateFactory)
 {
 }
Beispiel #7
0
 /// <summary>
 /// TableLayoutSectionTemplate class initialization.
 /// </summary>
 /// <param name="sectionNode"></param>
 /// <param name="languageCode"></param>
 /// <param name="entityMetadata"></param>
 /// <param name="cellTemplateFactory"></param>
 /// <param name="rowTemplateFactory"></param>
 /// <param name="webformMetadata"></param>
 public TableLayoutSectionTemplate(XNode sectionNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory, TableLayoutRowTemplateFactory rowTemplateFactory, IEnumerable <Entity> webformMetadata) : base(sectionNode, languageCode, entityMetadata, cellTemplateFactory, rowTemplateFactory)
 {
     _webformMetadata = webformMetadata;
 }
        public SectionTemplate(XNode sectionNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory, RowTemplateFactory rowTemplateFactory)
            : base(sectionNode, languageCode, entityMetadata, cellTemplateFactory)
        {
            rowTemplateFactory.ThrowOnNull("rowTemplateFactory");

            RowTemplateFactory = rowTemplateFactory;

            string description;

            if (XNodeUtility.TryGetAttributeValue(sectionNode, "labels/label[@languagecode='{0}']".FormatWith(LanguageCode), "description", out description))
            {
                Label = description;
            }

            bool showLabel;

            if (XNodeUtility.TryGetBooleanAttributeValue(sectionNode, ".", "showlabel", out showLabel))
            {
                ShowLabel = showLabel;
            }

            bool showBar;

            if (XNodeUtility.TryGetBooleanAttributeValue(sectionNode, ".", "showbar", out showBar))
            {
                ShowBar = showBar;
            }
        }
Beispiel #9
0
        /// <summary>
        /// TableLayoutTabTemplate class initialization
        /// </summary>
        /// <param name="tabNode"></param>
        /// <param name="languageCode"></param>
        /// <param name="entityMetadata"></param>
        /// <param name="cellTemplateFactory"></param>
        /// <param name="webformMetadata"></param>
        public TabTemplate(XNode tabNode, int languageCode, EntityMetadata entityMetadata, ICellTemplateFactory cellTemplateFactory, IEnumerable <Entity> webformMetadata)
            : base(tabNode, languageCode, entityMetadata, cellTemplateFactory)
        {
            _webformMetadata = webformMetadata;

            string description;

            if (tabNode.TryGetLanguageSpecificLabelValue(this.LanguageCode, out description))
            {
                Label = description;
            }

            bool showLabel;

            if (tabNode.TryGetBooleanAttributeValue(".", "showlabel", out showLabel))
            {
                ShowLabel = showLabel;
            }
        }