1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.application;
17
18 import org.kuali.student.common.ui.client.mvc.history.HistoryManager;
19
20
21
22
23
24
25 public class Application {
26 private static ApplicationContext applicationContext;
27
28 public static ApplicationContext getApplicationContext() {
29 if(applicationContext == null){
30 applicationContext = new ApplicationContext();
31 }
32 return applicationContext;
33 }
34 public static void setApplicationContext(ApplicationContext applicationContext) {
35 Application.applicationContext = applicationContext;
36 }
37
38 public static void navigate(String viewPath){
39 HistoryManager.navigate(viewPath);
40 }
41
42 public static void navigate(String viewPath, ViewContext context){
43 HistoryManager.navigate(viewPath, context);
44 }
45
46 }