01: package org.osbl.client.wings.form.layouter;
02:
03: import org.wings.SComponent;
04: import org.osbl.client.wings.form.ComponentProvider;
05:
06: /**
07: * Place a renderer component obtained from the ComponentProvider.
08: */
09: public class ReadOnlyEditor extends Editor {
10: /**
11: * Construct a renderer component placement description.
12: * @param bean the bean, whose property is getting readable (typically BeanMeta)
13: * @param property the property, which is getting readable (typically PropertyMeta)
14: */
15: public ReadOnlyEditor(String bean, String property) {
16: super (bean, property);
17: }
18:
19: /**
20: * Construct a renderer component placement description.
21: * @param weight how much of the available vertical space should the line span
22: * @param bean the bean, whose property is getting readable (typically BeanMeta)
23: * @param property the property, which is getting readable (typically PropertyMeta)
24: */
25: public ReadOnlyEditor(double weight, String bean, String property) {
26: super (weight, bean, property);
27: }
28:
29: protected SComponent component(ComponentProvider componentProvider) {
30: return componentProvider.getReadOnlyEditorComponent(bean,
31: property);
32: }
33: }
|