/* * 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); } }
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()); } }
/* * Constructor */ public TabPanelNode(TabbedPanelCIO cio, GroupNode g) { _panel = cio; AddPanel(new PanelNode(g)); }