1 /***************************************************************************
2 * Copyright (C) 2003-2009 eXo Platform SAS.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Affero General Public License
6 * as published by the Free Software Foundation; either version 3
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see<http://www.gnu.org/licenses/>.
16 *
17 **************************************************************************/
18 package org.exoplatform.ecm.webui.component.admin.views;
19
20 import org.exoplatform.portal.webui.container.UIContainer;
21 import org.exoplatform.webui.config.annotation.ComponentConfig;
22 import org.exoplatform.webui.core.UIComponent;
23 import org.exoplatform.webui.core.UIPopupWindow;
24 import org.exoplatform.webui.core.lifecycle.UIContainerLifecycle;
25
26 /**
27 * Created by The eXo Platform SARL
28 * Author : Dang Van Minh
29 * minh.dang@exoplatform.com
30 * Mar 13, 2013
31 * 6:53:17 PM
32 */
33 @ComponentConfig(lifecycle = UIContainerLifecycle.class)
34
35 public class UITabContainer extends UIContainer {
36
37 public UITabContainer() throws Exception {
38 addChild(UITabList.class, null, null);
39 }
40
41
42 public void initPopup(String popupId, UIComponent uiComponent, int width, int height) throws Exception {
43 removeChildById(popupId);
44 UIPopupWindow uiPopup = addChild(UIPopupWindow.class, null, popupId) ;
45 uiPopup.setShowMask(true);
46 uiPopup.setShowMask(true);
47 uiPopup.setWindowSize(width, height) ;
48 uiPopup.setUIComponent(uiComponent);
49 uiPopup.setShow(true) ;
50 uiPopup.setResizable(true);
51 }
52
53 }