01: package org.osbl.client.wings.form;
02:
03: import org.wings.SLabel;
04: import org.wings.SComponent;
05:
06: /**
07: * The layout wil retrieve the components from here.
08: */
09: public interface ComponentProvider {
10: String ROOT = "";
11:
12: /**
13: * Create a title label with the specified message code.
14: * @param titleCode the message code
15: * @return the title label
16: */
17: SLabel createTitle(String titleCode);
18:
19: /**
20: * Get the label for the specified bean and property.
21: * @param bean the bean name
22: * @param property the property name
23: * @return the label
24: */
25: SLabel getLabel(String bean, String property);
26:
27: /**
28: * Get the editor component for the specified bean and property.
29: * @param bean the bean name
30: * @param property the property name
31: * @return the editor component
32: */
33: SComponent getEditorComponent(String bean, String property);
34:
35: /**
36: * Get the read only component for the specified bean and property.
37: * @param bean the bean name
38: * @param property the property name
39: * @return the read only component
40: */
41: SComponent getReadOnlyEditorComponent(String bean, String property);
42:
43: /**
44: * Create a label with the specified message code.
45: * @param labelCode the message code
46: * @return the label
47: */
48: SLabel getCustomLabel(String labelCode);
49:
50: /**
51: * Get a custom component by name.
52: * Use it for
53: * @param name the property name
54: * @return the read only component
55: */
56: SComponent getCustomComponent(String name);
57: }
|