| VisualResource.java |
1 /*
2 * VisualResource.java
3 *
4 * Copyright (c) 1998-2004, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June1991.
9 *
10 * A copy of this licence is included in the distribution in the file
11 * licence.html, and is also available at http://gate.ac.uk/gate/licence.html.
12 *
13 * Hamish Cunningham, 16/Oct/2000
14 *
15 * $Id: VisualResource.java,v 1.10 2004/07/21 17:10:02 akshay Exp $
16 */
17
18 package gate;
19
20 import gate.gui.Handle;
21
22 /** Models all sorts of visual resources.
23 */
24 public interface VisualResource extends Resource{
25 /**
26 * Called by the GUI when this viewer/editor has to initialise itself for a
27 * specific object.
28 * @param target the object (be it a {@link gate.Resource},
29 * {@link gate.DataStore} or whatever) this viewer has to display
30 */
31 public void setTarget(Object target);
32
33
34 /**
35 * Used by the main GUI to tell this VR what handle created it. The VRs can
36 * use this information e.g. to add items to the popup for the resource.
37 */
38 public void setHandle(Handle handle);
39
40 } // interface VisualResource
41