import java.util.*;
public class Screen {
private ScreenTemplates screenTemplates;
private Widgets widgets = new Widgets();
private boolean layout;
public Screen(ScreenTemplates screenTemplates, boolean layout) {
this.screenTemplates = screenTemplates;
this.layout = layout;
}
public Map<String, Object> getValue() {
Map temp_nil10 = new HashMap<>();
temp_nil10.put("layout",this.getLayout());
temp_nil10.put("widgets",this.widgets.getValue());
return temp_nil10;
}
public Widgets getWidgets() {
return this.widgets;
}
public boolean getLayout() {
return this.layout;
}
public void changeLayout(boolean layout) {
this.layout = layout;
}
public void updateFromCurScreen(String curScreen, Map<String, Object> screenTemplate) {
this.value = screenTemplate;
}
}