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.calendar.webui;
18  
19  import org.exoplatform.webui.application.WebuiRequestContext;
20  import org.exoplatform.webui.config.annotation.ComponentConfig;
21  import org.exoplatform.webui.core.UIComponent;
22  import org.exoplatform.webui.core.UIContainer;
23  import org.exoplatform.webui.core.lifecycle.UIContainerLifecycle;
24  
25  /**
26   * Created by The eXo Platform SARL
27   * Author : Hung Nguyen
28   *          hung.nguyen@exoplatform.com
29   * Aus 01, 2007 2:48:18 PM 
30   */
31  
32  @ComponentConfig(
33      lifecycle = UIContainerLifecycle.class
34  )
35  public class UICalendarContainer extends UIContainer  {
36    public UICalendarContainer() throws Exception {
37      addChild(UIMiniCalendar.class, null, null) ;
38      addChild(UICalendars.class, null, null) ;    
39    }
40    
41    @Override
42    public void renderChildren(WebuiRequestContext context) throws Exception {
43      super.renderChildren(context);
44    }
45  
46  
47    public void applySeting() throws Exception {
48      for(UIComponent comp : getChildren()) {
49        if((comp instanceof CalendarView)) ((CalendarView)comp).applySeting() ;  
50      }
51    }
52    
53  }