001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)Page1.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package charting;
030:
031: import com.sun.rave.web.ui.appbase.AbstractPageBean;
032: import com.sun.web.ui.component.Body;
033: import com.sun.web.ui.component.Form;
034: import com.sun.web.ui.component.Head;
035: import com.sun.web.ui.component.Html;
036: import com.sun.web.ui.component.Link;
037: import com.sun.web.ui.component.Page;
038: import javax.faces.FacesException;
039:
040: /**
041: * <p>Page bean that corresponds to a similarly named JSP page. This
042: * class contains component definitions (and initialization code) for
043: * all components that you have defined on this page, as well as
044: * lifecycle methods and event handlers where you may add behavior
045: * to respond to incoming events.</p>
046: */
047: public class Page1 extends AbstractPageBean {
048: // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
049: private int __placeholder;
050:
051: /**
052: * <p>Automatically managed component initialization. <strong>WARNING:</strong>
053: * This method is automatically generated, so any user-specified code inserted
054: * here is subject to being replaced.</p>
055: */
056: private void _init() throws Exception {
057: }
058:
059: private Page page1 = new Page();
060:
061: public Page getPage1() {
062: return page1;
063: }
064:
065: public void setPage1(Page p) {
066: this .page1 = p;
067: }
068:
069: private Html html1 = new Html();
070:
071: public Html getHtml1() {
072: return html1;
073: }
074:
075: public void setHtml1(Html h) {
076: this .html1 = h;
077: }
078:
079: private Head head1 = new Head();
080:
081: public Head getHead1() {
082: return head1;
083: }
084:
085: public void setHead1(Head h) {
086: this .head1 = h;
087: }
088:
089: private Link link1 = new Link();
090:
091: public Link getLink1() {
092: return link1;
093: }
094:
095: public void setLink1(Link l) {
096: this .link1 = l;
097: }
098:
099: private Body body1 = new Body();
100:
101: public Body getBody1() {
102: return body1;
103: }
104:
105: public void setBody1(Body b) {
106: this .body1 = b;
107: }
108:
109: private Form form1 = new Form();
110:
111: public Form getForm1() {
112: return form1;
113: }
114:
115: public void setForm1(Form f) {
116: this .form1 = f;
117: }
118:
119: // </editor-fold>
120:
121: /**
122: * <p>Construct a new Page bean instance.</p>
123: */
124: public Page1() {
125: }
126:
127: /**
128: * <p>Callback method that is called whenever a page is navigated to,
129: * either directly via a URL, or indirectly via page navigation.
130: * Customize this method to acquire resources that will be needed
131: * for event handlers and lifecycle methods, whether or not this
132: * page is performing post back processing.</p>
133: *
134: * <p>Note that, if the current request is a postback, the property
135: * values of the components do <strong>not</strong> represent any
136: * values submitted with this request. Instead, they represent the
137: * property values that were saved for this view when it was rendered.</p>
138: */
139: public void init() {
140: // Perform initializations inherited from our superclass
141: super .init();
142: // Perform application initialization that must complete
143: // *before* managed components are initialized
144: // TODO - add your own initialiation code here
145:
146: // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
147: // Initialize automatically managed components
148: // *Note* - this logic should NOT be modified
149: try {
150: _init();
151: } catch (Exception e) {
152: log("Page1 Initialization Failure", e);
153: throw e instanceof FacesException ? (FacesException) e
154: : new FacesException(e);
155: }
156:
157: // </editor-fold>
158: // Perform application initialization that must complete
159: // *after* managed components are initialized
160: // TODO - add your own initialization code here
161: }
162:
163: /**
164: * <p>Callback method that is called after the component tree has been
165: * restored, but before any event processing takes place. This method
166: * will <strong>only</strong> be called on a postback request that
167: * is processing a form submit. Customize this method to allocate
168: * resources that will be required in your event handlers.</p>
169: */
170: public void preprocess() {
171: }
172:
173: /**
174: * <p>Callback method that is called just before rendering takes place.
175: * This method will <strong>only</strong> be called for the page that
176: * will actually be rendered (and not, for example, on a page that
177: * handled a postback and then navigated to a different page). Customize
178: * this method to allocate resources that will be required for rendering
179: * this page.</p>
180: */
181: public void prerender() {
182: }
183:
184: /**
185: * <p>Callback method that is called after rendering is completed for
186: * this request, if <code>init()</code> was called (regardless of whether
187: * or not this was the page that was actually rendered). Customize this
188: * method to release resources acquired in the <code>init()</code>,
189: * <code>preprocess()</code>, or <code>prerender()</code> methods (or
190: * acquired during execution of an event handler).</p>
191: */
192: public void destroy() {
193: }
194: }
|