Source Code Cross Referenced for Header.java in  » IDE-Netbeans » visualweb.api.designer » vehicleincidentreportapplication » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » vehicleincidentreportapplication 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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 com.sun.webui.jsf.component.ImageComponent;
047:        import com.sun.webui.jsf.component.StaticText;
048:        import javax.faces.FacesException;
049:        import javax.faces.component.html.HtmlPanelGrid;
050:
051:        /**
052:         * <p>Fragment bean that corresponds to a similarly named JSP page
053:         * fragment.  This class contains component definitions (and initialization
054:         * code) for all components that you have defined on this fragment, as well as
055:         * lifecycle methods and event handlers where you may add behavior
056:         * to respond to incoming events.</p>
057:         */
058:        public class Header extends AbstractFragmentBean {
059:            // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
060:            private int __placeholder;
061:
062:            /**
063:             * <p>Automatically managed component initialization. <strong>WARNING:</strong>
064:             * This method is automatically generated, so any user-specified code inserted
065:             * here is subject to being replaced.</p>
066:             */
067:            private void _init() throws Exception {
068:            }
069:
070:            private HtmlPanelGrid header = new HtmlPanelGrid();
071:
072:            public HtmlPanelGrid getHeader() {
073:                return header;
074:            }
075:
076:            public void setHeader(HtmlPanelGrid hpg) {
077:                this .header = hpg;
078:            }
079:
080:            private HtmlPanelGrid subHeader = new HtmlPanelGrid();
081:
082:            public HtmlPanelGrid getSubHeader() {
083:                return subHeader;
084:            }
085:
086:            public void setSubHeader(HtmlPanelGrid hpg) {
087:                this .subHeader = hpg;
088:            }
089:
090:            private HtmlPanelGrid headerGrid = new HtmlPanelGrid();
091:
092:            public HtmlPanelGrid getHeaderGrid() {
093:                return headerGrid;
094:            }
095:
096:            public void setHeaderGrid(HtmlPanelGrid hpg) {
097:                this .headerGrid = hpg;
098:            }
099:
100:            private HtmlPanelGrid subHeaderGrid = new HtmlPanelGrid();
101:
102:            public HtmlPanelGrid getSubHeaderGrid() {
103:                return subHeaderGrid;
104:            }
105:
106:            public void setSubHeaderGrid(HtmlPanelGrid hpg) {
107:                this .subHeaderGrid = hpg;
108:            }
109:
110:            private HtmlPanelGrid logoGrid = new HtmlPanelGrid();
111:
112:            public HtmlPanelGrid getLogoGrid() {
113:                return logoGrid;
114:            }
115:
116:            public void setLogoGrid(HtmlPanelGrid hpg) {
117:                this .logoGrid = hpg;
118:            }
119:
120:            private HtmlPanelGrid appNameGrid = new HtmlPanelGrid();
121:
122:            public HtmlPanelGrid getAppNameGrid() {
123:                return appNameGrid;
124:            }
125:
126:            public void setAppNameGrid(HtmlPanelGrid hpg) {
127:                this .appNameGrid = hpg;
128:            }
129:
130:            private ImageComponent logoImage = new ImageComponent();
131:
132:            public ImageComponent getLogoImage() {
133:                return logoImage;
134:            }
135:
136:            public void setLogoImage(ImageComponent ic) {
137:                this .logoImage = ic;
138:            }
139:
140:            private StaticText appNameDark = new StaticText();
141:
142:            public StaticText getAppNameDark() {
143:                return appNameDark;
144:            }
145:
146:            public void setAppNameDark(StaticText st) {
147:                this .appNameDark = st;
148:            }
149:
150:            private StaticText appNameBar = new StaticText();
151:
152:            public StaticText getAppNameBar() {
153:                return appNameBar;
154:            }
155:
156:            public void setAppNameBar(StaticText st) {
157:                this .appNameBar = st;
158:            }
159:
160:            private StaticText appNameLight = new StaticText();
161:
162:            public StaticText getAppNameLight() {
163:                return appNameLight;
164:            }
165:
166:            public void setAppNameLight(StaticText st) {
167:                this .appNameLight = st;
168:            }
169:
170:            private HtmlPanelGrid searchCell = new HtmlPanelGrid();
171:
172:            public HtmlPanelGrid getSearchCell() {
173:                return searchCell;
174:            }
175:
176:            public void setSearchCell(HtmlPanelGrid hpg) {
177:                this .searchCell = hpg;
178:            }
179:
180:            private HtmlPanelGrid profileCell = new HtmlPanelGrid();
181:
182:            public HtmlPanelGrid getProfileCell() {
183:                return profileCell;
184:            }
185:
186:            public void setProfileCell(HtmlPanelGrid hpg) {
187:                this .profileCell = hpg;
188:            }
189:
190:            private HtmlPanelGrid vehiclesCell = new HtmlPanelGrid();
191:
192:            public HtmlPanelGrid getVehiclesCell() {
193:                return vehiclesCell;
194:            }
195:
196:            public void setVehiclesCell(HtmlPanelGrid hpg) {
197:                this .vehiclesCell = hpg;
198:            }
199:
200:            private HtmlPanelGrid loginCell = new HtmlPanelGrid();
201:
202:            public HtmlPanelGrid getLoginCell() {
203:                return loginCell;
204:            }
205:
206:            public void setLoginCell(HtmlPanelGrid hpg) {
207:                this .loginCell = hpg;
208:            }
209:
210:            private HtmlPanelGrid welcomeCell = new HtmlPanelGrid();
211:
212:            public HtmlPanelGrid getWelcomeCell() {
213:                return welcomeCell;
214:            }
215:
216:            public void setWelcomeCell(HtmlPanelGrid hpg) {
217:                this .welcomeCell = hpg;
218:            }
219:
220:            private HtmlPanelGrid logoutCell = new HtmlPanelGrid();
221:
222:            public HtmlPanelGrid getLogoutCell() {
223:                return logoutCell;
224:            }
225:
226:            public void setLogoutCell(HtmlPanelGrid hpg) {
227:                this .logoutCell = hpg;
228:            }
229:
230:            private HtmlPanelGrid helpCell = new HtmlPanelGrid();
231:
232:            public HtmlPanelGrid getHelpCell() {
233:                return helpCell;
234:            }
235:
236:            public void setHelpCell(HtmlPanelGrid hpg) {
237:                this .helpCell = hpg;
238:            }
239:
240:            private Hyperlink searchLink = new Hyperlink();
241:
242:            public Hyperlink getSearchLink() {
243:                return searchLink;
244:            }
245:
246:            public void setSearchLink(Hyperlink h) {
247:                this .searchLink = h;
248:            }
249:
250:            private Hyperlink profileLink = new Hyperlink();
251:
252:            public Hyperlink getProfileLink() {
253:                return profileLink;
254:            }
255:
256:            public void setProfileLink(Hyperlink h) {
257:                this .profileLink = h;
258:            }
259:
260:            private Hyperlink vehiclesLink = new Hyperlink();
261:
262:            public Hyperlink getVehiclesLink() {
263:                return vehiclesLink;
264:            }
265:
266:            public void setVehiclesLink(Hyperlink h) {
267:                this .vehiclesLink = h;
268:            }
269:
270:            private Hyperlink loginLink = new Hyperlink();
271:
272:            public Hyperlink getLoginLink() {
273:                return loginLink;
274:            }
275:
276:            public void setLoginLink(Hyperlink h) {
277:                this .loginLink = h;
278:            }
279:
280:            private Hyperlink logoutLink = new Hyperlink();
281:
282:            public Hyperlink getLogoutLink() {
283:                return logoutLink;
284:            }
285:
286:            public void setLogoutLink(Hyperlink h) {
287:                this .logoutLink = h;
288:            }
289:
290:            private Hyperlink helpLink = new Hyperlink();
291:
292:            public Hyperlink getHelpLink() {
293:                return helpLink;
294:            }
295:
296:            public void setHelpLink(Hyperlink h) {
297:                this .helpLink = h;
298:            }
299:
300:            private StaticText welcome = new StaticText();
301:
302:            public StaticText getWelcome() {
303:                return welcome;
304:            }
305:
306:            public void setWelcome(StaticText st) {
307:                this .welcome = st;
308:            }
309:
310:            // </editor-fold>
311:
312:            public Header() {
313:            }
314:
315:            /**
316:             * <p>Callback method that is called whenever a page containing
317:             * this page fragment is navigated to, either directly via a URL,
318:             * or indirectly via page navigation.  Override this method to acquire
319:             * resources that will be needed for event handlers and lifecycle methods.</p>
320:             * 
321:             * <p>The default implementation does nothing.</p>
322:             */
323:            public void init() {
324:                // Perform initializations inherited from our superclass
325:                super .init();
326:                // Perform application initialization that must complete
327:                // *before* managed components are initialized
328:                // TODO - add your own initialiation code here
329:
330:                // <editor-fold defaultstate="collapsed" desc="Visual-Web-managed Component Initialization">
331:                // Initialize automatically managed components
332:                // *Note* - this logic should NOT be modified
333:                try {
334:                    _init();
335:                } catch (Exception e) {
336:                    log("Page1 Initialization Failure", e);
337:                    throw e instanceof  FacesException ? (FacesException) e
338:                            : new FacesException(e);
339:                }
340:
341:                // </editor-fold>
342:                // Perform application initialization that must complete
343:                // *after* managed components are initialized
344:                // TODO - add your own initialization code here
345:            }
346:
347:            /**
348:             * <p>Callback method that is called after rendering is completed for
349:             * this request, if <code>init()</code> was called.  Override this
350:             * method to release resources acquired in the <code>init()</code>
351:             * resources that will be needed for event handlers and lifecycle methods.</p>
352:             * 
353:             * <p>The default implementation does nothing.</p>
354:             */
355:            public void destroy() {
356:            }
357:
358:            /**
359:             * <p>Return a reference to the scoped data bean.</p>
360:             */
361:            protected ApplicationBean1 getApplicationBean1() {
362:                return (ApplicationBean1) getBean("ApplicationBean1");
363:            }
364:
365:            /**
366:             * <p>Return a reference to the scoped data bean.</p>
367:             */
368:            protected SessionBean1 getSessionBean1() {
369:                return (SessionBean1) getBean("SessionBean1");
370:            }
371:
372:            /**
373:             * <p>Return a reference to the scoped data bean.</p>
374:             */
375:            protected RequestBean1 getRequestBean1() {
376:                return (RequestBean1) getBean("RequestBean1");
377:            }
378:
379:            public String searchLink_action() {
380:                // TODO: Process the action. Return value is a navigation
381:                // case name where null will return to the same page.
382:                return "search";
383:            }
384:
385:            public String profileLink_action() {
386:                // TODO: Process the action. Return value is a navigation
387:                // case name where null will return to the same page.
388:                String result = "login";
389:                if (getSessionBean1().isLoggedIn()) {
390:                    result = "profile";
391:                }
392:                return result;
393:            }
394:
395:            public String vehiclesLink_action() {
396:                // TODO: Process the action. Return value is a navigation
397:                // case name where null will return to the same page.
398:                String result = "login";
399:                if (getSessionBean1().isLoggedIn()) {
400:                    result = "vehicles";
401:                }
402:                return result;
403:            }
404:
405:            public String loginLink_action() {
406:                // TODO: Process the action. Return value is a navigation
407:                // case name where null will return to the same page.
408:                return "login";
409:            }
410:
411:            public String logoutLink_action() {
412:                // TODO: Process the action. Return value is a navigation
413:                // case name where null will return to the same page.
414:                String result = "search";
415:                getSessionBean1().setLoggedIn(false);
416:                getSessionBean1().setLoggedInUserName(null);
417:                return result;
418:            }
419:
420:            public String helpLink_action() {
421:                // TODO: Process the action. Return value is a navigation
422:                // case name where null will return to the same page.
423:                return "help";
424:            }
425:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.