01: package fr.aliacom.form.common;
02:
03: import java.beans.PropertyChangeListener;
04:
05: import fr.aliacom.commands.Command;
06: import fr.aliacom.common.ui.IFrame;
07: import fr.aliacom.common.ui.IIcon;
08:
09: /**
10: * @author tom
11: *
12: * (C) 2001, 2002 Thomas Cataldo
13: */
14: public interface IForm extends IFormComponent {
15:
16: /**
17: * Method addPropertyChangeListener.
18: * @param string
19: * @param pcl
20: */
21: void addPropertyChangeListener(String string,
22: PropertyChangeListener pcl);
23:
24: /**
25: * Method close.
26: */
27: void close();
28:
29: /**
30: * Method getFormContext.
31: */
32: FormContext getFormContext();
33:
34: /**
35: * Method setManager.
36: * @param formManager
37: */
38: void setManager(FormManager formManager);
39:
40: /**
41: * Method setFrame.
42: * @param jif
43: */
44: void setFrame(IFrame jif);
45:
46: /**
47: * Method getFrame.
48: * @return AliaFrame
49: */
50: IFrame getFrame();
51:
52: /**
53: * Method getLoader.
54: * @return FormLoader
55: */
56: FormLoader getLoader();
57:
58: /**
59: * Method load.
60: */
61: void load() throws LoadException;
62:
63: /**
64: * Method save.
65: * @throws ApplyChangeException
66: */
67: void save() throws ApplyChangeException;
68:
69: /**
70: * Method setContext.
71: * @param ctx
72: */
73: void setContext(FormContext ctx);
74:
75: void setLoadCommand(Command c);
76:
77: void setSaveCommand(Command c);
78:
79: void setIcon(IIcon icon);
80:
81: }
|