-
Notifications
You must be signed in to change notification settings - Fork 5
/
Monitor2.java
71 lines (60 loc) · 2.55 KB
/
Monitor2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package org.genericsystem.reactor.gscomponents2;
import org.genericsystem.reactor.annotations.BindAction;
import org.genericsystem.reactor.annotations.BindText;
import org.genericsystem.reactor.annotations.Children;
import org.genericsystem.reactor.annotations.SetText;
import org.genericsystem.reactor.annotations.Style;
import org.genericsystem.reactor.annotations.Style.FlexDirectionStyle;
import org.genericsystem.reactor.gscomponents.FlexDirection;
import org.genericsystem.reactor.gscomponents.FlexDiv;
import org.genericsystem.reactor.gscomponents.HtmlTag.HtmlButton;
import org.genericsystem.reactor.gscomponents.HtmlTag.HtmlLabel;
import org.genericsystem.reactor.gscomponents2.Monitor2.CancelButton;
import org.genericsystem.reactor.gscomponents2.Monitor2.LastUpdateLabel;
import org.genericsystem.reactor.gscomponents2.Monitor2.SaveButton;
import org.genericsystem.reactor.model.ContextAction.CANCEL;
import org.genericsystem.reactor.model.ContextAction.FLUSH;
import org.genericsystem.reactor.model.ContextAction.GC;
import org.genericsystem.reactor.model.ContextAction.MOUNT;
import org.genericsystem.reactor.model.ContextAction.SHIFTTS;
import org.genericsystem.reactor.model.ContextAction.UNMOUNT;
import org.genericsystem.reactor.model.TextBinding;
@Children({ SaveButton.class, CancelButton.class, LastUpdateLabel.class })
@FlexDirectionStyle(FlexDirection.ROW)
@Style(name = "justify-content", value = "space-around")
@Style(name = "padding", value = "10px")
public class Monitor2 extends FlexDiv {
@Children({ SaveButton.class, CancelButton.class, MountButton.class, CacheLevelLabel.class, UnmountButton.class, ShiftTsButton.class, LastUpdateLabel.class/* , CollectButton.class */ })
public static class MonitorExtended2 extends Monitor2 {
}
@SetText("Save")
@BindAction(FLUSH.class)
public static class SaveButton extends HtmlButton {
}
@SetText("Cancel")
@BindAction(CANCEL.class)
public static class CancelButton extends HtmlButton {
}
@BindText(TextBinding.LAST_UPDATE.class)
public static class LastUpdateLabel extends HtmlLabel {
}
@SetText("Mount")
@BindAction(MOUNT.class)
public static class MountButton extends HtmlButton {
}
@SetText("Unmount")
@BindAction(UNMOUNT.class)
public static class UnmountButton extends HtmlButton {
}
@SetText("ShiftTs")
@BindAction(SHIFTTS.class)
public static class ShiftTsButton extends HtmlButton {
}
@BindText(TextBinding.CACHE_LEVEL.class)
public static class CacheLevelLabel extends HtmlLabel {
}
@SetText("Collect")
@BindAction(GC.class)
public static class CollectButton extends HtmlButton {
}
}