001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package vehicleincidentreportapplication;
043:
044: import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
045: import com.sun.webui.jsf.component.Hyperlink;
046: import javax.faces.FacesException;
047: import javax.faces.component.html.HtmlPanelGrid;
048:
049: /**
050: * <p>Fragment bean that corresponds to a similarly named JSP page
051: * fragment. This class contains component definitions (and initialization
052: * code) for all components that you have defined on this fragment, as well as
053: * lifecycle methods and event handlers where you may add behavior
054: * to respond to incoming events.</p>
055: */
056: public class Footer extends AbstractFragmentBean {
057: // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
058: private int __placeholder;
059:
060: /**
061: * <p>Automatically managed component initialization. <strong>WARNING:</strong>
062: * This method is automatically generated, so any user-specified code inserted
063: * here is subject to being replaced.</p>
064: */
065: private void _init() throws Exception {
066: }
067:
068: private HtmlPanelGrid footer = new HtmlPanelGrid();
069:
070: public HtmlPanelGrid getFooter() {
071: return footer;
072: }
073:
074: public void setFooter(HtmlPanelGrid hpg) {
075: this .footer = hpg;
076: }
077:
078: private HtmlPanelGrid footerGrid = new HtmlPanelGrid();
079:
080: public HtmlPanelGrid getFooterGrid() {
081: return footerGrid;
082: }
083:
084: public void setFooterGrid(HtmlPanelGrid hpg) {
085: this .footerGrid = hpg;
086: }
087:
088: private HtmlPanelGrid feedbackCell = new HtmlPanelGrid();
089:
090: public HtmlPanelGrid getFeedbackCell() {
091: return feedbackCell;
092: }
093:
094: public void setFeedbackCell(HtmlPanelGrid hpg) {
095: this .feedbackCell = hpg;
096: }
097:
098: private Hyperlink feedbackLink = new Hyperlink();
099:
100: public Hyperlink getFeedbackLink() {
101: return feedbackLink;
102: }
103:
104: public void setFeedbackLink(Hyperlink h) {
105: this .feedbackLink = h;
106: }
107:
108: private Hyperlink powerByLink = new Hyperlink();
109:
110: public Hyperlink getPowerByLink() {
111: return powerByLink;
112: }
113:
114: public void setPowerByLink(Hyperlink h) {
115: this .powerByLink = h;
116: }
117:
118: // </editor-fold>
119:
120: public Footer() {
121: }
122:
123: /**
124: * <p>Callback method that is called whenever a page containing
125: * this page fragment is navigated to, either directly via a URL,
126: * or indirectly via page navigation. Override this method to acquire
127: * resources that will be needed for event handlers and lifecycle methods.</p>
128: *
129: * <p>The default implementation does nothing.</p>
130: */
131: public void init() {
132: // Perform initializations inherited from our superclass
133: super .init();
134: // Perform application initialization that must complete
135: // *before* managed components are initialized
136: // TODO - add your own initialiation code here
137:
138: // <editor-fold defaultstate="collapsed" desc="Visual-Web-managed Component Initialization">
139: // Initialize automatically managed components
140: // *Note* - this logic should NOT be modified
141: try {
142: _init();
143: } catch (Exception e) {
144: log("Page1 Initialization Failure", e);
145: throw e instanceof FacesException ? (FacesException) e
146: : new FacesException(e);
147: }
148:
149: // </editor-fold>
150: // Perform application initialization that must complete
151: // *after* managed components are initialized
152: // TODO - add your own initialization code here
153: }
154:
155: /**
156: * <p>Callback method that is called after rendering is completed for
157: * this request, if <code>init()</code> was called. Override this
158: * method to release resources acquired in the <code>init()</code>
159: * resources that will be needed for event handlers and lifecycle methods.</p>
160: *
161: * <p>The default implementation does nothing.</p>
162: */
163: public void destroy() {
164: }
165:
166: /**
167: * <p>Return a reference to the scoped data bean.</p>
168: */
169: protected ApplicationBean1 getApplicationBean1() {
170: return (ApplicationBean1) getBean("ApplicationBean1");
171: }
172:
173: /**
174: * <p>Return a reference to the scoped data bean.</p>
175: */
176: protected SessionBean1 getSessionBean1() {
177: return (SessionBean1) getBean("SessionBean1");
178: }
179:
180: /**
181: * <p>Return a reference to the scoped data bean.</p>
182: */
183: protected RequestBean1 getRequestBean1() {
184: return (RequestBean1) getBean("RequestBean1");
185: }
186: }
|