Revision 35700
Added by Stefania Martziou about 9 years ago
ContentManager.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
public void updateContent(String token) { |
78 | 78 |
|
79 |
String[] tokenParts = token.split("\\."); |
|
80 |
String menuToken = tokenParts[0]; |
|
81 |
|
|
79 | 82 |
RootPanel.get("content").clear(); |
80 | 83 |
Window.scrollTo(0, 0); |
81 |
if(widgetMap.get(token)!=null) {
|
|
84 |
if(widgetMap.get(menuToken)!=null) {
|
|
82 | 85 |
|
83 |
if(token.equals("newRequest")) {
|
|
86 |
if(menuToken.equals("newRequest")) {
|
|
84 | 87 |
|
85 | 88 |
List<FundingWizardStepWidget> wizardStepWidgets = new ArrayList<>(); |
86 | 89 |
|
... | ... | |
103 | 106 |
widgetMap.put("newRequest", fundingWizardWidget); |
104 | 107 |
} |
105 | 108 |
|
106 |
widgetMap.get(token).clear();
|
|
107 |
widgetMap.get(token).setToken(token);
|
|
108 |
widgetMap.get(token).reload();
|
|
109 |
RootPanel.get("content").add(widgetMap.get(token));
|
|
109 |
widgetMap.get(menuToken).clear();
|
|
110 |
widgetMap.get(menuToken).setToken(token);
|
|
111 |
widgetMap.get(menuToken).reload();
|
|
112 |
RootPanel.get("content").add(widgetMap.get(menuToken));
|
|
110 | 113 |
} else { |
111 | 114 |
//TODO invalid token |
112 | 115 |
} |
Also available in: Unified diff
Temp commit for functionality and many styling changes