1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.ecm.webui.component.admin.namespace;
18
19
20 import org.exoplatform.webui.config.annotation.ComponentConfig;
21 import org.exoplatform.webui.core.UIPopupWindow;
22 import org.exoplatform.webui.core.lifecycle.UIContainerLifecycle;
23 import org.exoplatform.webui.ext.manager.UIAbstractManager;
24
25
26
27
28
29
30
31
32 @ComponentConfig(lifecycle = UIContainerLifecycle.class)
33 public class UINamespaceManager extends UIAbstractManager {
34
35 public UINamespaceManager() throws Exception {addChild(UINamespaceList.class, null, null) ;}
36
37 public void refresh ()throws Exception {
38 UINamespaceList list = getChild(UINamespaceList.class) ;
39 list.refresh(1);
40 }
41
42 public void initPopup() throws Exception {
43 UIPopupWindow uiPopup = getChild(UIPopupWindow.class) ;
44 if(uiPopup == null) {
45 uiPopup = addChild(UIPopupWindow.class, null, "NamespacePopup") ;
46 uiPopup.setWindowSize(600,0) ;
47 UINamespaceForm uiNamespaceForm = createUIComponent(UINamespaceForm.class, null, "UINamespaceForm") ;
48 uiPopup.setUIComponent(uiNamespaceForm) ;
49 uiPopup.setShow(true) ;
50 uiPopup.setResizable(true) ;
51 uiPopup.setShowMask(true);
52 return ;
53 }
54 uiPopup.setRendered(true) ;
55 uiPopup.setShow(true) ;
56 }
57 }