KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > databinding > observable > tree > IChildrenCountUpdate


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.databinding.observable.tree;
12
13 /**
14  * Request monitor used to collect the number of children for an element in a lazy
15  * observable tree.
16  *
17  * @since 3.3
18  */

19 public interface IChildrenCountUpdate extends IViewerUpdate {
20
21     /**
22      * Returns the parent elements that children counts have been requested for
23      * as tree paths. An empty path identifies the root element.
24      *
25      * @return parent elements as tree paths
26      */

27     public TreePath[] getParents();
28
29     /**
30      * Sets the number of children for the given parent.
31      *
32      * @param parentPath
33      * parent element or empty path for root element
34      * @param numChildren
35      * number of children
36      */

37     public void setChildCount(TreePath parentPath, int numChildren);
38 }
39
Popular Tags