コード例 #1
0
        /*
         * Constructor
         */

        public TabbedOverlappingPanelsNode(ApplianceState state)
        {
            TabbedLinkedCIO tabPanel = new TabbedLinkedCIO(state);

            _tabbedPanel = tabPanel;
            _tabNodes    = new ArrayList();

            EnumeratedSpace espc = (EnumeratedSpace)state.Type.ValueSpace;

            for (int i = 1; i <= espc.GetItemCount(); i++)
            {
                TabbedPanelCIO p = (TabbedPanelCIO)tabPanel.GetContainerByValue(i);

                TabPanelNode tp = new TabPanelNode(p, null);
                _tabNodes.Add(tp);
                AddPanel(tp);
            }
        }
コード例 #2
0
        public TabbedOverlappingPanelsNode(BranchGroupNode g)
        {
            _tabbedPanel = new TabbedPanelsCIO();
            _tabNodes    = new ArrayList();

            _groupToTabMap = new Hashtable();

            IEnumerator e = g.Children.GetEnumerator();

            while (e.MoveNext())
            {
                TabbedPanelCIO p = new TabbedPanelCIO(((GroupNode)e.Current).Labels);
                ((TabbedPanelsCIO)_tabbedPanel).AddTab(p);

                TabPanelNode tp = new TabPanelNode(p, (GroupNode)e.Current);
                _groupToTabMap[e.Current] = tp;
                _tabNodes.Add(tp);
                AddPanel(tp);

                ((GroupNode)e.Current).Decorations[PanelDecision.DECISION_KEY] =
                    new PanelDecision((PanelNode)tp.GetChildNode());
            }
        }
コード例 #3
0
ファイル: TabPanelNode.cs プロジェクト: jwnichls/puc
        /*
         * Constructor
         */

        public TabPanelNode(TabbedPanelCIO cio, GroupNode g)
        {
            _panel = cio;
            AddPanel(new PanelNode(g));
        }