1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / wizards / dialogfields / ITreeListAdapter.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.wizards.dialogfields;
12
13 import org.eclipse.swt.events.KeyEvent;
14
15 /**
16  * Change listener used by <code>TreeListDialogField</code>
17  */
18 public interface ITreeListAdapter {
19
20         /**
21          * A button from the button bar has been pressed.
22          */
23         void customButtonPressed(TreeListDialogField field, int index);
24
25         /**
26          * The selection of the list has changed.
27          */
28         void selectionChanged(TreeListDialogField field);
29
30         /**
31          * The list has been double clicked
32          */
33         void doubleClicked(TreeListDialogField field);
34
35         /**
36          * A key has been pressed
37          */
38         void keyPressed(TreeListDialogField field, KeyEvent event);
39
40         Object[] getChildren(TreeListDialogField field, Object element);
41
42         Object getParent(TreeListDialogField field, Object element);
43
44         boolean hasChildren(TreeListDialogField field, Object element);
45
46 }