|
@@ -37,8 +37,8 @@ public class LayoutFactory {
|
37
|
37
|
switch (node.type) {
|
38
|
38
|
case Component:
|
39
|
39
|
return createComponent(node);
|
40
|
|
- case ComponentStack:
|
41
|
|
- return createComponentStack(node);
|
|
40
|
+ case Stack:
|
|
41
|
+ return createStack(node);
|
42
|
42
|
case BottomTabs:
|
43
|
43
|
return createBottomTabs(node);
|
44
|
44
|
case SideMenuRoot:
|
|
@@ -49,12 +49,12 @@ public class LayoutFactory {
|
49
|
49
|
return createSideMenuLeft(node);
|
50
|
50
|
case SideMenuRight:
|
51
|
51
|
return createSideMenuRight(node);
|
52
|
|
- case CustomDialog:
|
53
|
|
- return createDialogComponent(node);
|
|
52
|
+// case CustomDialog:
|
|
53
|
+// return createDialogComponent(node);
|
54
|
54
|
case TopTabs:
|
55
|
55
|
return createTopTabs(node);
|
56
|
|
- case TopTab:
|
57
|
|
- return createTopTab(node);
|
|
56
|
+// case TopTab:
|
|
57
|
+// return createTopTab(node);
|
58
|
58
|
default:
|
59
|
59
|
throw new IllegalArgumentException("Invalid node type: " + node.type);
|
60
|
60
|
}
|
|
@@ -105,7 +105,7 @@ public class LayoutFactory {
|
105
|
105
|
);
|
106
|
106
|
}
|
107
|
107
|
|
108
|
|
- private ViewController createComponentStack(LayoutNode node) {
|
|
108
|
+ private ViewController createStack(LayoutNode node) {
|
109
|
109
|
StackController stackController = new StackController(activity, node.id);
|
110
|
110
|
for (LayoutNode child : node.children) {
|
111
|
111
|
stackController.push(create(child), null);
|