Inheritance: TreeNodeRootProvider
Exemple #1
0
        void HandleAfterCheck(object sender, SWF.TreeViewEventArgs e)
        {
            TreeNodeProvider nodeProvider = GetTreeNodeProvider(e.Node);

            if (nodeProvider != null)
            {
                nodeProvider.OnAfterCheck();
            }
        }
Exemple #2
0
        void HandleUIANodeTextChanged(object sender, SWF.TreeViewEventArgs e)
        {
            TreeNodeProvider nodeProvider = GetTreeNodeProvider(e.Node);

            if (nodeProvider != null)
            {
                nodeProvider.OnTextChanged();
            }
        }
Exemple #3
0
 public override void InitializeChildControlStructure()
 {
     foreach (SWF.TreeNode node in Nodes)
     {
         TreeNodeProvider nodeProvider = GetOrCreateNodeProvider(node);
         if (nodeProvider != null)
         {
             AddChildProvider(nodeProvider);
         }
     }
 }
Exemple #4
0
        private TreeNodeProvider GetOrCreateNodeProvider(SWF.TreeNode node)
        {
            TreeNodeProvider nodeProvider;

            if (!nodeProviders.TryGetValue(node, out nodeProvider))
            {
                nodeProvider = new TreeNodeProvider(node, SupportsScroll);
                nodeProvider.Initialize();
                nodeProviders [node] = nodeProvider;
            }

            return(nodeProvider);
        }
Exemple #5
0
        /// <summary>
        /// Search recursively for the TreeNodeProvider for the given
        /// TreeNode.
        /// </summary>
        internal TreeNodeProvider GetTreeNodeProvider(SWF.TreeNode node)
        {
            TreeNodeProvider nodeProvider = null;

            if (!nodeProviders.TryGetValue(node, out nodeProvider))
            {
                foreach (TreeNodeProvider childNodeProvider in nodeProviders.Values)
                {
                    nodeProvider = childNodeProvider.GetTreeNodeProvider(node);
                    if (nodeProvider != null)
                    {
                        return(nodeProvider);
                    }
                }
            }

            return(nodeProvider);
        }
		public TogglePatternToggleStateEvent (TreeNodeProvider provider)
			: base (provider, TogglePatternIdentifiers.ToggleStateProperty)
		{
			nodeProvider = provider;
		}
		public ExpandCollapsePatternExpandCollapseStateEvent (TreeNodeProvider nodeProvider) :
			base (nodeProvider, ExpandCollapsePatternIdentifiers.ExpandCollapseStateProperty)
		{
			this.nodeProvider = nodeProvider;
		}
		public AutomationHasKeyboardFocusPropertyEvent (TreeNodeProvider nodeProvider) 
			: base (nodeProvider, 
			        AutomationElementIdentifiers.HasKeyboardFocusProperty)
		{
			treeView = nodeProvider.TreeNode.TreeView;
		}
		public ScrollItemProviderBehavior (TreeNodeProvider provider)
			: base (provider)
		{
			nodeProvider = provider;
		}
		public SelectionItemPatternElementSelectedEvent (TreeNodeProvider nodeProvider) :
			base (nodeProvider, SelectionItemPatternIdentifiers.ElementSelectedEvent)
		{
			this.nodeProvider = nodeProvider;
		}
		public SelectionItemPatternIsSelectedEvent (TreeNodeProvider nodeProvider) :
			base (nodeProvider, SelectionItemPatternIdentifiers.IsSelectedProperty)
		{
			this.nodeProvider = nodeProvider;
		}
Exemple #12
0
		private TreeNodeProvider GetOrCreateNodeProvider (SWF.TreeNode node)
		{
			TreeNodeProvider nodeProvider;
			
			if (!nodeProviders.TryGetValue (node, out nodeProvider)) {
				nodeProvider = new TreeNodeProvider (node, SupportsScroll);
				nodeProvider.Initialize ();
				nodeProviders [node]  = nodeProvider;
			}

			return nodeProvider;
		}