KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > aspects > gui > FieldView


1 /*
2   Copyright (C) 2001-2002 Renaud Pawlak, Laurent Martelli
3   
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU Lesser General Public License as
6   published by the Free Software Foundation; either version 2 of the
7   License, or (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   GNU Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public License
15   along with this program; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

17
18 package org.objectweb.jac.aspects.gui;
19
20 import org.objectweb.jac.core.rtti.FieldItem;
21
22 /**
23  * This interface represents viewers for field items. */

24
25 public interface FieldView extends View {
26     /**
27      * Sets the substance object holding the field
28      * @param substance the substance
29      * @see #getSubstance()
30      */

31     void setSubstance(Object JavaDoc substance);
32
33     /**
34      * Gets the substance object holding the field
35      * @see #setSubstance(Object)
36      */

37     Object JavaDoc getSubstance();
38
39     /**
40      * Sets the value to display
41      * @param value the value
42      */

43     void setValue(Object JavaDoc value);
44
45     /**
46      * Sets the field being displayed
47      * @param field the field
48      */

49     void setField(FieldItem field);
50
51     /**
52      * @return the field item
53      */

54     FieldItem getField();
55
56     /**
57      * Sets the auto-update property of the view. If auto-update is
58      * true (which is the default), the view registers for changes on
59      * field it displays.
60      */

61     void setAutoUpdate(boolean autoUpdate);
62 }
63
Popular Tags