1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
18 """Factory interface for creating new Field-instances based on Container
19 (datasource), item id, property id and uiContext (the component responsible
20 for displaying fields). Currently this interface is used by L{Table},
21 but might later be used by some other components for L{Field}
22 generation.
23
24 @author: Vaadin Ltd.
25 @author: Richard Lincoln
26 @version: 1.1.2
27 @see: FormFieldFactory
28 """
29
30 - def createField(self, container, itemId, propertyId, uiContext):
31 """Creates a field based on the Container, item id, property id and
32 the component responsible for displaying the field (most commonly
33 L{Table}).
34
35 @param container:
36 the Container where the property belongs to.
37 @param itemId:
38 the item Id.
39 @param propertyId:
40 the Id of the property.
41 @param uiContext:
42 the component where the field is presented.
43 @return: A field suitable for editing the specified data or null if the
44 property should not be editable.
45 """
46 raise NotImplementedError
47