01: //WebOnSwing - Web Application Framework
02: //Copyright (C) 2003 Fernando Damian Petrola
03: //
04: //This library is free software; you can redistribute it and/or
05: //modify it under the terms of the GNU Lesser General Public
06: //License as published by the Free Software Foundation; either
07: //version 2.1 of the License, or (at your option) any later version.
08: //
09: //This library 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 GNU
12: //Lesser General Public License for more details.
13: //
14: //You should have received a copy of the GNU Lesser General Public
15: //License along with this library; if not, write to the Free Software
16: //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17:
18: package net.ar.webonswing.wrapping;
19:
20: import java.awt.*;
21: import java.util.List;
22:
23: import net.ar.webonswing.managers.contributors.*;
24: import net.ar.webonswing.visitor.*;
25:
26: public interface VisualComponent extends Visitable {
27: public List getChilds();
28:
29: public void setChilds(List list);
30:
31: public void addChild(VisualComponent aChild);
32:
33: public void removeChild(VisualComponent aChild);
34:
35: public VisualComponent getChildAt(int aPosition);
36:
37: public int getChildCount();
38:
39: public String getName();
40:
41: public void setName(String string);
42:
43: public ComponentContributor getContributor();
44:
45: public void setContributor(ComponentContributor contributor);
46:
47: public VisualComponent getParent();
48:
49: public void setParent(VisualComponent id);
50:
51: public VisualComponent getTopParent();
52:
53: public VisualComponent findComponent(String aComponentName);
54:
55: public String getTypeId();
56:
57: public void putClientProperty(Object aKey, Object aValue);
58:
59: public Object getClientProperty(Object aKey);
60:
61: public Rectangle getBounds();
62:
63: public void setBounds(Rectangle aRectangle);
64:
65: public String getUIClassID();
66:
67: public void doLayout();
68: }
|