Source Code Cross Referenced for HtmlFormBeanInfoBase.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » faces » dt » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.faces.dt.component.html 
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 org.netbeans.modules.visualweb.faces.dt.component.html;
042:
043:        import com.sun.rave.propertyeditors.DomainPropertyEditor;
044:        import com.sun.rave.propertyeditors.SelectOneDomainEditor;
045:        import java.beans.BeanDescriptor;
046:        import java.beans.IntrospectionException;
047:        import java.beans.PropertyDescriptor;
048:        import java.util.Locale;
049:        import java.util.ResourceBundle;
050:
051:        import com.sun.rave.designtime.CategoryDescriptor;
052:        import com.sun.rave.designtime.Constants;
053:        import com.sun.rave.designtime.faces.FacetDescriptor;
054:        import com.sun.rave.designtime.markup.AttributeDescriptor;
055:        import com.sun.rave.propertyeditors.domains.TextDirectionDomain;
056:
057:        import org.netbeans.modules.visualweb.faces.dt.HtmlBeanInfoBase;
058:        import org.netbeans.modules.visualweb.faces.dt.BeanDescriptorBase;
059:        import org.netbeans.modules.visualweb.faces.dt.PropertyDescriptorBase;
060:
061:        abstract class HtmlFormBeanInfoBase extends HtmlBeanInfoBase {
062:
063:            protected static ResourceBundle resources = ResourceBundle
064:                    .getBundle(
065:                            "org.netbeans.modules.visualweb.faces.dt.component.html.Bundle-JSF-base",
066:                            Locale.getDefault(), HtmlFormBeanInfoBase.class
067:                                    .getClassLoader());
068:
069:            /**
070:             * <p>Construct a new <code>HtmlFormBeanInfoBase</code>.</p>
071:             */
072:            public HtmlFormBeanInfoBase() {
073:
074:                beanClass = javax.faces.component.html.HtmlForm.class;
075:                iconFileName_C16 = "/org/netbeans/modules/visualweb/faces/dt/component/html/HtmlForm_C16";
076:                iconFileName_C32 = "/org/netbeans/modules/visualweb/faces/dt/component/html/HtmlForm_C32";
077:                iconFileName_M16 = "/org/netbeans/modules/visualweb/faces/dt/component/html/HtmlForm_M16";
078:                iconFileName_M32 = "/org/netbeans/modules/visualweb/faces/dt/component/html/HtmlForm_M32";
079:
080:            }
081:
082:            private BeanDescriptor beanDescriptor;
083:
084:            /**
085:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
086:             */
087:            public BeanDescriptor getBeanDescriptor() {
088:
089:                if (beanDescriptor != null) {
090:                    return beanDescriptor;
091:                }
092:
093:                beanDescriptor = new BeanDescriptorBase(beanClass);
094:                beanDescriptor.setDisplayName(resources
095:                        .getString("HtmlForm_DisplayName"));
096:                beanDescriptor.setShortDescription(resources
097:                        .getString("HtmlForm_Description"));
098:                beanDescriptor.setExpert(false);
099:                beanDescriptor.setHidden(false);
100:                beanDescriptor.setPreferred(false);
101:                beanDescriptor.setValue(
102:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
103:                        getFacetDescriptors());
104:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
105:                        "projrave_ui_elements_palette_jsfstd_form");
106:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
107:                        "form");
108:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
109:                        Boolean.TRUE);
110:                beanDescriptor.setValue(
111:                        Constants.BeanDescriptor.MARKUP_SECTION, "body");
112:                beanDescriptor.setValue(
113:                        Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
114:                        "projrave_ui_elements_propsheets_jsfstd_form_props");
115:                beanDescriptor.setValue(
116:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
117:                        getCategoryDescriptors());
118:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
119:                        "form");
120:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
121:                        "h");
122:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
123:                        "http://java.sun.com/jsf/html");
124:                return beanDescriptor;
125:
126:            }
127:
128:            /**
129:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
130:             */
131:            private CategoryDescriptor[] getCategoryDescriptors() {
132:
133:                return com.sun.rave.designtime.base.CategoryDescriptors
134:                        .getDefaultCategoryDescriptors();
135:
136:            }
137:
138:            /**
139:             * <p>The cached facet descriptors.</p>
140:             */
141:            protected FacetDescriptor[] facetDescriptors;
142:
143:            /**
144:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
145:             */
146:            public FacetDescriptor[] getFacetDescriptors() {
147:
148:                if (facetDescriptors != null) {
149:                    return facetDescriptors;
150:                }
151:                facetDescriptors = new FacetDescriptor[] {};
152:                return facetDescriptors;
153:
154:            }
155:
156:            private PropertyDescriptor[] propDescriptors;
157:
158:            /**
159:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
160:             */
161:            public PropertyDescriptor[] getPropertyDescriptors() {
162:
163:                if (propDescriptors != null) {
164:                    return propDescriptors;
165:                }
166:                AttributeDescriptor attrib = null;
167:
168:                try {
169:
170:                    PropertyDescriptor prop_accept = new PropertyDescriptorBase(
171:                            "accept", beanClass, "getAccept", "setAccept");
172:                    prop_accept.setDisplayName(resources
173:                            .getString("HtmlForm_accept_DisplayName"));
174:                    prop_accept.setShortDescription(resources
175:                            .getString("HtmlForm_accept_Description"));
176:                    prop_accept
177:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
178:                    prop_accept.setExpert(false);
179:                    prop_accept.setHidden(false);
180:                    prop_accept.setPreferred(false);
181:                    attrib = new AttributeDescriptor("accept", false, null,
182:                            true);
183:                    prop_accept.setValue(
184:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
185:                            attrib);
186:                    prop_accept
187:                            .setValue(
188:                                    Constants.PropertyDescriptor.CATEGORY,
189:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
190:                    prop_accept
191:                            .setValue(
192:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
193:                                    com.sun.rave.propertyeditors.domains.MimeTypesDomain.class);
194:
195:                    PropertyDescriptor prop_acceptcharset = new PropertyDescriptorBase(
196:                            "acceptcharset", beanClass, "getAcceptcharset",
197:                            "setAcceptcharset");
198:                    prop_acceptcharset.setDisplayName(resources
199:                            .getString("HtmlForm_acceptcharset_DisplayName"));
200:                    prop_acceptcharset.setShortDescription(resources
201:                            .getString("HtmlForm_acceptcharset_Description"));
202:                    prop_acceptcharset.setExpert(false);
203:                    prop_acceptcharset.setHidden(false);
204:                    prop_acceptcharset.setPreferred(false);
205:                    attrib = new AttributeDescriptor("acceptcharset", false,
206:                            null, true);
207:                    prop_acceptcharset.setValue(
208:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
209:                            attrib);
210:                    prop_acceptcharset
211:                            .setValue(
212:                                    Constants.PropertyDescriptor.CATEGORY,
213:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
214:
215:                    PropertyDescriptor prop_attributes = new PropertyDescriptorBase(
216:                            "attributes", beanClass, "getAttributes", null);
217:                    prop_attributes.setDisplayName(resources
218:                            .getString("HtmlForm_attributes_DisplayName"));
219:                    prop_attributes.setShortDescription(resources
220:                            .getString("HtmlForm_attributes_Description"));
221:                    prop_attributes.setExpert(false);
222:                    prop_attributes.setHidden(true);
223:                    prop_attributes.setPreferred(false);
224:                    prop_attributes
225:                            .setValue(
226:                                    Constants.PropertyDescriptor.CATEGORY,
227:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
228:
229:                    PropertyDescriptor prop_childCount = new PropertyDescriptorBase(
230:                            "childCount", beanClass, "getChildCount", null);
231:                    prop_childCount.setDisplayName(resources
232:                            .getString("HtmlForm_childCount_DisplayName"));
233:                    prop_childCount.setShortDescription(resources
234:                            .getString("HtmlForm_childCount_Description"));
235:                    prop_childCount.setExpert(false);
236:                    prop_childCount.setHidden(true);
237:                    prop_childCount.setPreferred(false);
238:                    prop_childCount
239:                            .setValue(
240:                                    Constants.PropertyDescriptor.CATEGORY,
241:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
242:
243:                    PropertyDescriptor prop_children = new PropertyDescriptorBase(
244:                            "children", beanClass, "getChildren", null);
245:                    prop_children.setDisplayName(resources
246:                            .getString("HtmlForm_children_DisplayName"));
247:                    prop_children.setShortDescription(resources
248:                            .getString("HtmlForm_children_Description"));
249:                    prop_children.setExpert(false);
250:                    prop_children.setHidden(true);
251:                    prop_children.setPreferred(false);
252:                    prop_children
253:                            .setValue(
254:                                    Constants.PropertyDescriptor.CATEGORY,
255:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
256:
257:                    PropertyDescriptor prop_dir = new PropertyDescriptorBase(
258:                            "dir", beanClass, "getDir", "setDir");
259:                    prop_dir.setDisplayName(resources
260:                            .getString("HtmlForm_dir_DisplayName"));
261:                    prop_dir.setShortDescription(resources
262:                            .getString("HtmlForm_dir_Description"));
263:                    prop_dir
264:                            .setPropertyEditorClass(SelectOneDomainEditor.class);
265:                    prop_dir.setExpert(false);
266:                    prop_dir.setHidden(false);
267:                    prop_dir.setPreferred(false);
268:                    attrib = new AttributeDescriptor("dir", false, null, true);
269:                    prop_dir.setValue(
270:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
271:                            attrib);
272:                    prop_dir
273:                            .setValue(
274:                                    Constants.PropertyDescriptor.CATEGORY,
275:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
276:                    prop_dir.setValue(DomainPropertyEditor.DOMAIN_CLASS,
277:                            TextDirectionDomain.class);
278:
279:                    PropertyDescriptor prop_enctype = new PropertyDescriptorBase(
280:                            "enctype", beanClass, "getEnctype", "setEnctype");
281:                    prop_enctype.setDisplayName(resources
282:                            .getString("HtmlForm_enctype_DisplayName"));
283:                    prop_enctype.setShortDescription(resources
284:                            .getString("HtmlForm_enctype_Description"));
285:                    prop_enctype
286:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
287:                    prop_enctype.setExpert(false);
288:                    prop_enctype.setHidden(false);
289:                    prop_enctype.setPreferred(false);
290:                    attrib = new AttributeDescriptor("enctype", false,
291:                            "\"application/x-www-form-urlencoded\"", true);
292:                    prop_enctype.setValue(
293:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
294:                            attrib);
295:                    prop_enctype
296:                            .setValue(
297:                                    Constants.PropertyDescriptor.CATEGORY,
298:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
299:                    prop_enctype
300:                            .setValue(
301:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
302:                                    com.sun.rave.propertyeditors.domains.MimeTypesDomain.class);
303:
304:                    PropertyDescriptor prop_facets = new PropertyDescriptorBase(
305:                            "facets", beanClass, "getFacets", null);
306:                    prop_facets.setDisplayName(resources
307:                            .getString("HtmlForm_facets_DisplayName"));
308:                    prop_facets.setShortDescription(resources
309:                            .getString("HtmlForm_facets_Description"));
310:                    prop_facets.setExpert(false);
311:                    prop_facets.setHidden(true);
312:                    prop_facets.setPreferred(false);
313:                    prop_facets
314:                            .setValue(
315:                                    Constants.PropertyDescriptor.CATEGORY,
316:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
317:
318:                    PropertyDescriptor prop_family = new PropertyDescriptorBase(
319:                            "family", beanClass, "getFamily", null);
320:                    prop_family.setDisplayName(resources
321:                            .getString("HtmlForm_family_DisplayName"));
322:                    prop_family.setShortDescription(resources
323:                            .getString("HtmlForm_family_Description"));
324:                    prop_family.setExpert(false);
325:                    prop_family.setHidden(true);
326:                    prop_family.setPreferred(false);
327:                    prop_family
328:                            .setValue(
329:                                    Constants.PropertyDescriptor.CATEGORY,
330:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
331:
332:                    PropertyDescriptor prop_id = new PropertyDescriptorBase(
333:                            "id", beanClass, "getId", "setId");
334:                    prop_id.setDisplayName(resources
335:                            .getString("HtmlForm_id_DisplayName"));
336:                    prop_id.setShortDescription(resources
337:                            .getString("HtmlForm_id_Description"));
338:                    prop_id.setExpert(false);
339:                    prop_id.setHidden(true);
340:                    prop_id.setPreferred(false);
341:                    attrib = new AttributeDescriptor("id", false, null, true);
342:                    prop_id.setValue(
343:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
344:                            attrib);
345:                    prop_id
346:                            .setValue(
347:                                    Constants.PropertyDescriptor.CATEGORY,
348:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
349:
350:                    PropertyDescriptor prop_lang = new PropertyDescriptorBase(
351:                            "lang", beanClass, "getLang", "setLang");
352:                    prop_lang.setDisplayName(resources
353:                            .getString("HtmlForm_lang_DisplayName"));
354:                    prop_lang.setShortDescription(resources
355:                            .getString("HtmlForm_lang_Description"));
356:                    prop_lang
357:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
358:                    prop_lang.setExpert(false);
359:                    prop_lang.setHidden(false);
360:                    prop_lang.setPreferred(false);
361:                    attrib = new AttributeDescriptor("lang", false, null, true);
362:                    prop_lang.setValue(
363:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
364:                            attrib);
365:                    prop_lang
366:                            .setValue(
367:                                    Constants.PropertyDescriptor.CATEGORY,
368:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
369:                    prop_lang
370:                            .setValue(
371:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
372:                                    com.sun.rave.propertyeditors.domains.LanguagesDomain.class);
373:
374:                    PropertyDescriptor prop_onclick = new PropertyDescriptorBase(
375:                            "onclick", beanClass, "getOnclick", "setOnclick");
376:                    prop_onclick.setDisplayName(resources
377:                            .getString("HtmlForm_onclick_DisplayName"));
378:                    prop_onclick.setShortDescription(resources
379:                            .getString("HtmlForm_onclick_Description"));
380:                    prop_onclick
381:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
382:                    prop_onclick.setExpert(false);
383:                    prop_onclick.setHidden(false);
384:                    prop_onclick.setPreferred(false);
385:                    attrib = new AttributeDescriptor("onclick", false, null,
386:                            true);
387:                    prop_onclick.setValue(
388:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
389:                            attrib);
390:                    prop_onclick
391:                            .setValue(
392:                                    Constants.PropertyDescriptor.CATEGORY,
393:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
394:
395:                    PropertyDescriptor prop_ondblclick = new PropertyDescriptorBase(
396:                            "ondblclick", beanClass, "getOndblclick",
397:                            "setOndblclick");
398:                    prop_ondblclick.setDisplayName(resources
399:                            .getString("HtmlForm_ondblclick_DisplayName"));
400:                    prop_ondblclick.setShortDescription(resources
401:                            .getString("HtmlForm_ondblclick_Description"));
402:                    prop_ondblclick
403:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
404:                    prop_ondblclick.setExpert(false);
405:                    prop_ondblclick.setHidden(false);
406:                    prop_ondblclick.setPreferred(false);
407:                    attrib = new AttributeDescriptor("ondblclick", false, null,
408:                            true);
409:                    prop_ondblclick.setValue(
410:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
411:                            attrib);
412:                    prop_ondblclick
413:                            .setValue(
414:                                    Constants.PropertyDescriptor.CATEGORY,
415:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
416:
417:                    PropertyDescriptor prop_onkeydown = new PropertyDescriptorBase(
418:                            "onkeydown", beanClass, "getOnkeydown",
419:                            "setOnkeydown");
420:                    prop_onkeydown.setDisplayName(resources
421:                            .getString("HtmlForm_onkeydown_DisplayName"));
422:                    prop_onkeydown.setShortDescription(resources
423:                            .getString("HtmlForm_onkeydown_Description"));
424:                    prop_onkeydown
425:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
426:                    prop_onkeydown.setExpert(false);
427:                    prop_onkeydown.setHidden(false);
428:                    prop_onkeydown.setPreferred(false);
429:                    attrib = new AttributeDescriptor("onkeydown", false, null,
430:                            true);
431:                    prop_onkeydown.setValue(
432:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
433:                            attrib);
434:                    prop_onkeydown
435:                            .setValue(
436:                                    Constants.PropertyDescriptor.CATEGORY,
437:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
438:
439:                    PropertyDescriptor prop_onkeypress = new PropertyDescriptorBase(
440:                            "onkeypress", beanClass, "getOnkeypress",
441:                            "setOnkeypress");
442:                    prop_onkeypress.setDisplayName(resources
443:                            .getString("HtmlForm_onkeypress_DisplayName"));
444:                    prop_onkeypress.setShortDescription(resources
445:                            .getString("HtmlForm_onkeypress_Description"));
446:                    prop_onkeypress
447:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
448:                    prop_onkeypress.setExpert(false);
449:                    prop_onkeypress.setHidden(false);
450:                    prop_onkeypress.setPreferred(false);
451:                    attrib = new AttributeDescriptor("onkeypress", false, null,
452:                            true);
453:                    prop_onkeypress.setValue(
454:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
455:                            attrib);
456:                    prop_onkeypress
457:                            .setValue(
458:                                    Constants.PropertyDescriptor.CATEGORY,
459:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
460:
461:                    PropertyDescriptor prop_onkeyup = new PropertyDescriptorBase(
462:                            "onkeyup", beanClass, "getOnkeyup", "setOnkeyup");
463:                    prop_onkeyup.setDisplayName(resources
464:                            .getString("HtmlForm_onkeyup_DisplayName"));
465:                    prop_onkeyup.setShortDescription(resources
466:                            .getString("HtmlForm_onkeyup_Description"));
467:                    prop_onkeyup
468:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
469:                    prop_onkeyup.setExpert(false);
470:                    prop_onkeyup.setHidden(false);
471:                    prop_onkeyup.setPreferred(false);
472:                    attrib = new AttributeDescriptor("onkeyup", false, null,
473:                            true);
474:                    prop_onkeyup.setValue(
475:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
476:                            attrib);
477:                    prop_onkeyup
478:                            .setValue(
479:                                    Constants.PropertyDescriptor.CATEGORY,
480:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
481:
482:                    PropertyDescriptor prop_onmousedown = new PropertyDescriptorBase(
483:                            "onmousedown", beanClass, "getOnmousedown",
484:                            "setOnmousedown");
485:                    prop_onmousedown.setDisplayName(resources
486:                            .getString("HtmlForm_onmousedown_DisplayName"));
487:                    prop_onmousedown.setShortDescription(resources
488:                            .getString("HtmlForm_onmousedown_Description"));
489:                    prop_onmousedown
490:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
491:                    prop_onmousedown.setExpert(false);
492:                    prop_onmousedown.setHidden(false);
493:                    prop_onmousedown.setPreferred(false);
494:                    attrib = new AttributeDescriptor("onmousedown", false,
495:                            null, true);
496:                    prop_onmousedown.setValue(
497:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
498:                            attrib);
499:                    prop_onmousedown
500:                            .setValue(
501:                                    Constants.PropertyDescriptor.CATEGORY,
502:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
503:
504:                    PropertyDescriptor prop_onmousemove = new PropertyDescriptorBase(
505:                            "onmousemove", beanClass, "getOnmousemove",
506:                            "setOnmousemove");
507:                    prop_onmousemove.setDisplayName(resources
508:                            .getString("HtmlForm_onmousemove_DisplayName"));
509:                    prop_onmousemove.setShortDescription(resources
510:                            .getString("HtmlForm_onmousemove_Description"));
511:                    prop_onmousemove
512:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
513:                    prop_onmousemove.setExpert(false);
514:                    prop_onmousemove.setHidden(false);
515:                    prop_onmousemove.setPreferred(false);
516:                    attrib = new AttributeDescriptor("onmousemove", false,
517:                            null, true);
518:                    prop_onmousemove.setValue(
519:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
520:                            attrib);
521:                    prop_onmousemove
522:                            .setValue(
523:                                    Constants.PropertyDescriptor.CATEGORY,
524:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
525:
526:                    PropertyDescriptor prop_onmouseout = new PropertyDescriptorBase(
527:                            "onmouseout", beanClass, "getOnmouseout",
528:                            "setOnmouseout");
529:                    prop_onmouseout.setDisplayName(resources
530:                            .getString("HtmlForm_onmouseout_DisplayName"));
531:                    prop_onmouseout.setShortDescription(resources
532:                            .getString("HtmlForm_onmouseout_Description"));
533:                    prop_onmouseout
534:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
535:                    prop_onmouseout.setExpert(false);
536:                    prop_onmouseout.setHidden(false);
537:                    prop_onmouseout.setPreferred(false);
538:                    attrib = new AttributeDescriptor("onmouseout", false, null,
539:                            true);
540:                    prop_onmouseout.setValue(
541:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
542:                            attrib);
543:                    prop_onmouseout
544:                            .setValue(
545:                                    Constants.PropertyDescriptor.CATEGORY,
546:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
547:
548:                    PropertyDescriptor prop_onmouseover = new PropertyDescriptorBase(
549:                            "onmouseover", beanClass, "getOnmouseover",
550:                            "setOnmouseover");
551:                    prop_onmouseover.setDisplayName(resources
552:                            .getString("HtmlForm_onmouseover_DisplayName"));
553:                    prop_onmouseover.setShortDescription(resources
554:                            .getString("HtmlForm_onmouseover_Description"));
555:                    prop_onmouseover
556:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
557:                    prop_onmouseover.setExpert(false);
558:                    prop_onmouseover.setHidden(false);
559:                    prop_onmouseover.setPreferred(false);
560:                    attrib = new AttributeDescriptor("onmouseover", false,
561:                            null, true);
562:                    prop_onmouseover.setValue(
563:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
564:                            attrib);
565:                    prop_onmouseover
566:                            .setValue(
567:                                    Constants.PropertyDescriptor.CATEGORY,
568:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
569:
570:                    PropertyDescriptor prop_onmouseup = new PropertyDescriptorBase(
571:                            "onmouseup", beanClass, "getOnmouseup",
572:                            "setOnmouseup");
573:                    prop_onmouseup.setDisplayName(resources
574:                            .getString("HtmlForm_onmouseup_DisplayName"));
575:                    prop_onmouseup.setShortDescription(resources
576:                            .getString("HtmlForm_onmouseup_Description"));
577:                    prop_onmouseup
578:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
579:                    prop_onmouseup.setExpert(false);
580:                    prop_onmouseup.setHidden(false);
581:                    prop_onmouseup.setPreferred(false);
582:                    attrib = new AttributeDescriptor("onmouseup", false, null,
583:                            true);
584:                    prop_onmouseup.setValue(
585:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
586:                            attrib);
587:                    prop_onmouseup
588:                            .setValue(
589:                                    Constants.PropertyDescriptor.CATEGORY,
590:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
591:
592:                    PropertyDescriptor prop_onreset = new PropertyDescriptorBase(
593:                            "onreset", beanClass, "getOnreset", "setOnreset");
594:                    prop_onreset.setDisplayName(resources
595:                            .getString("HtmlForm_onreset_DisplayName"));
596:                    prop_onreset.setShortDescription(resources
597:                            .getString("HtmlForm_onreset_Description"));
598:                    prop_onreset
599:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
600:                    prop_onreset.setExpert(false);
601:                    prop_onreset.setHidden(false);
602:                    prop_onreset.setPreferred(false);
603:                    attrib = new AttributeDescriptor("onreset", false, null,
604:                            true);
605:                    prop_onreset.setValue(
606:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
607:                            attrib);
608:                    prop_onreset
609:                            .setValue(
610:                                    Constants.PropertyDescriptor.CATEGORY,
611:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
612:
613:                    PropertyDescriptor prop_onsubmit = new PropertyDescriptorBase(
614:                            "onsubmit", beanClass, "getOnsubmit", "setOnsubmit");
615:                    prop_onsubmit.setDisplayName(resources
616:                            .getString("HtmlForm_onsubmit_DisplayName"));
617:                    prop_onsubmit.setShortDescription(resources
618:                            .getString("HtmlForm_onsubmit_Description"));
619:                    prop_onsubmit
620:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
621:                    prop_onsubmit.setExpert(false);
622:                    prop_onsubmit.setHidden(false);
623:                    prop_onsubmit.setPreferred(false);
624:                    attrib = new AttributeDescriptor("onsubmit", false, null,
625:                            true);
626:                    prop_onsubmit.setValue(
627:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
628:                            attrib);
629:                    prop_onsubmit
630:                            .setValue(
631:                                    Constants.PropertyDescriptor.CATEGORY,
632:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
633:
634:                    PropertyDescriptor prop_parent = new PropertyDescriptorBase(
635:                            "parent", beanClass, "getParent", null);
636:                    prop_parent.setDisplayName(resources
637:                            .getString("HtmlForm_parent_DisplayName"));
638:                    prop_parent.setShortDescription(resources
639:                            .getString("HtmlForm_parent_Description"));
640:                    prop_parent.setExpert(false);
641:                    prop_parent.setHidden(true);
642:                    prop_parent.setPreferred(false);
643:                    prop_parent
644:                            .setValue(
645:                                    Constants.PropertyDescriptor.CATEGORY,
646:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
647:
648:                    PropertyDescriptor prop_rendered = new PropertyDescriptorBase(
649:                            "rendered", beanClass, "isRendered", "setRendered");
650:                    prop_rendered.setDisplayName(resources
651:                            .getString("HtmlForm_rendered_DisplayName"));
652:                    prop_rendered.setShortDescription(resources
653:                            .getString("HtmlForm_rendered_Description"));
654:                    prop_rendered.setExpert(false);
655:                    prop_rendered.setHidden(false);
656:                    prop_rendered.setPreferred(false);
657:                    attrib = new AttributeDescriptor("rendered", false, null,
658:                            true);
659:                    prop_rendered.setValue(
660:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
661:                            attrib);
662:                    prop_rendered
663:                            .setValue(
664:                                    Constants.PropertyDescriptor.CATEGORY,
665:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
666:
667:                    PropertyDescriptor prop_rendererType = new PropertyDescriptorBase(
668:                            "rendererType", beanClass, "getRendererType",
669:                            "setRendererType");
670:                    prop_rendererType.setDisplayName(resources
671:                            .getString("HtmlForm_rendererType_DisplayName"));
672:                    prop_rendererType.setShortDescription(resources
673:                            .getString("HtmlForm_rendererType_Description"));
674:                    prop_rendererType.setExpert(false);
675:                    prop_rendererType.setHidden(true);
676:                    prop_rendererType.setPreferred(false);
677:                    prop_rendererType
678:                            .setValue(
679:                                    Constants.PropertyDescriptor.CATEGORY,
680:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
681:
682:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptorBase(
683:                            "rendersChildren", beanClass, "getRendersChildren",
684:                            null);
685:                    prop_rendersChildren.setDisplayName(resources
686:                            .getString("HtmlForm_rendersChildren_DisplayName"));
687:                    prop_rendersChildren.setShortDescription(resources
688:                            .getString("HtmlForm_rendersChildren_Description"));
689:                    prop_rendersChildren.setExpert(false);
690:                    prop_rendersChildren.setHidden(true);
691:                    prop_rendersChildren.setPreferred(false);
692:                    prop_rendersChildren
693:                            .setValue(
694:                                    Constants.PropertyDescriptor.CATEGORY,
695:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
696:
697:                    PropertyDescriptor prop_style = new PropertyDescriptorBase(
698:                            "style", beanClass, "getStyle", "setStyle");
699:                    prop_style.setDisplayName(resources
700:                            .getString("HtmlForm_style_DisplayName"));
701:                    prop_style.setShortDescription(resources
702:                            .getString("HtmlForm_style_Description"));
703:                    prop_style
704:                            .setPropertyEditorClass(com.sun.rave.propertyeditors.css.CssStylePropertyEditor.class);
705:                    prop_style.setExpert(false);
706:                    prop_style.setHidden(false);
707:                    prop_style.setPreferred(false);
708:                    attrib = new AttributeDescriptor("style", false, null, true);
709:                    prop_style.setValue(
710:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
711:                            attrib);
712:                    prop_style
713:                            .setValue(
714:                                    Constants.PropertyDescriptor.CATEGORY,
715:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
716:
717:                    PropertyDescriptor prop_styleClass = new PropertyDescriptorBase(
718:                            "styleClass", beanClass, "getStyleClass",
719:                            "setStyleClass");
720:                    prop_styleClass.setDisplayName(resources
721:                            .getString("HtmlForm_styleClass_DisplayName"));
722:                    prop_styleClass.setShortDescription(resources
723:                            .getString("HtmlForm_styleClass_Description"));
724:                    prop_styleClass
725:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
726:                    prop_styleClass.setExpert(false);
727:                    prop_styleClass.setHidden(false);
728:                    prop_styleClass.setPreferred(false);
729:                    attrib = new AttributeDescriptor("styleClass", false, null,
730:                            true);
731:                    prop_styleClass.setValue(
732:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
733:                            attrib);
734:                    prop_styleClass
735:                            .setValue(
736:                                    Constants.PropertyDescriptor.CATEGORY,
737:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
738:
739:                    PropertyDescriptor prop_submitted = new PropertyDescriptorBase(
740:                            "submitted", beanClass, "isSubmitted",
741:                            "setSubmitted");
742:                    prop_submitted.setDisplayName(resources
743:                            .getString("HtmlForm_submitted_DisplayName"));
744:                    prop_submitted.setShortDescription(resources
745:                            .getString("HtmlForm_submitted_Description"));
746:                    prop_submitted.setExpert(false);
747:                    prop_submitted.setHidden(false);
748:                    prop_submitted.setPreferred(false);
749:                    prop_submitted
750:                            .setValue(
751:                                    Constants.PropertyDescriptor.CATEGORY,
752:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
753:
754:                    PropertyDescriptor prop_target = new PropertyDescriptorBase(
755:                            "target", beanClass, "getTarget", "setTarget");
756:                    prop_target.setDisplayName(resources
757:                            .getString("HtmlForm_target_DisplayName"));
758:                    prop_target.setShortDescription(resources
759:                            .getString("HtmlForm_target_Description"));
760:                    prop_target
761:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
762:                    prop_target.setExpert(false);
763:                    prop_target.setHidden(false);
764:                    prop_target.setPreferred(false);
765:                    attrib = new AttributeDescriptor("target", false, null,
766:                            true);
767:                    prop_target.setValue(
768:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
769:                            attrib);
770:                    prop_target
771:                            .setValue(
772:                                    Constants.PropertyDescriptor.CATEGORY,
773:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
774:                    prop_target
775:                            .setValue(
776:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
777:                                    com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain.class);
778:
779:                    PropertyDescriptor prop_title = new PropertyDescriptorBase(
780:                            "title", beanClass, "getTitle", "setTitle");
781:                    prop_title.setDisplayName(resources
782:                            .getString("HtmlForm_title_DisplayName"));
783:                    prop_title.setShortDescription(resources
784:                            .getString("HtmlForm_title_Description"));
785:                    prop_title.setExpert(false);
786:                    prop_title.setHidden(false);
787:                    prop_title.setPreferred(false);
788:                    attrib = new AttributeDescriptor("title", false, null, true);
789:                    prop_title.setValue(
790:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
791:                            attrib);
792:                    prop_title
793:                            .setValue(
794:                                    Constants.PropertyDescriptor.CATEGORY,
795:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
796:
797:                    propDescriptors = new PropertyDescriptor[] { prop_accept,
798:                            prop_acceptcharset, prop_attributes,
799:                            prop_childCount, prop_children, prop_dir,
800:                            prop_enctype, prop_facets, prop_family, prop_id,
801:                            prop_lang, prop_onclick, prop_ondblclick,
802:                            prop_onkeydown, prop_onkeypress, prop_onkeyup,
803:                            prop_onmousedown, prop_onmousemove,
804:                            prop_onmouseout, prop_onmouseover, prop_onmouseup,
805:                            prop_onreset, prop_onsubmit, prop_parent,
806:                            prop_rendered, prop_rendererType,
807:                            prop_rendersChildren, prop_style, prop_styleClass,
808:                            prop_submitted, prop_target, prop_title, };
809:                    return propDescriptors;
810:
811:                } catch (IntrospectionException e) {
812:                    e.printStackTrace();
813:                    return null;
814:                }
815:
816:            }
817:
818:        }
w_ww__.j___a__v___a___2_s._c__o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.