Newer
Older
StartupManagement / src / CurScreen.java
import java.util.*;

public class CurScreen {
	private Screen screen;
	private ScreenTemplates screenTemplates;
	private String value = "企業一覧";
	public CurScreen(Screen screen, ScreenTemplates screenTemplates) {
		this.screen = screen;
		this.screenTemplates = screenTemplates;
	}
	public String getValue() {
		return new String(this.value);
	}
	public void updateFromState(String scId, String wid, int state) {
		String temp_if2;
		if ((state==0)) {
			temp_if2 = "企業一覧";
		} else {
			temp_if2 = this.value;
		}
		this.value = temp_if2;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState2(String scId, String wid, int state) {
		String temp_if3;
		if ((state==0)) {
			temp_if3 = "登録画面1";
		} else {
			temp_if3 = this.value;
		}
		this.value = temp_if3;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState3(String scId, String wid, int state) {
		String temp_if4;
		if ((state==0)) {
			temp_if4 = "検索画面";
		} else {
			temp_if4 = this.value;
		}
		this.value = temp_if4;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState4(String scId, String wid, int state) {
		String temp_if5;
		if ((state==0)) {
			temp_if5 = "企業一覧";
		} else {
			temp_if5 = this.value;
		}
		this.value = temp_if5;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState5(String scId, String wid, int state, String editcompany_, String editrepresentative_, String editposition_, String editestablish_, String editaddress1_, String editaddress2_, String editbusiness1_, String editbusiness2_, String editcompanydetail_, String editURL_, Map<String, Map<String, Object>> businessCardManagement) {
		String temp_if7;
		if ((state==0)) {
			String temp_if6;
			if ((!editcompany_.equals("")&&businessCardManagement.containsKey(editcompany_))) {
				temp_if6 = "企業一覧";
			} else {
				temp_if6 = this.value;
			}
			temp_if7 = temp_if6;
		} else {
			temp_if7 = this.value;
		}
		this.value = temp_if7;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState6(String scId, String wid, int state, String company, String representative, String position, String establishment, String address1, String address2, String businessdescription1, String businessdescription2, String companyoverview, String URL, Map<String, Map<String, Object>> businessCardManagement) {
		String temp_if9;
		if ((state==0)) {
			String temp_if8;
			if ((!company.equals("")&&!(businessCardManagement.containsKey(company)))) {
				temp_if8 = "企業一覧";
			} else {
				temp_if8 = "企業一覧";
			}
			temp_if9 = temp_if8;
		} else {
			temp_if9 = this.value;
		}
		this.value = temp_if9;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState7(String scId, String wid, int state) {
		String temp_if10;
		if ((state==0)) {
			temp_if10 = "検索画面";
		} else {
			temp_if10 = this.value;
		}
		this.value = temp_if10;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState8(String scId, String wid, int state) {
		String temp_if11;
		if ((state==0)) {
			temp_if11 = "企業一覧";
		} else {
			temp_if11 = this.value;
		}
		this.value = temp_if11;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState9(String scId, String wid, int state) {
		String temp_if12;
		if ((state==0)) {
			temp_if12 = "企業一覧";
		} else {
			temp_if12 = this.value;
		}
		this.value = temp_if12;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
	public void updateFromState10(String scId, String wid, int state) {
		String temp_if13;
		if ((state==0)) {
			temp_if13 = "検索項目画面";
		} else {
			temp_if13 = this.value;
		}
		this.value = temp_if13;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
    public void updateFromState11(String scId, String wid, int state) {
        String temp_if14;
        if ((state==0)) {
            temp_if14 = "編集画面2";
        } else {
            temp_if14 = this.value;
        }
        this.value = temp_if14;
        Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
        this.screen.updateFromCurScreen(this.value, screenTemplate);
    }
	public void changeCurScreen(String nextScId) {
		this.value = nextScId;
		Map<String, Object> screenTemplate = screenTemplates.getScreenTemplate(this.value).getValue();
		this.screen.updateFromCurScreen(this.value, screenTemplate);
	}
}