import java.util.*;
public class ScreenTemplates {
private CurScreen curScreen;
private Map<String, ScreenTemplate> value = new HashMap<>();
{
Map<String, Object> temp_json3 = new HashMap<>();
temp_json3.put("visible", true);
temp_json3.put("text", "");
temp_json3.put("state", 0);
temp_json3.put("type", "textInput");
Map<String, Object> temp_json4 = new HashMap<>();
temp_json4.put("visible", true);
temp_json4.put("text", "Next");
temp_json4.put("state", 0);
temp_json4.put("type", "button");
Map<String, Object> temp_json2 = new HashMap<>();
temp_json2.put("001", temp_json3);
temp_json2.put("002", temp_json4);
Map<String, Object> temp_json1 = new HashMap<>();
temp_json1.put("layout", true);
temp_json1.put("screenId", "000");
temp_json1.put("widgets", temp_json2);
Map<String, Object> temp_json7 = new HashMap<>();
temp_json7.put("visible", true);
temp_json7.put("text", "label");
temp_json7.put("state", 0);
temp_json7.put("type", "label");
Map<String, Object> temp_json8 = new HashMap<>();
temp_json8.put("visible", true);
temp_json8.put("text", "Back");
temp_json8.put("state", 0);
temp_json8.put("type", "button");
Map<String, Object> temp_json6 = new HashMap<>();
temp_json6.put("003", temp_json7);
temp_json6.put("004", temp_json8);
Map<String, Object> temp_json5 = new HashMap<>();
temp_json5.put("layout", true);
temp_json5.put("screenId", "001");
temp_json5.put("widgets", temp_json6);
Map<String, Object> temp_json0 = new HashMap<>();
ScreenTemplate screenTemplate_tmp000 = new ScreenTemplate();
screenTemplate_tmp000.setValue(temp_json1);
ScreenTemplate screenTemplate_tmp001 = new ScreenTemplate();
screenTemplate_tmp001.setValue(temp_json5);
value.put("000", screenTemplate_tmp000);
value.put("001", screenTemplate_tmp001);
}
public Map<String, ScreenTemplate> getValue() {
return new HashMap<>(this.value);
}
public void setCurScreen(CurScreen curScreen) {
this.curScreen = curScreen;
for (ScreenTemplate screenTemplate: value.values()) {
screenTemplate.setCurScreen(curScreen);
}
}
public ScreenTemplate getScreenTemplate(String nextScId) {
return this.value.get(nextScId);
}
}