-
Notifications
You must be signed in to change notification settings - Fork 5
/
AppHtml2.java
44 lines (38 loc) · 2.07 KB
/
AppHtml2.java
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
35
36
37
38
39
40
41
42
43
44
package org.genericsystem.reactor.example;
import org.genericsystem.reactor.modelproperties.SelectionDefaults;
import org.genericsystem.reactor.example.AppHtml.ExampleReactorScript;
import org.genericsystem.carcolor.model.Car;
import org.genericsystem.carcolor.model.CarColor;
import org.genericsystem.carcolor.model.CarColor2;
import org.genericsystem.carcolor.model.Color;
import org.genericsystem.carcolor.model.Power;
import org.genericsystem.carcolor.model.UsedCar;
import org.genericsystem.reactor.annotations.DependsOnModel;
import org.genericsystem.reactor.annotations.DirectSelect;
import org.genericsystem.reactor.annotations.Children;
import org.genericsystem.reactor.annotations.RunScript;
import org.genericsystem.reactor.annotations.Select.SelectModel;
import org.genericsystem.reactor.annotations.Style;
import org.genericsystem.reactor.appserver.ApplicationServer;
import org.genericsystem.reactor.gscomponents.GSApp;
import org.genericsystem.reactor.gscomponents2.GSEditor;
import org.genericsystem.reactor.gscomponents2.GSEditor.HorizontalGSEditor;
import org.genericsystem.reactor.gscomponents2.GSTable;
import org.genericsystem.reactor.gscomponents2.GSTable.HorizontalTable;
import org.genericsystem.reactor.model.ObservableModelSelector;
@DependsOnModel({ Car.class, Power.class, UsedCar.class, Color.class, CarColor.class, CarColor2.class })
@RunScript(ExampleReactorScript.class)
@Children({ GSTable.class, HorizontalTable.class, GSEditor.class, HorizontalGSEditor.class, GSTable.class })
@DirectSelect(path = GSTable.class, pos = 0, value = Car.class)
@DirectSelect(path = HorizontalTable.class, value = Car.class)
@SelectModel(path = GSEditor.class, value = ObservableModelSelector.SELECTION_SELECTOR.class)
@DirectSelect(path = GSTable.class, pos = 2, value = Color.class)
@Style(name = "justify-content", value = "center")
public class AppHtml2 extends GSApp implements SelectionDefaults {
public static void main(String[] mainArgs) {
ApplicationServer.startSimpleGenericApp(mainArgs, AppHtml2.class, "/example-reactor");
}
public AppHtml2() {
createSelectionProperty();
}
}