View Javadoc
1   package org.exoplatform.wcm.webui.selector.content.multi;
2   
3   import org.exoplatform.wcm.webui.selector.content.UIContentSearchForm;
4   import org.exoplatform.wcm.webui.selector.content.UIContentSearchResult;
5   import org.exoplatform.wcm.webui.selector.content.UIContentSelector;
6   import org.exoplatform.webui.config.annotation.ComponentConfig;
7   import org.exoplatform.webui.config.annotation.ComponentConfigs;
8   import org.exoplatform.webui.config.annotation.EventConfig;
9   
10  /**
11   * Author : TAN DUNG DANG
12   * dzungdev@gmail.com
13   * Jan 20, 2009
14   */
15  @ComponentConfigs ({
16    @ComponentConfig(
17      template = "system:/groovy/webui/core/UITabPane_New.gtmpl"
18    ),
19    @ComponentConfig(
20      type = UIContentSearchResult.class,
21      template = "classpath:groovy/wcm/webui/selector/content/multi/UIContentSearchResult.gtmpl",
22      events = {
23        @EventConfig(listeners = UIContentSearchResult.ViewActionListener.class)
24      }
25    )
26  })
27  
28  
29  public class UIContentSelectorMulti extends UIContentSelector {
30  
31    /**
32     * Instantiates a new uI content selector multi.
33     *
34     * @throws Exception the exception
35     */
36    public UIContentSelectorMulti() throws Exception {
37      addChild(UIContentBrowsePanelMulti.class, null, null);
38      addChild(UIContentSearchForm.class,null,null);
39      addChild(UIContentSearchResult.class,null,null);
40      setSelectedTab(1);
41    }
42  
43    /**
44     * Inits the.
45     *
46     * @throws Exception the exception
47     */
48    public void init() throws Exception {
49      getChild(UIContentSearchForm.class).init();
50    }
51  }