source: gli/branches/rtl-gli/src/org/greenstone/gatherer/util/DragComponent.java@ 18353

Last change on this file since 18353 was 8243, checked in by mdewsnip, 20 years ago

Removed all occurrences of classes explicitly importing other classes in the same package.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/**
2 *#########################################################################
3 *
4 * A component of the Gatherer application, part of the Greenstone digital
5 * library suite from the New Zealand Digital Library Project at the
6 * University of Waikato, New Zealand.
7 *
8 * <BR><BR>
9 *
10 * Author: John Thompson, Greenstone Digital Library, University of Waikato
11 *
12 * <BR><BR>
13 *
14 * Copyright (C) 1999 New Zealand Digital Library Project
15 *
16 * <BR><BR>
17 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * <BR><BR>
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
29 *
30 * <BR><BR>
31 *
32 * You should have received a copy of the GNU General Public License
33 * along with this program; if not, write to the Free Software
34 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
35 *########################################################################
36 */
37package org.greenstone.gatherer.util;
38/**
39 * Title: Gatherer<br>
40 * Description: The Gatherer: a tool for gathering and enriching a digital collection.<br>
41 * Copyright: Copyright (c) 2001<br>
42 * Company: The University of Waikato<br>
43 * Written: / /01<br>
44 * Revised: 21/06/02 - Moved into correct package and commented.<br>
45 * @author John Thompson, 9826509
46 * @version 2.1
47 */
48import java.awt.event.FocusListener;
49import javax.swing.tree.*;
50import org.greenstone.gatherer.file.FileSystemModel;
51
52/** Any component that wants to act a GTree like drag'n'drop component must implement this. */
53public interface DragComponent {
54 public void addFocusListener(FocusListener listener);
55 /** In order for the appearance to be consistant, given we may be in the situation where the pointer has left our focus but the ghost remains, this method allows other members of the Group to tell this component to repair the 'spoilt' region left by its ghost. */
56 public void clearGhost();
57 /** Used to notify this component that it has gained focus by some method other that mouse focus. */
58 public void gainFocus();
59 /** Retrieve the model associated with this component. */
60 public FileSystemModel getTreeModel();
61 /** This method is used to inform this component when it loses focus by means other than a drag mouse event, and should indicate this somehow. */
62 public void loseFocus();
63 /** Set the components group. */
64 public void setGroup(DragGroup group);
65}
Note: See TracBrowser for help on using the repository browser.