Exemple #1
0
        internal MoleculeBandedGridViewManager View;         // the view associated with the control

        /// <summary>
        /// Link the view and the page
        /// </summary>

        public void LinkViewToMoleculeGridPageControl(
            MoleculeBandedGridViewManager view)
        {
            View = view;

            if (!Visible)
            {
                return;
            }
            if (SS.I.UISetupLevel >= 0)
            {
                return;
            }
            MoleculeGridPanel.LinkViewToPanel(view);

            return;
        }
Exemple #2
0
        /// <summary>
        /// Dispose
        /// </summary>

        public new void Dispose()
        {
            ResultsPage = null;
            PageControl = null;
            View        = null;
            Grid        = null;

            if (LayoutViewGrid != null)
            {
                LayoutViewGrid.Dispose();
            }

            if (BandedViewGrid != null)
            {
                BandedViewGrid.Dispose();
            }

            base.Dispose();

            return;
        }
Exemple #3
0
/// <summary>
/// Create a new view of the specified type
/// </summary>
/// <param name="viewType"></param>
/// <returns></returns>

        public ResultsViewProps NewResultsViewManager(
            ResultsViewModel rvi)
        {
            ResultsViewProps view = null;

            switch (rvi.ViewType)
            {
            case ResultsViewType.Table:
                view = new MoleculeBandedGridViewManager();
                break;

            case ResultsViewType.HtmlTable:
                view = new HtmlTableView();
                break;

            case ResultsViewType.PivotGrid:
                view = new PivotGridView();
                break;

            case ResultsViewType.Spotfire:
                view = new SpotfireViewManager(rvi);
                break;

            case ResultsViewType.ScatterPlot:
                view = new SpotfireViewManager2(rvi);
                break;

            case ResultsViewType.BarChart:
                view = new SpotfireViewManager2(rvi);
                break;


            default:
                DebugLog.Message("Unrecognized view type: " + rvi.ViewType);
                view = new ViewManager();
                break;
                //throw new Exception("Unrecognized view type: " + viewType);

                //case ViewTypeMx.ScatterPlot:
                //	view = new ChartViewBubble();
                //	break;

                //case ViewTypeMx.Heatmap:
                //	view = new ChartViewHeatmap();
                //	break;

                //case ViewTypeMx.TargetSummaryUnpivoted:
                //	view = new TargetSummaryUnpivotedView();
                //	break;

                //case ViewTypeMx.TargetSummaryPivoted:
                //	view = new TargetSummaryPivotedView();
                //	break;

                //case ViewTypeMx.TargetTargetTable:
                //	view = new TargetTargetPivotedView();
                //	break;

                //case ViewTypeMx.TargetSummaryImageMap:
                //	view = new TargetSummaryImageMapView();
                //	break;

                //case ViewTypeMx.TargetSummaryHeatmap:
                //	view = new TargetSummaryHeatmapView();
                //	break;
            }

// Set some key values if not already set by the specifice view manager constructor

            if (view.ViewType == ResultsViewType.Unknown)
            {
                view.ViewType = rvi.ViewType;
            }

            if (Lex.IsUndefined(view.ViewSubtype))
            {
                view.ViewSubtype = rvi.ViewSubtype;
            }

            if (Lex.IsUndefined(view.CustomViewTypeImageName))
            {
                view.CustomViewTypeImageName = rvi.CustomViewTypeImageName;
            }

            if (Lex.IsUndefined(view.Title))
            {
                view.Title = rvi.Title;
            }

            if (view.BaseQuery == null)
            {
                view.BaseQuery = rvi.Query;
            }

            return(view);
        }
Exemple #4
0
        /// <summary>
        /// Link the view to the panel
        /// </summary>
        /// <param name="view"></param>

        internal void LinkViewToPanel(MoleculeBandedGridViewManager view)
        {
            View = view;
            return;
        }