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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.wizards.dialogfields;
13 import org.eclipse.swt.events.KeyEvent;
16 * Change listener used by <code>TreeListDialogField</code>
18 public interface ITreeListAdapter {
21 * A button from the button bar has been pressed.
23 void customButtonPressed(TreeListDialogField field, int index);
26 * The selection of the list has changed.
28 void selectionChanged(TreeListDialogField field);
31 * The list has been double clicked
33 void doubleClicked(TreeListDialogField field);
36 * A key has been pressed
38 void keyPressed(TreeListDialogField field, KeyEvent event);
40 Object[] getChildren(TreeListDialogField field, Object element);
42 Object getParent(TreeListDialogField field, Object element);
44 boolean hasChildren(TreeListDialogField field, Object element);