KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Context sensitive update request for whether elements have children.
15  *
16  * @since 3.3
17  */

18 public interface IHasChildrenUpdate extends IViewerUpdate {
19
20     /**
21      * The elements this request is for specified as tree paths. An empty path
22      * identifies the root element.
23      *
24      * @return elements as tree paths
25      */

26     public TreePath[] getElements();
27
28     /**
29      * Sets whether the given element has children.
30      *
31      * @param element
32      * tree path to element, or empty for root element
33      * @param hasChildren
34      * whether it has children
35      */

36     public void setHasChilren(TreePath element, boolean hasChildren);
37 }
38
Popular Tags