View Javadoc
1   /*
2    * Copyright (C) 2003-2007 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  package org.exoplatform.ecm.webui.component.admin.folksonomy;
18  
19  import org.exoplatform.webui.config.annotation.ComponentConfig;
20  import org.exoplatform.webui.ext.manager.UIAbstractManager;
21  
22  /**
23   * Created by The eXo Platform SARL
24   * Author : Dang Van Minh
25   *          minh.dang@exoplatform.com
26   * Jan 11, 2007
27   * 2:22:08 PM
28   */
29  @ComponentConfig(template = "system:/groovy/webui/core/UITabPane.gtmpl")
30  public class UIFolksonomyManager extends UIAbstractManager {
31  
32    public UIFolksonomyManager() throws Exception {
33      addChild(UITagManager.class, null, null);
34      addChild(UITagPermissionManager.class, null, null).setRendered(false);
35    }
36  
37    public void refresh() throws Exception {
38      update();
39    }
40  
41    public void update() throws Exception {
42      getChild(UITagManager.class).update();
43    }
44    public void selectUITagPermissionManager() {
45      getChild(UITagManager.class).setRendered(false);
46      getChild(UITagPermissionManager.class).setRendered(true);
47    }
48    public void selectUITagManager() {
49      getChild(UITagManager.class).setRendered(true);
50      getChild(UITagPermissionManager.class).setRendered(false);
51    }
52  }