source: tol/TolJava/WebTOLJavaDEMO/src/java/com/hcarralero/toljava/demo/MenuIzquierdo.java @ 9887b93

1941-docker-image-to-testdevel
Last change on this file since 9887b93 was 9887b93, checked in by Humberto Carralero <hacarralero@…>, 15 years ago

Importing TolJava

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3900 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 3.9 KB
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6package com.hcarralero.toljava.demo;
7
8import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
9import com.sun.webui.jsf.component.Tree;
10import com.sun.webui.jsf.component.TreeNode;
11import javax.faces.FacesException;
12
13/**
14 * <p>Fragment bean that corresponds to a similarly named JSP page
15 * fragment.  This class contains component definitions (and initialization
16 * code) for all components that you have defined on this fragment, as well as
17 * lifecycle methods and event handlers where you may add behavior
18 * to respond to incoming events.</p>
19 *
20 * @version MenuIzquierdo.java
21 * @version Created on Nov 28, 2010, 1:52:25 PM
22 * @author hcarralero
23 */
24
25public class MenuIzquierdo extends AbstractFragmentBean {
26    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
27
28    /**
29     * <p>Automatically managed component initialization. <strong>WARNING:</strong>
30     * This method is automatically generated, so any user-specified code inserted
31     * here is subject to being replaced.</p>
32     */
33    private void _init() throws Exception {
34    }
35    private Tree trMenuIzquierdo = new Tree();
36
37    public Tree getTrMenuIzquierdo() {
38        return trMenuIzquierdo;
39    }
40
41    public void setTrMenuIzquierdo(Tree t) {
42        this.trMenuIzquierdo = t;
43    }
44    // </editor-fold>
45
46    public MenuIzquierdo() {
47    }
48
49    /**
50     * <p>Callback method that is called whenever a page containing
51     * this page fragment is navigated to, either directly via a URL,
52     * or indirectly via page navigation.  Override this method to acquire
53     * resources that will be needed for event handlers and lifecycle methods.</p>
54     *
55     * <p>The default implementation does nothing.</p>
56     */
57    @Override
58    public void init() {
59        // Perform initializations inherited from our superclass
60        super.init();
61        // Perform application initialization that must complete
62        // *before* managed components are initialized
63        // TODO - add your own initialiation code here
64       
65       
66        // <editor-fold defaultstate="collapsed" desc="Visual-Web-managed Component Initialization">
67        // Initialize automatically managed components
68        // *Note* - this logic should NOT be modified
69        try {
70            _init();
71        } catch (Exception e) {
72            log("Page1 Initialization Failure", e);
73            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
74        }
75       
76        // </editor-fold>
77        // Perform application initialization that must complete
78        // *after* managed components are initialized
79        // TODO - add your own initialization code here
80    }
81
82    /**
83     * <p>Callback method that is called after rendering is completed for
84     * this request, if <code>init()</code> was called.  Override this
85     * method to release resources acquired in the <code>init()</code>
86     * resources that will be needed for event handlers and lifecycle methods.</p>
87     *
88     * <p>The default implementation does nothing.</p>
89     */
90    @Override
91    public void destroy() {
92    }
93
94    /**
95     * <p>Return a reference to the scoped data bean.</p>
96     *
97     * @return reference to the scoped data bean
98     */
99    protected ApplicationBean1 getApplicationBean1() {
100        return (ApplicationBean1) getBean("ApplicationBean1");
101    }
102
103    /**
104     * <p>Return a reference to the scoped data bean.</p>
105     *
106     * @return reference to the scoped data bean
107     */
108    protected SessionBean1 getSessionBean1() {
109        return (SessionBean1) getBean("SessionBean1");
110    }
111
112    /**
113     * <p>Return a reference to the scoped data bean.</p>
114     *
115     * @return reference to the scoped data bean
116     */
117    protected RequestBean1 getRequestBean1() {
118        return (RequestBean1) getBean("RequestBean1");
119    }
120
121}
Note: See TracBrowser for help on using the repository browser.