Source Code Cross Referenced for HtmlMessage.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.UIMessage;
026:        import javax.faces.context.FacesContext;
027:
028:        /**
029:         */
030:        public class HtmlMessage extends UIMessage {
031:
032:            static public final String COMPONENT_FAMILY = "javax.faces.Message";
033:            static public final String COMPONENT_TYPE = "javax.faces.HtmlMessage";
034:
035:            /**
036:             * Construct an instance of the HtmlMessage.
037:             */
038:            public HtmlMessage() {
039:                setRendererType("javax.faces.Message");
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: infoClass
188:            private String _infoClass;
189:
190:            /**
191:             * Gets CSS class to be used for messages with severity "INFO".
192:             *
193:             * @return  the new infoClass value
194:             */
195:            public String getInfoClass() {
196:                if (_infoClass != null) {
197:                    return _infoClass;
198:                }
199:                ValueExpression expression = getValueExpression("infoClass");
200:                if (expression != null) {
201:                    return (String) expression.getValue(getFacesContext()
202:                            .getELContext());
203:                }
204:                return null;
205:            }
206:
207:            /**
208:             * Sets CSS class to be used for messages with severity "INFO".
209:             * 
210:             * @param infoClass  the new infoClass value
211:             */
212:            public void setInfoClass(String infoClass) {
213:                this ._infoClass = infoClass;
214:            }
215:
216:            // Property: infoStyle
217:            private String _infoStyle;
218:
219:            /**
220:             * Gets CSS style to be used for messages with severity "INFO".
221:             *
222:             * @return  the new infoStyle value
223:             */
224:            public String getInfoStyle() {
225:                if (_infoStyle != null) {
226:                    return _infoStyle;
227:                }
228:                ValueExpression expression = getValueExpression("infoStyle");
229:                if (expression != null) {
230:                    return (String) expression.getValue(getFacesContext()
231:                            .getELContext());
232:                }
233:                return null;
234:            }
235:
236:            /**
237:             * Sets CSS style to be used for messages with severity "INFO".
238:             * 
239:             * @param infoStyle  the new infoStyle value
240:             */
241:            public void setInfoStyle(String infoStyle) {
242:                this ._infoStyle = infoStyle;
243:            }
244:
245:            // Property: warnClass
246:            private String _warnClass;
247:
248:            /**
249:             * Gets CSS class to be used for messages with severity "WARN".
250:             *
251:             * @return  the new warnClass value
252:             */
253:            public String getWarnClass() {
254:                if (_warnClass != null) {
255:                    return _warnClass;
256:                }
257:                ValueExpression expression = getValueExpression("warnClass");
258:                if (expression != null) {
259:                    return (String) expression.getValue(getFacesContext()
260:                            .getELContext());
261:                }
262:                return null;
263:            }
264:
265:            /**
266:             * Sets CSS class to be used for messages with severity "WARN".
267:             * 
268:             * @param warnClass  the new warnClass value
269:             */
270:            public void setWarnClass(String warnClass) {
271:                this ._warnClass = warnClass;
272:            }
273:
274:            // Property: warnStyle
275:            private String _warnStyle;
276:
277:            /**
278:             * Gets CSS style to be used for messages with severity "WARN".
279:             *
280:             * @return  the new warnStyle value
281:             */
282:            public String getWarnStyle() {
283:                if (_warnStyle != null) {
284:                    return _warnStyle;
285:                }
286:                ValueExpression expression = getValueExpression("warnStyle");
287:                if (expression != null) {
288:                    return (String) expression.getValue(getFacesContext()
289:                            .getELContext());
290:                }
291:                return null;
292:            }
293:
294:            /**
295:             * Sets CSS style to be used for messages with severity "WARN".
296:             * 
297:             * @param warnStyle  the new warnStyle value
298:             */
299:            public void setWarnStyle(String warnStyle) {
300:                this ._warnStyle = warnStyle;
301:            }
302:
303:            // Property: errorClass
304:            private String _errorClass;
305:
306:            /**
307:             * Gets CSS class to be used for messages with severity "ERROR".
308:             *
309:             * @return  the new errorClass value
310:             */
311:            public String getErrorClass() {
312:                if (_errorClass != null) {
313:                    return _errorClass;
314:                }
315:                ValueExpression expression = getValueExpression("errorClass");
316:                if (expression != null) {
317:                    return (String) expression.getValue(getFacesContext()
318:                            .getELContext());
319:                }
320:                return null;
321:            }
322:
323:            /**
324:             * Sets CSS class to be used for messages with severity "ERROR".
325:             * 
326:             * @param errorClass  the new errorClass value
327:             */
328:            public void setErrorClass(String errorClass) {
329:                this ._errorClass = errorClass;
330:            }
331:
332:            // Property: errorStyle
333:            private String _errorStyle;
334:
335:            /**
336:             * Gets CSS style to be used for messages with severity "ERROR".
337:             *
338:             * @return  the new errorStyle value
339:             */
340:            public String getErrorStyle() {
341:                if (_errorStyle != null) {
342:                    return _errorStyle;
343:                }
344:                ValueExpression expression = getValueExpression("errorStyle");
345:                if (expression != null) {
346:                    return (String) expression.getValue(getFacesContext()
347:                            .getELContext());
348:                }
349:                return null;
350:            }
351:
352:            /**
353:             * Sets CSS style to be used for messages with severity "ERROR".
354:             * 
355:             * @param errorStyle  the new errorStyle value
356:             */
357:            public void setErrorStyle(String errorStyle) {
358:                this ._errorStyle = errorStyle;
359:            }
360:
361:            // Property: fatalClass
362:            private String _fatalClass;
363:
364:            /**
365:             * Gets CSS class to be used for messages with severity "FATAL".
366:             *
367:             * @return  the new fatalClass value
368:             */
369:            public String getFatalClass() {
370:                if (_fatalClass != null) {
371:                    return _fatalClass;
372:                }
373:                ValueExpression expression = getValueExpression("fatalClass");
374:                if (expression != null) {
375:                    return (String) expression.getValue(getFacesContext()
376:                            .getELContext());
377:                }
378:                return null;
379:            }
380:
381:            /**
382:             * Sets CSS class to be used for messages with severity "FATAL".
383:             * 
384:             * @param fatalClass  the new fatalClass value
385:             */
386:            public void setFatalClass(String fatalClass) {
387:                this ._fatalClass = fatalClass;
388:            }
389:
390:            // Property: fatalStyle
391:            private String _fatalStyle;
392:
393:            /**
394:             * Gets CSS style to be used for messages with severity "FATAL".
395:             *
396:             * @return  the new fatalStyle value
397:             */
398:            public String getFatalStyle() {
399:                if (_fatalStyle != null) {
400:                    return _fatalStyle;
401:                }
402:                ValueExpression expression = getValueExpression("fatalStyle");
403:                if (expression != null) {
404:                    return (String) expression.getValue(getFacesContext()
405:                            .getELContext());
406:                }
407:                return null;
408:            }
409:
410:            /**
411:             * Sets CSS style to be used for messages with severity "FATAL".
412:             * 
413:             * @param fatalStyle  the new fatalStyle value
414:             */
415:            public void setFatalStyle(String fatalStyle) {
416:                this ._fatalStyle = fatalStyle;
417:            }
418:
419:            // Property: tooltip
420:            private boolean _tooltip;
421:            private boolean _tooltipSet;
422:
423:            /**
424:             * Gets If true, the message summary will be rendered as a tooltip (i.e. HTML title attribute).
425:             *
426:             * @return  the new tooltip value
427:             */
428:            public boolean isTooltip() {
429:                if (_tooltipSet) {
430:                    return _tooltip;
431:                }
432:                ValueExpression expression = getValueExpression("tooltip");
433:                if (expression != null) {
434:                    return (Boolean) expression.getValue(getFacesContext()
435:                            .getELContext());
436:                }
437:                return false;
438:            }
439:
440:            /**
441:             * Sets If true, the message summary will be rendered as a tooltip (i.e. HTML title attribute).
442:             * 
443:             * @param tooltip  the new tooltip value
444:             */
445:            public void setTooltip(boolean tooltip) {
446:                this ._tooltip = tooltip;
447:                this ._tooltipSet = true;
448:            }
449:
450:            @Override
451:            public Object saveState(FacesContext facesContext) {
452:                Object[] values = new Object[16];
453:                values[0] = super .saveState(facesContext);
454:                values[1] = _style;
455:                values[2] = _styleClass;
456:                values[3] = _dir;
457:                values[4] = _lang;
458:                values[5] = _title;
459:                values[6] = _infoClass;
460:                values[7] = _infoStyle;
461:                values[8] = _warnClass;
462:                values[9] = _warnStyle;
463:                values[10] = _errorClass;
464:                values[11] = _errorStyle;
465:                values[12] = _fatalClass;
466:                values[13] = _fatalStyle;
467:                values[14] = _tooltip;
468:                values[15] = _tooltipSet;
469:
470:                return values;
471:            }
472:
473:            @Override
474:            public void restoreState(FacesContext facesContext, Object state) {
475:                Object[] values = (Object[]) state;
476:                super .restoreState(facesContext, values[0]);
477:                _style = (String) values[1];
478:                _styleClass = (String) values[2];
479:                _dir = (String) values[3];
480:                _lang = (String) values[4];
481:                _title = (String) values[5];
482:                _infoClass = (String) values[6];
483:                _infoStyle = (String) values[7];
484:                _warnClass = (String) values[8];
485:                _warnStyle = (String) values[9];
486:                _errorClass = (String) values[10];
487:                _errorStyle = (String) values[11];
488:                _fatalClass = (String) values[12];
489:                _fatalStyle = (String) values[13];
490:                _tooltip = (Boolean) values[14];
491:                _tooltipSet = (Boolean) values[15];
492:            }
493:
494:            @Override
495:            public String getFamily() {
496:                return COMPONENT_FAMILY;
497:            }
498:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.