1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 from muntjac.ui.table_field_factory import ITableFieldFactory
17 from muntjac.ui.form_field_factory import IFormFieldFactory
18
19
21 """Factory for creating new Field-instances based on type, datasource
22 and/or context.
23
24 @author: Vaadin Ltd.
25 @author: Richard Lincoln
26 @version: 1.1.2
27 @deprecated: IFieldFactory was split into two lighter interfaces.
28 Use IFormFieldFactory or ITableFieldFactory or both instead.
29 """
30
32 """Creates a field based on type of data.
33
34 @param args: tuple of the form
35 - (type, uiContext)
36 1. the type of data presented in field.
37 2. the component where the field is presented.
38 - (property, uiContext)
39 1. the property datasource.
40 2. the component where the field is presented.
41 @return: Field the field suitable for editing the specified data.
42 """
43 raise NotImplementedError
44