KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > wizards > dialogfields > ITreeListAdapter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.jdt.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 JavaDoc[] getChildren(TreeListDialogField field, Object JavaDoc element);
41
42     Object JavaDoc getParent(TreeListDialogField field, Object JavaDoc element);
43
44     boolean hasChildren(TreeListDialogField field, Object JavaDoc element);
45
46 }
47
Popular Tags