コード例 #1
0
        public GuiTreeviewRowRenderer(
            IGuiLayout guiLayout,
            ITreeviewIconRenderer <TSource> iconRenderer,
            IRowClickableLocations <TSource> rowClickableLocations,
            ITreeviewHierarchyLinesRenderer <TSource> hierarchyLinesRenderer)
        {
            if (guiLayout == null)
            {
                throw new ArgumentNullException("guiLayout");
            }

            if (iconRenderer == null)
            {
                throw new ArgumentNullException("iconRenderer");
            }

            if (rowClickableLocations == null)
            {
                throw new ArgumentNullException("rowClickableLocations");
            }

            if (hierarchyLinesRenderer == null)
            {
                throw new ArgumentNullException("hierarchyLinesRenderer");
            }

            this.guiLayout              = guiLayout;
            this.iconRenderer           = iconRenderer;
            this.rowClickableLocations  = rowClickableLocations;
            this.hierarchyLinesRenderer = hierarchyLinesRenderer;
        }
コード例 #2
0
        public GuiTreeviewRenderer(
            IGuiLayout guiLayout,
            IRowClickableLocations <TSource> rowClickableLocations,
            ICachingObserver <TSource> itemCache,
            ITreeviewRowRenderer <TSource> treeviewRowRenderer)
        {
            if (guiLayout == null)
            {
                throw new ArgumentNullException("guiLayout");
            }

            if (rowClickableLocations == null)
            {
                throw new ArgumentNullException("rowClickableLocations");
            }

            if (itemCache == null)
            {
                throw new ArgumentNullException("itemCache");
            }

            if (treeviewRowRenderer == null)
            {
                throw new ArgumentNullException("treeviewRowRenderer");
            }

            this.guiLayout             = guiLayout;
            this.rowClickableLocations = rowClickableLocations;
            this.itemCache             = itemCache;
            this.treeviewRowRenderer   = treeviewRowRenderer;

            this.itemCache = itemCache;
        }
コード例 #3
0
        public RowInteraction(
            IRowClickableLocations <TSource> clickableLocations,
            IRowExpanderClicker <TSource> rowExpanderClicker,
            IRowContentClicker <TSource> rowContentClicker,
            IRowContentActivator <TSource> rowContentActivator)
        {
            if (clickableLocations == null)
            {
                throw new ArgumentNullException("clickableLocations");
            }

            if (rowExpanderClicker == null)
            {
                throw new ArgumentNullException("rowExpanderClicker");
            }

            if (rowContentClicker == null)
            {
                throw new ArgumentNullException("rowContentClicker");
            }

            if (rowContentActivator == null)
            {
                throw new ArgumentNullException("rowContentActivator");
            }

            this.clickableLocations  = clickableLocations;
            this.rowExpanderClicker  = rowExpanderClicker;
            this.rowContentClicker   = rowContentClicker;
            this.rowContentActivator = rowContentActivator;
        }
コード例 #4
0
 private void InitaliseTreeview()
 {
     this.gui                   = new GuiWrapper();
     this.guiLayout             = new GuiLayoutWrapper();
     this.log                   = new UnityLog();
     this.rowClickableLocations = new RowClickableLocations <Treeview_DataModel>();
     this.rowContentClicker     = new RowContentClicker <Treeview_DataModel>();
     this.rowExpanderClicker    = new RowExpanderClicker <Treeview_DataModel>();
     this.rowContentActivator   = new RowContentActivator <Treeview_DataModel>();
     this.cachingObserver       = new CachingObserver <Treeview_DataModel>(this.log);
     this.rowInteraction        = new RowInteraction <Treeview_DataModel>(rowClickableLocations, rowExpanderClicker, rowContentClicker, rowContentActivator);
 }