-
Notifications
You must be signed in to change notification settings - Fork 5
/
GSStepEditor.java
41 lines (35 loc) · 1.2 KB
/
GSStepEditor.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
package org.genericsystem.reactor.gs;
import org.genericsystem.reactor.Tag;
import org.genericsystem.reactor.gs.GSSubcellDisplayer.GSSubcellEditor;
import org.genericsystem.reactor.gs.GSSubcellDisplayer.InstanceLinkTitleDisplayer;
import org.genericsystem.reactor.gs.GSSubcellDisplayer.InstanceTitleDisplayer;
import org.genericsystem.reactor.modelproperties.SwitchDefaults;
public class GSStepEditor extends GSEditor implements SwitchDefaults {
protected Tag switchedTag;
protected Tag instanceNameTag;
public GSStepEditor(Tag parent) {
this(parent, FlexDirection.COLUMN);
}
public GSStepEditor(Tag parent, FlexDirection direction) {
super(parent, direction);
}
@Override
protected void content() {
instanceNameTag = new GSSection(this, flexDirection) {
{
addStyle("flex", "1");
new InstanceTitleDisplayer(this).addStyle("flex", "0.3");
new GSSubcellEditor(this);
new StepNavigator(this, flexDirection.reverse());
}
};
switchedTag = new GSSection(this, flexDirection) {
{
addStyle("flex", "1");
new InstanceLinkTitleDisplayer(this).addStyle("flex", "0.3");
new GSAttributeOfInstanceEditor(this);
new StepNavigator(this, flexDirection.reverse());
}
};
}
}