Source Code Cross Referenced for TimeBase.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » component » 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 » com.sun.rave.web.ui.component 
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:        package com.sun.rave.web.ui.component;
042:
043:        import java.io.IOException;
044:        import javax.faces.component.UIComponent;
045:        import javax.faces.context.FacesContext;
046:        import javax.faces.el.MethodBinding;
047:        import javax.faces.el.ValueBinding;
048:
049:        /**
050:         * This component is for internal use only
051:         * <p>Auto-generated component class.
052:         * Do <strong>NOT</strong> modify; all changes
053:         * <strong>will</strong> be lost!</p>
054:         */
055:
056:        public abstract class TimeBase extends javax.faces.component.UIInput {
057:
058:            /**
059:             * <p>Construct a new <code>TimeBase</code>.</p>
060:             */
061:            public TimeBase() {
062:                super ();
063:                setRendererType("com.sun.rave.web.ui.Time");
064:            }
065:
066:            /**
067:             * <p>Return the identifier of the component family to which this
068:             * component belongs.  This identifier, in conjunction with the value
069:             * of the <code>rendererType</code> property, may be used to select
070:             * the appropriate {@link Renderer} for this component instance.</p>
071:             */
072:            public String getFamily() {
073:                return "com.sun.rave.web.ui.Time";
074:            }
075:
076:            // disabled
077:            private boolean disabled = false;
078:            private boolean disabled_set = false;
079:
080:            /**
081:             * <p>Flag indicating that the user is not permitted to activate this
082:             *         component, and that the component's value will not be submitted with the
083:             *         form.</p>
084:             */
085:            public boolean isDisabled() {
086:                if (this .disabled_set) {
087:                    return this .disabled;
088:                }
089:                ValueBinding _vb = getValueBinding("disabled");
090:                if (_vb != null) {
091:                    Object _result = _vb.getValue(getFacesContext());
092:                    if (_result == null) {
093:                        return false;
094:                    } else {
095:                        return ((Boolean) _result).booleanValue();
096:                    }
097:                }
098:                return false;
099:            }
100:
101:            /**
102:             * <p>Flag indicating that the user is not permitted to activate this
103:             *         component, and that the component's value will not be submitted with the
104:             *         form.</p>
105:             * @see #isDisabled()
106:             */
107:            public void setDisabled(boolean disabled) {
108:                this .disabled = disabled;
109:                this .disabled_set = true;
110:            }
111:
112:            // readOnly
113:            private boolean readOnly = false;
114:            private boolean readOnly_set = false;
115:
116:            /**
117:             * <p>If this attribute is set to true, the value of the component is
118:             *       rendered as text, preceded by the label if one was defined.</p>
119:             */
120:            public boolean isReadOnly() {
121:                if (this .readOnly_set) {
122:                    return this .readOnly;
123:                }
124:                ValueBinding _vb = getValueBinding("readOnly");
125:                if (_vb != null) {
126:                    Object _result = _vb.getValue(getFacesContext());
127:                    if (_result == null) {
128:                        return false;
129:                    } else {
130:                        return ((Boolean) _result).booleanValue();
131:                    }
132:                }
133:                return false;
134:            }
135:
136:            /**
137:             * <p>If this attribute is set to true, the value of the component is
138:             *       rendered as text, preceded by the label if one was defined.</p>
139:             * @see #isReadOnly()
140:             */
141:            public void setReadOnly(boolean readOnly) {
142:                this .readOnly = readOnly;
143:                this .readOnly_set = true;
144:            }
145:
146:            // style
147:            private String style = null;
148:
149:            /**
150:             * <p>CSS style(s) to be applied when this component is rendered.</p>
151:             */
152:            public String getStyle() {
153:                if (this .style != null) {
154:                    return this .style;
155:                }
156:                ValueBinding _vb = getValueBinding("style");
157:                if (_vb != null) {
158:                    return (String) _vb.getValue(getFacesContext());
159:                }
160:                return null;
161:            }
162:
163:            /**
164:             * <p>CSS style(s) to be applied when this component is rendered.</p>
165:             * @see #getStyle()
166:             */
167:            public void setStyle(String style) {
168:                this .style = style;
169:            }
170:
171:            // styleClass
172:            private String styleClass = null;
173:
174:            /**
175:             * <p>CSS style class(es) to be applied when this component is rendered.</p>
176:             */
177:            public String getStyleClass() {
178:                if (this .styleClass != null) {
179:                    return this .styleClass;
180:                }
181:                ValueBinding _vb = getValueBinding("styleClass");
182:                if (_vb != null) {
183:                    return (String) _vb.getValue(getFacesContext());
184:                }
185:                return null;
186:            }
187:
188:            /**
189:             * <p>CSS style class(es) to be applied when this component is rendered.</p>
190:             * @see #getStyleClass()
191:             */
192:            public void setStyleClass(String styleClass) {
193:                this .styleClass = styleClass;
194:            }
195:
196:            // tabIndex
197:            private int tabIndex = Integer.MIN_VALUE;
198:            private boolean tabIndex_set = false;
199:
200:            /**
201:             * <p>The position of this component in the tabbing order sequence</p>
202:             */
203:            public int getTabIndex() {
204:                if (this .tabIndex_set) {
205:                    return this .tabIndex;
206:                }
207:                ValueBinding _vb = getValueBinding("tabIndex");
208:                if (_vb != null) {
209:                    Object _result = _vb.getValue(getFacesContext());
210:                    if (_result == null) {
211:                        return Integer.MIN_VALUE;
212:                    } else {
213:                        return ((Integer) _result).intValue();
214:                    }
215:                }
216:                return Integer.MIN_VALUE;
217:            }
218:
219:            /**
220:             * <p>The position of this component in the tabbing order sequence</p>
221:             * @see #getTabIndex()
222:             */
223:            public void setTabIndex(int tabIndex) {
224:                this .tabIndex = tabIndex;
225:                this .tabIndex_set = true;
226:            }
227:
228:            // timeZone
229:            private java.util.TimeZone timeZone = null;
230:
231:            /**
232:             * <p>A binding to a Time Zone instance to use for this Scheduler. If none is
233:             * 	specified, the Scheduler uses the default TimeZone from the Schedulers
234:             * 	locale.</p>
235:             */
236:            public java.util.TimeZone getTimeZone() {
237:                if (this .timeZone != null) {
238:                    return this .timeZone;
239:                }
240:                ValueBinding _vb = getValueBinding("timeZone");
241:                if (_vb != null) {
242:                    return (java.util.TimeZone) _vb.getValue(getFacesContext());
243:                }
244:                return null;
245:            }
246:
247:            /**
248:             * <p>A binding to a Time Zone instance to use for this Scheduler. If none is
249:             * 	specified, the Scheduler uses the default TimeZone from the Schedulers
250:             * 	locale.</p>
251:             * @see #getTimeZone()
252:             */
253:            public void setTimeZone(java.util.TimeZone timeZone) {
254:                this .timeZone = timeZone;
255:            }
256:
257:            // visible
258:            private boolean visible = false;
259:            private boolean visible_set = false;
260:
261:            /**
262:             * <p>Use the visible attribute to indicate whether the component should be
263:             *     viewable by the user in the rendered HTML page. If set to false, the
264:             *     HTML code for the component is present in the page, but the component
265:             *     is hidden with style attributes. By default, visible is set to true, so
266:             *     HTML for the component HTML is included and visible to the user. If the
267:             *     component is not visible, it can still be processed on subsequent form
268:             *     submissions because the HTML is present.</p>
269:             */
270:            public boolean isVisible() {
271:                if (this .visible_set) {
272:                    return this .visible;
273:                }
274:                ValueBinding _vb = getValueBinding("visible");
275:                if (_vb != null) {
276:                    Object _result = _vb.getValue(getFacesContext());
277:                    if (_result == null) {
278:                        return false;
279:                    } else {
280:                        return ((Boolean) _result).booleanValue();
281:                    }
282:                }
283:                return true;
284:            }
285:
286:            /**
287:             * <p>Use the visible attribute to indicate whether the component should be
288:             *     viewable by the user in the rendered HTML page. If set to false, the
289:             *     HTML code for the component is present in the page, but the component
290:             *     is hidden with style attributes. By default, visible is set to true, so
291:             *     HTML for the component HTML is included and visible to the user. If the
292:             *     component is not visible, it can still be processed on subsequent form
293:             *     submissions because the HTML is present.</p>
294:             * @see #isVisible()
295:             */
296:            public void setVisible(boolean visible) {
297:                this .visible = visible;
298:                this .visible_set = true;
299:            }
300:
301:            /**
302:             * <p>Restore the state of this component.</p>
303:             */
304:            public void restoreState(FacesContext _context, Object _state) {
305:                Object _values[] = (Object[]) _state;
306:                super .restoreState(_context, _values[0]);
307:                this .disabled = ((Boolean) _values[1]).booleanValue();
308:                this .disabled_set = ((Boolean) _values[2]).booleanValue();
309:                this .readOnly = ((Boolean) _values[3]).booleanValue();
310:                this .readOnly_set = ((Boolean) _values[4]).booleanValue();
311:                this .style = (String) _values[5];
312:                this .styleClass = (String) _values[6];
313:                this .tabIndex = ((Integer) _values[7]).intValue();
314:                this .tabIndex_set = ((Boolean) _values[8]).booleanValue();
315:                this .timeZone = (java.util.TimeZone) _values[9];
316:                this .visible = ((Boolean) _values[10]).booleanValue();
317:                this .visible_set = ((Boolean) _values[11]).booleanValue();
318:            }
319:
320:            /**
321:             * <p>Save the state of this component.</p>
322:             */
323:            public Object saveState(FacesContext _context) {
324:                Object _values[] = new Object[12];
325:                _values[0] = super .saveState(_context);
326:                _values[1] = this .disabled ? Boolean.TRUE : Boolean.FALSE;
327:                _values[2] = this .disabled_set ? Boolean.TRUE : Boolean.FALSE;
328:                _values[3] = this .readOnly ? Boolean.TRUE : Boolean.FALSE;
329:                _values[4] = this .readOnly_set ? Boolean.TRUE : Boolean.FALSE;
330:                _values[5] = this .style;
331:                _values[6] = this .styleClass;
332:                _values[7] = new Integer(this .tabIndex);
333:                _values[8] = this .tabIndex_set ? Boolean.TRUE : Boolean.FALSE;
334:                _values[9] = this .timeZone;
335:                _values[10] = this .visible ? Boolean.TRUE : Boolean.FALSE;
336:                _values[11] = this.visible_set ? Boolean.TRUE : Boolean.FALSE;
337:                return _values;
338:            }
339:
340:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.