Source Code Cross Referenced for HtmlGraphicImage.java in  » J2EE » myfaces-core-1.2.0 » javax » faces » component » html » 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 » J2EE » myfaces core 1.2.0 » javax.faces.component.html 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // WARNING: This file was automatically generated. Do not edit it directly,
002:        //          or you will lose your changes.
003:
004:        /*
005:         * Licensed to the Apache Software Foundation (ASF) under one
006:         * or more contributor license agreements.  See the NOTICE file
007:         * distributed with this work for additional information
008:         * regarding copyright ownership.  The ASF licenses this file
009:         * to you under the Apache License, Version 2.0 (the
010:         * "License"); you may not use this file except in compliance
011:         * with the License.  You may obtain a copy of the License at
012:         *
013:         *   http://www.apache.org/licenses/LICENSE-2.0
014:         *
015:         * Unless required by applicable law or agreed to in writing,
016:         * software distributed under the License is distributed on an
017:         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018:         * KIND, either express or implied.  See the License for the
019:         * specific language governing permissions and limitations
020:         * under the License.
021:         */
022:        package javax.faces.component.html;
023:
024:        import javax.el.ValueExpression;
025:        import javax.faces.component.UIGraphic;
026:        import javax.faces.context.FacesContext;
027:
028:        /**
029:         */
030:        public class HtmlGraphicImage extends UIGraphic {
031:
032:            static public final String COMPONENT_FAMILY = "javax.faces.Graphic";
033:            static public final String COMPONENT_TYPE = "javax.faces.HtmlGraphicImage";
034:
035:            /**
036:             * Construct an instance of the HtmlGraphicImage.
037:             */
038:            public HtmlGraphicImage() {
039:                setRendererType("javax.faces.Image");
040:            }
041:
042:            // Property: style
043:            private String _style;
044:
045:            /**
046:             * Gets CSS styling instructions.
047:             *
048:             * @return  the new style value
049:             */
050:            public String getStyle() {
051:                if (_style != null) {
052:                    return _style;
053:                }
054:                ValueExpression expression = getValueExpression("style");
055:                if (expression != null) {
056:                    return (String) expression.getValue(getFacesContext()
057:                            .getELContext());
058:                }
059:                return null;
060:            }
061:
062:            /**
063:             * Sets CSS styling instructions.
064:             * 
065:             * @param style  the new style value
066:             */
067:            public void setStyle(String style) {
068:                this ._style = style;
069:            }
070:
071:            // Property: styleClass
072:            private String _styleClass;
073:
074:            /**
075:             * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
076:             *
077:             * @return  the new styleClass value
078:             */
079:            public String getStyleClass() {
080:                if (_styleClass != null) {
081:                    return _styleClass;
082:                }
083:                ValueExpression expression = getValueExpression("styleClass");
084:                if (expression != null) {
085:                    return (String) expression.getValue(getFacesContext()
086:                            .getELContext());
087:                }
088:                return null;
089:            }
090:
091:            /**
092:             * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
093:             * 
094:             * @param styleClass  the new styleClass value
095:             */
096:            public void setStyleClass(String styleClass) {
097:                this ._styleClass = styleClass;
098:            }
099:
100:            // Property: dir
101:            private String _dir;
102:
103:            /**
104:             * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
105:             *
106:             * @return  the new dir value
107:             */
108:            public String getDir() {
109:                if (_dir != null) {
110:                    return _dir;
111:                }
112:                ValueExpression expression = getValueExpression("dir");
113:                if (expression != null) {
114:                    return (String) expression.getValue(getFacesContext()
115:                            .getELContext());
116:                }
117:                return null;
118:            }
119:
120:            /**
121:             * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
122:             * 
123:             * @param dir  the new dir value
124:             */
125:            public void setDir(String dir) {
126:                this ._dir = dir;
127:            }
128:
129:            // Property: lang
130:            private String _lang;
131:
132:            /**
133:             * Gets The base language of this document.
134:             *
135:             * @return  the new lang value
136:             */
137:            public String getLang() {
138:                if (_lang != null) {
139:                    return _lang;
140:                }
141:                ValueExpression expression = getValueExpression("lang");
142:                if (expression != null) {
143:                    return (String) expression.getValue(getFacesContext()
144:                            .getELContext());
145:                }
146:                return null;
147:            }
148:
149:            /**
150:             * Sets The base language of this document.
151:             * 
152:             * @param lang  the new lang value
153:             */
154:            public void setLang(String lang) {
155:                this ._lang = lang;
156:            }
157:
158:            // Property: title
159:            private String _title;
160:
161:            /**
162:             * Gets An advisory title for this element. Often used by the user agent as a tooltip.
163:             *
164:             * @return  the new title value
165:             */
166:            public String getTitle() {
167:                if (_title != null) {
168:                    return _title;
169:                }
170:                ValueExpression expression = getValueExpression("title");
171:                if (expression != null) {
172:                    return (String) expression.getValue(getFacesContext()
173:                            .getELContext());
174:                }
175:                return null;
176:            }
177:
178:            /**
179:             * Sets An advisory title for this element. Often used by the user agent as a tooltip.
180:             * 
181:             * @param title  the new title value
182:             */
183:            public void setTitle(String title) {
184:                this ._title = title;
185:            }
186:
187:            // Property: onclick
188:            private String _onclick;
189:
190:            /**
191:             * Gets Script to be invoked when the element is clicked.
192:             *
193:             * @return  the new onclick value
194:             */
195:            public String getOnclick() {
196:                if (_onclick != null) {
197:                    return _onclick;
198:                }
199:                ValueExpression expression = getValueExpression("onclick");
200:                if (expression != null) {
201:                    return (String) expression.getValue(getFacesContext()
202:                            .getELContext());
203:                }
204:                return null;
205:            }
206:
207:            /**
208:             * Sets Script to be invoked when the element is clicked.
209:             * 
210:             * @param onclick  the new onclick value
211:             */
212:            public void setOnclick(String onclick) {
213:                this ._onclick = onclick;
214:            }
215:
216:            // Property: ondblclick
217:            private String _ondblclick;
218:
219:            /**
220:             * Gets Script to be invoked when the element is double-clicked.
221:             *
222:             * @return  the new ondblclick value
223:             */
224:            public String getOndblclick() {
225:                if (_ondblclick != null) {
226:                    return _ondblclick;
227:                }
228:                ValueExpression expression = getValueExpression("ondblclick");
229:                if (expression != null) {
230:                    return (String) expression.getValue(getFacesContext()
231:                            .getELContext());
232:                }
233:                return null;
234:            }
235:
236:            /**
237:             * Sets Script to be invoked when the element is double-clicked.
238:             * 
239:             * @param ondblclick  the new ondblclick value
240:             */
241:            public void setOndblclick(String ondblclick) {
242:                this ._ondblclick = ondblclick;
243:            }
244:
245:            // Property: onmousedown
246:            private String _onmousedown;
247:
248:            /**
249:             * Gets Script to be invoked when the pointing device is pressed over this element.
250:             *
251:             * @return  the new onmousedown value
252:             */
253:            public String getOnmousedown() {
254:                if (_onmousedown != null) {
255:                    return _onmousedown;
256:                }
257:                ValueExpression expression = getValueExpression("onmousedown");
258:                if (expression != null) {
259:                    return (String) expression.getValue(getFacesContext()
260:                            .getELContext());
261:                }
262:                return null;
263:            }
264:
265:            /**
266:             * Sets Script to be invoked when the pointing device is pressed over this element.
267:             * 
268:             * @param onmousedown  the new onmousedown value
269:             */
270:            public void setOnmousedown(String onmousedown) {
271:                this ._onmousedown = onmousedown;
272:            }
273:
274:            // Property: onmouseup
275:            private String _onmouseup;
276:
277:            /**
278:             * Gets Script to be invoked when the pointing device is released over this element.
279:             *
280:             * @return  the new onmouseup value
281:             */
282:            public String getOnmouseup() {
283:                if (_onmouseup != null) {
284:                    return _onmouseup;
285:                }
286:                ValueExpression expression = getValueExpression("onmouseup");
287:                if (expression != null) {
288:                    return (String) expression.getValue(getFacesContext()
289:                            .getELContext());
290:                }
291:                return null;
292:            }
293:
294:            /**
295:             * Sets Script to be invoked when the pointing device is released over this element.
296:             * 
297:             * @param onmouseup  the new onmouseup value
298:             */
299:            public void setOnmouseup(String onmouseup) {
300:                this ._onmouseup = onmouseup;
301:            }
302:
303:            // Property: onmouseover
304:            private String _onmouseover;
305:
306:            /**
307:             * Gets Script to be invoked when the pointing device is moved into this element.
308:             *
309:             * @return  the new onmouseover value
310:             */
311:            public String getOnmouseover() {
312:                if (_onmouseover != null) {
313:                    return _onmouseover;
314:                }
315:                ValueExpression expression = getValueExpression("onmouseover");
316:                if (expression != null) {
317:                    return (String) expression.getValue(getFacesContext()
318:                            .getELContext());
319:                }
320:                return null;
321:            }
322:
323:            /**
324:             * Sets Script to be invoked when the pointing device is moved into this element.
325:             * 
326:             * @param onmouseover  the new onmouseover value
327:             */
328:            public void setOnmouseover(String onmouseover) {
329:                this ._onmouseover = onmouseover;
330:            }
331:
332:            // Property: onmousemove
333:            private String _onmousemove;
334:
335:            /**
336:             * Gets Script to be invoked when the pointing device is moved while it is in this element.
337:             *
338:             * @return  the new onmousemove value
339:             */
340:            public String getOnmousemove() {
341:                if (_onmousemove != null) {
342:                    return _onmousemove;
343:                }
344:                ValueExpression expression = getValueExpression("onmousemove");
345:                if (expression != null) {
346:                    return (String) expression.getValue(getFacesContext()
347:                            .getELContext());
348:                }
349:                return null;
350:            }
351:
352:            /**
353:             * Sets Script to be invoked when the pointing device is moved while it is in this element.
354:             * 
355:             * @param onmousemove  the new onmousemove value
356:             */
357:            public void setOnmousemove(String onmousemove) {
358:                this ._onmousemove = onmousemove;
359:            }
360:
361:            // Property: onmouseout
362:            private String _onmouseout;
363:
364:            /**
365:             * Gets Script to be invoked when the pointing device is moves out of this element.
366:             *
367:             * @return  the new onmouseout value
368:             */
369:            public String getOnmouseout() {
370:                if (_onmouseout != null) {
371:                    return _onmouseout;
372:                }
373:                ValueExpression expression = getValueExpression("onmouseout");
374:                if (expression != null) {
375:                    return (String) expression.getValue(getFacesContext()
376:                            .getELContext());
377:                }
378:                return null;
379:            }
380:
381:            /**
382:             * Sets Script to be invoked when the pointing device is moves out of this element.
383:             * 
384:             * @param onmouseout  the new onmouseout value
385:             */
386:            public void setOnmouseout(String onmouseout) {
387:                this ._onmouseout = onmouseout;
388:            }
389:
390:            // Property: onkeypress
391:            private String _onkeypress;
392:
393:            /**
394:             * Gets Script to be invoked when a key is pressed over this element.
395:             *
396:             * @return  the new onkeypress value
397:             */
398:            public String getOnkeypress() {
399:                if (_onkeypress != null) {
400:                    return _onkeypress;
401:                }
402:                ValueExpression expression = getValueExpression("onkeypress");
403:                if (expression != null) {
404:                    return (String) expression.getValue(getFacesContext()
405:                            .getELContext());
406:                }
407:                return null;
408:            }
409:
410:            /**
411:             * Sets Script to be invoked when a key is pressed over this element.
412:             * 
413:             * @param onkeypress  the new onkeypress value
414:             */
415:            public void setOnkeypress(String onkeypress) {
416:                this ._onkeypress = onkeypress;
417:            }
418:
419:            // Property: onkeydown
420:            private String _onkeydown;
421:
422:            /**
423:             * Gets Script to be invoked when a key is pressed down over this element.
424:             *
425:             * @return  the new onkeydown value
426:             */
427:            public String getOnkeydown() {
428:                if (_onkeydown != null) {
429:                    return _onkeydown;
430:                }
431:                ValueExpression expression = getValueExpression("onkeydown");
432:                if (expression != null) {
433:                    return (String) expression.getValue(getFacesContext()
434:                            .getELContext());
435:                }
436:                return null;
437:            }
438:
439:            /**
440:             * Sets Script to be invoked when a key is pressed down over this element.
441:             * 
442:             * @param onkeydown  the new onkeydown value
443:             */
444:            public void setOnkeydown(String onkeydown) {
445:                this ._onkeydown = onkeydown;
446:            }
447:
448:            // Property: onkeyup
449:            private String _onkeyup;
450:
451:            /**
452:             * Gets Script to be invoked when a key is released over this element.
453:             *
454:             * @return  the new onkeyup value
455:             */
456:            public String getOnkeyup() {
457:                if (_onkeyup != null) {
458:                    return _onkeyup;
459:                }
460:                ValueExpression expression = getValueExpression("onkeyup");
461:                if (expression != null) {
462:                    return (String) expression.getValue(getFacesContext()
463:                            .getELContext());
464:                }
465:                return null;
466:            }
467:
468:            /**
469:             * Sets Script to be invoked when a key is released over this element.
470:             * 
471:             * @param onkeyup  the new onkeyup value
472:             */
473:            public void setOnkeyup(String onkeyup) {
474:                this ._onkeyup = onkeyup;
475:            }
476:
477:            // Property: alt
478:            private String _alt;
479:
480:            /**
481:             * Gets Specifies alternative text that can be used by a browser that can't show this element.
482:             *
483:             * @return  the new alt value
484:             */
485:            public String getAlt() {
486:                if (_alt != null) {
487:                    return _alt;
488:                }
489:                ValueExpression expression = getValueExpression("alt");
490:                if (expression != null) {
491:                    return (String) expression.getValue(getFacesContext()
492:                            .getELContext());
493:                }
494:                return null;
495:            }
496:
497:            /**
498:             * Sets Specifies alternative text that can be used by a browser that can't show this element.
499:             * 
500:             * @param alt  the new alt value
501:             */
502:            public void setAlt(String alt) {
503:                this ._alt = alt;
504:            }
505:
506:            // Property: height
507:            private String _height;
508:
509:            /**
510:             * Gets Overrides the natural height of this image, by specifying height in pixels.
511:             *
512:             * @return  the new height value
513:             */
514:            public String getHeight() {
515:                if (_height != null) {
516:                    return _height;
517:                }
518:                ValueExpression expression = getValueExpression("height");
519:                if (expression != null) {
520:                    return (String) expression.getValue(getFacesContext()
521:                            .getELContext());
522:                }
523:                return null;
524:            }
525:
526:            /**
527:             * Sets Overrides the natural height of this image, by specifying height in pixels.
528:             * 
529:             * @param height  the new height value
530:             */
531:            public void setHeight(String height) {
532:                this ._height = height;
533:            }
534:
535:            // Property: width
536:            private String _width;
537:
538:            /**
539:             * Gets Overrides the natural width of this image, by specifying width in pixels.
540:             *
541:             * @return  the new width value
542:             */
543:            public String getWidth() {
544:                if (_width != null) {
545:                    return _width;
546:                }
547:                ValueExpression expression = getValueExpression("width");
548:                if (expression != null) {
549:                    return (String) expression.getValue(getFacesContext()
550:                            .getELContext());
551:                }
552:                return null;
553:            }
554:
555:            /**
556:             * Sets Overrides the natural width of this image, by specifying width in pixels.
557:             * 
558:             * @param width  the new width value
559:             */
560:            public void setWidth(String width) {
561:                this ._width = width;
562:            }
563:
564:            // Property: longdesc
565:            private String _longdesc;
566:
567:            /**
568:             * Gets A link to a long description of the image.
569:             *
570:             * @return  the new longdesc value
571:             */
572:            public String getLongdesc() {
573:                if (_longdesc != null) {
574:                    return _longdesc;
575:                }
576:                ValueExpression expression = getValueExpression("longdesc");
577:                if (expression != null) {
578:                    return (String) expression.getValue(getFacesContext()
579:                            .getELContext());
580:                }
581:                return null;
582:            }
583:
584:            /**
585:             * Sets A link to a long description of the image.
586:             * 
587:             * @param longdesc  the new longdesc value
588:             */
589:            public void setLongdesc(String longdesc) {
590:                this ._longdesc = longdesc;
591:            }
592:
593:            // Property: usemap
594:            private String _usemap;
595:
596:            /**
597:             * Gets Specifies an image map to use with this image.
598:             *
599:             * @return  the new usemap value
600:             */
601:            public String getUsemap() {
602:                if (_usemap != null) {
603:                    return _usemap;
604:                }
605:                ValueExpression expression = getValueExpression("usemap");
606:                if (expression != null) {
607:                    return (String) expression.getValue(getFacesContext()
608:                            .getELContext());
609:                }
610:                return null;
611:            }
612:
613:            /**
614:             * Sets Specifies an image map to use with this image.
615:             * 
616:             * @param usemap  the new usemap value
617:             */
618:            public void setUsemap(String usemap) {
619:                this ._usemap = usemap;
620:            }
621:
622:            // Property: ismap
623:            private boolean _ismap = false;
624:            private boolean _ismapSet;
625:
626:            /**
627:             * Gets Specifies server-side image map handling for this image.
628:             *
629:             * @return  the new ismap value
630:             */
631:            public boolean isIsmap() {
632:                if (_ismapSet) {
633:                    return _ismap;
634:                }
635:                ValueExpression expression = getValueExpression("ismap");
636:                if (expression != null) {
637:                    return (Boolean) expression.getValue(getFacesContext()
638:                            .getELContext());
639:                }
640:                return false;
641:            }
642:
643:            /**
644:             * Sets Specifies server-side image map handling for this image.
645:             * 
646:             * @param ismap  the new ismap value
647:             */
648:            public void setIsmap(boolean ismap) {
649:                this ._ismap = ismap;
650:                this ._ismapSet = true;
651:            }
652:
653:            @Override
654:            public Object saveState(FacesContext facesContext) {
655:                Object[] values = new Object[23];
656:                values[0] = super .saveState(facesContext);
657:                values[1] = _style;
658:                values[2] = _styleClass;
659:                values[3] = _dir;
660:                values[4] = _lang;
661:                values[5] = _title;
662:                values[6] = _onclick;
663:                values[7] = _ondblclick;
664:                values[8] = _onmousedown;
665:                values[9] = _onmouseup;
666:                values[10] = _onmouseover;
667:                values[11] = _onmousemove;
668:                values[12] = _onmouseout;
669:                values[13] = _onkeypress;
670:                values[14] = _onkeydown;
671:                values[15] = _onkeyup;
672:                values[16] = _alt;
673:                values[17] = _height;
674:                values[18] = _width;
675:                values[19] = _longdesc;
676:                values[20] = _usemap;
677:                values[21] = _ismap;
678:                values[22] = _ismapSet;
679:
680:                return values;
681:            }
682:
683:            @Override
684:            public void restoreState(FacesContext facesContext, Object state) {
685:                Object[] values = (Object[]) state;
686:                super .restoreState(facesContext, values[0]);
687:                _style = (String) values[1];
688:                _styleClass = (String) values[2];
689:                _dir = (String) values[3];
690:                _lang = (String) values[4];
691:                _title = (String) values[5];
692:                _onclick = (String) values[6];
693:                _ondblclick = (String) values[7];
694:                _onmousedown = (String) values[8];
695:                _onmouseup = (String) values[9];
696:                _onmouseover = (String) values[10];
697:                _onmousemove = (String) values[11];
698:                _onmouseout = (String) values[12];
699:                _onkeypress = (String) values[13];
700:                _onkeydown = (String) values[14];
701:                _onkeyup = (String) values[15];
702:                _alt = (String) values[16];
703:                _height = (String) values[17];
704:                _width = (String) values[18];
705:                _longdesc = (String) values[19];
706:                _usemap = (String) values[20];
707:                _ismap = (Boolean) values[21];
708:                _ismapSet = (Boolean) values[22];
709:            }
710:
711:            @Override
712:            public String getFamily() {
713:                return COMPONENT_FAMILY;
714:            }
715:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.