Mercurial > projects > dwt2
comparison org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/tree/IChildrenUpdate.d @ 78:0a55d2d5a946
Added file for databinding
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 14 Apr 2009 11:35:29 +0200 |
parents | |
children | 383ce7bd736b |
comparison
equal
deleted
inserted
replaced
76:f05e6e8b2f2d | 78:0a55d2d5a946 |
---|---|
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 module org.eclipse.core.internal.databinding.observable.tree.IChildrenUpdate; | |
12 | |
13 import java.lang.all; | |
14 | |
15 /** | |
16 * Context sensitive children update request for a parent and subrange of its | |
17 * children. | |
18 * | |
19 * @since 3.3 | |
20 */ | |
21 public interface IChildrenUpdate : IViewerUpdate { | |
22 | |
23 /** | |
24 * Returns the parent element that children are being requested for | |
25 * as a tree path. An empty path identifies the root element. | |
26 * | |
27 * @return parent element as a tree path | |
28 */ | |
29 public TreePath getParent(); | |
30 | |
31 /** | |
32 * Returns the offset at which children have been requested for. This is | |
33 * the index of the first child being requested. | |
34 * | |
35 * @return offset at which children have been requested for | |
36 */ | |
37 public int getOffset(); | |
38 | |
39 /** | |
40 * Returns the number of children requested. | |
41 * | |
42 * @return number of children requested | |
43 */ | |
44 public int getLength(); | |
45 | |
46 /** | |
47 * Sets the child for this request's parent at the given offset. | |
48 * | |
49 * @param child child | |
50 * @param index child offset | |
51 * | |
52 * TODO: what to do with <code>null</code> | |
53 */ | |
54 public void setChild(Object child, int index); | |
55 } |