1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package info.magnolia.module.blossom.dialog;
35
36 import java.lang.reflect.Method;
37 import java.util.ArrayList;
38 import java.util.List;
39
40
41
42
43
44
45 public class DialogFactoryMetaData {
46
47 private String label;
48 private String[] tabOrder;
49 private Object factoryObject;
50 private Method factoryMethod;
51 private String i18nBasename;
52
53 private List<Method> tabFactories = new ArrayList<Method>();
54
55 public String getI18nBasename() {
56 return i18nBasename;
57 }
58
59 public void setI18nBasename(String i18nBasename) {
60 this.i18nBasename = i18nBasename;
61 }
62
63 public String getLabel() {
64 return label;
65 }
66
67 public void setLabel(String label) {
68 this.label = label;
69 }
70
71 public String[] getTabOrder() {
72 return tabOrder;
73 }
74
75 public void setTabOrder(String[] tabOrder) {
76 this.tabOrder = tabOrder;
77 }
78
79 public Object getFactoryObject() {
80 return factoryObject;
81 }
82
83 public void setFactoryObject(Object factoryObject) {
84 this.factoryObject = factoryObject;
85 }
86
87 public Method getFactoryMethod() {
88 return factoryMethod;
89 }
90
91 public void setFactoryMethod(Method factoryMethod) {
92 this.factoryMethod = factoryMethod;
93 }
94
95 public List<Method> getTabFactories() {
96 return tabFactories;
97 }
98
99 public void addTabFactory(Method method) {
100 this.tabFactories.add(method);
101 }
102
103 public boolean isEmpty() {
104 if (factoryMethod != null) {
105 return false;
106 }
107 if (!tabFactories.isEmpty()) {
108 return false;
109 }
110 return true;
111 }
112 }