Source Code Cross Referenced for FormBeanInfoBase.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » web » ui » dt » 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 » org.netbeans.modules.visualweb.web.ui.dt.component 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        //GEN-BEGIN:BeanInfo
002:        /*
003:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
004:         *
005:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
006:         *
007:         * The contents of this file are subject to the terms of either the GNU
008:         * General Public License Version 2 only ("GPL") or the Common
009:         * Development and Distribution License("CDDL") (collectively, the
010:         * "License"). You may not use this file except in compliance with the
011:         * License. You can obtain a copy of the License at
012:         * http://www.netbeans.org/cddl-gplv2.html
013:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
014:         * specific language governing permissions and limitations under the
015:         * License.  When distributing the software, include this License Header
016:         * Notice in each file and include the License file at
017:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
018:         * particular file as subject to the "Classpath" exception as provided
019:         * by Sun in the GPL Version 2 section of the License file that
020:         * accompanied this code. If applicable, add the following below the
021:         * License Header, with the fields enclosed by brackets [] replaced by
022:         * your own identifying information:
023:         * "Portions Copyrighted [year] [name of copyright owner]"
024:         *
025:         * Contributor(s):
026:         *
027:         * The Original Software is NetBeans. The Initial Developer of the Original
028:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
029:         * Microsystems, Inc. All Rights Reserved.
030:         *
031:         * If you wish your version of this file to be governed by only the CDDL
032:         * or only the GPL Version 2, indicate your decision by adding
033:         * "[Contributor] elects to include this software in this distribution
034:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
035:         * single choice of license, a recipient has the option to distribute
036:         * your version of this file under either the CDDL, the GPL Version 2 or
037:         * to extend the choice of license to its licensees as provided above.
038:         * However, if you add GPL Version 2 code and therefore, elected the GPL
039:         * Version 2 license, then the option applies only if the new code is
040:         * made subject to such option by the copyright holder.
041:         */
042:        package org.netbeans.modules.visualweb.web.ui.dt.component;
043:
044:        import java.awt.Image;
045:        import java.beans.BeanDescriptor;
046:        import java.beans.BeanInfo;
047:        import java.beans.IntrospectionException;
048:        import java.beans.PropertyDescriptor;
049:        import java.util.Locale;
050:        import java.util.ResourceBundle;
051:
052:        import com.sun.rave.designtime.CategoryDescriptor;
053:        import com.sun.rave.designtime.Constants;
054:        import com.sun.rave.designtime.faces.FacetDescriptor;
055:        import com.sun.rave.designtime.markup.AttributeDescriptor;
056:
057:        import java.beans.SimpleBeanInfo;
058:
059:        /**
060:         * <p>Auto-generated design time metadata class.
061:         * Do <strong>NOT</strong> modify; all changes
062:         * <strong>will</strong> be lost!</p>
063:         */
064:
065:        abstract class FormBeanInfoBase extends SimpleBeanInfo {
066:
067:            protected static ResourceBundle resources = ResourceBundle
068:                    .getBundle(
069:                            "org.netbeans.modules.visualweb.web.ui.dt.component.Bundle-JSF",
070:                            Locale.getDefault(), FormBeanInfoBase.class
071:                                    .getClassLoader());
072:
073:            /**
074:             * <p>Construct a new <code>FormBeanInfoBase</code>.</p>
075:             */
076:            public FormBeanInfoBase() {
077:
078:                beanClass = com.sun.rave.web.ui.component.Form.class;
079:                defaultPropertyName = "focus";
080:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Form_C16";
081:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Form_C32";
082:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Form_M16";
083:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Form_M32";
084:
085:            }
086:
087:            /**
088:             * <p>The bean class that this BeanInfo represents.
089:             */
090:            protected Class beanClass;
091:
092:            /**
093:             * <p>The cached BeanDescriptor.</p>
094:             */
095:            protected BeanDescriptor beanDescriptor;
096:
097:            /**
098:             * <p>The index of the default property.</p>
099:             */
100:            protected int defaultPropertyIndex = -2;
101:
102:            /**
103:             * <p>The name of the default property.</p>
104:             */
105:            protected String defaultPropertyName;
106:
107:            /**
108:             * <p>The 16x16 color icon.</p>
109:             */
110:            protected String iconFileName_C16;
111:
112:            /**
113:             * <p>The 32x32 color icon.</p>
114:             */
115:            protected String iconFileName_C32;
116:
117:            /**
118:             * <p>The 16x16 monochrome icon.</p>
119:             */
120:            protected String iconFileName_M16;
121:
122:            /**
123:             * <p>The 32x32 monochrome icon.</p>
124:             */
125:            protected String iconFileName_M32;
126:
127:            /**
128:             * <p>The cached property descriptors.</p>
129:             */
130:            protected PropertyDescriptor[] propDescriptors;
131:
132:            /**
133:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
134:             */
135:            public BeanDescriptor getBeanDescriptor() {
136:
137:                if (beanDescriptor != null) {
138:                    return beanDescriptor;
139:                }
140:
141:                beanDescriptor = new BeanDescriptor(beanClass);
142:                beanDescriptor.setDisplayName(resources
143:                        .getString("Form_DisplayName"));
144:                beanDescriptor.setShortDescription(resources
145:                        .getString("Form_Description"));
146:                beanDescriptor.setExpert(false);
147:                beanDescriptor.setHidden(false);
148:                beanDescriptor.setPreferred(false);
149:                beanDescriptor.setValue(
150:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
151:                        getFacetDescriptors());
152:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
153:                        "projrave_ui_elements_palette_bh_form");
154:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155:                        "form");
156:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
157:                        Boolean.TRUE);
158:                beanDescriptor.setValue(
159:                        Constants.BeanDescriptor.MARKUP_SECTION, "body");
160:                beanDescriptor
161:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
162:                                "projrave_ui_elements_palette_bh_propsheets_bh_form_props");
163:                beanDescriptor.setValue(
164:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
165:                        getCategoryDescriptors());
166:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
167:                        "form");
168:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
169:                        "ui");
170:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
171:                        "http://www.sun.com/web/ui");
172:
173:                return beanDescriptor;
174:
175:            }
176:
177:            /**
178:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
179:             */
180:            private CategoryDescriptor[] getCategoryDescriptors() {
181:
182:                return com.sun.rave.designtime.base.CategoryDescriptors
183:                        .getDefaultCategoryDescriptors();
184:
185:            }
186:
187:            /**
188:             * <p>Return the index of the default property, or
189:             * -1 if there is no default property.</p>
190:             */
191:            public int getDefaultPropertyIndex() {
192:
193:                if (defaultPropertyIndex > -2) {
194:                    return defaultPropertyIndex;
195:                } else {
196:                    if (defaultPropertyName == null) {
197:                        defaultPropertyIndex = -1;
198:                    } else {
199:                        PropertyDescriptor pd[] = getPropertyDescriptors();
200:                        for (int i = 0; i < pd.length; i++) {
201:                            if (defaultPropertyName.equals(pd[i].getName())) {
202:                                defaultPropertyIndex = i;
203:                                break;
204:                            }
205:                        }
206:                    }
207:                }
208:                return defaultPropertyIndex;
209:            }
210:
211:            /**
212:             * <p>The cached facet descriptors.</p>
213:             */
214:            protected FacetDescriptor[] facetDescriptors;
215:
216:            /**
217:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
218:             */
219:            public FacetDescriptor[] getFacetDescriptors() {
220:
221:                if (facetDescriptors != null) {
222:                    return facetDescriptors;
223:                }
224:                facetDescriptors = new FacetDescriptor[] {};
225:                return facetDescriptors;
226:
227:            }
228:
229:            /**
230:             * <p>Return the specified image (if any)
231:             * for this component class.</p>
232:             */
233:            public Image getIcon(int kind) {
234:
235:                String name;
236:                switch (kind) {
237:                case ICON_COLOR_16x16:
238:                    name = iconFileName_C16;
239:                    break;
240:                case ICON_COLOR_32x32:
241:                    name = iconFileName_C32;
242:                    break;
243:                case ICON_MONO_16x16:
244:                    name = iconFileName_M16;
245:                    break;
246:                case ICON_MONO_32x32:
247:                    name = iconFileName_M32;
248:                    break;
249:                default:
250:                    name = null;
251:                    break;
252:                }
253:                if (name == null) {
254:                    return null;
255:                }
256:
257:                Image image = loadImage(name + ".png");
258:                if (image == null) {
259:                    image = loadImage(name + ".gif");
260:                }
261:                return image;
262:
263:            }
264:
265:            /**
266:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
267:             */
268:            private java.lang.Class loadClass(java.lang.String name) {
269:
270:                try {
271:                    return Class.forName(name);
272:                } catch (ClassNotFoundException e) {
273:                    throw new RuntimeException(e);
274:                }
275:
276:            }
277:
278:            /**
279:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
280:             */
281:            public PropertyDescriptor[] getPropertyDescriptors() {
282:
283:                if (propDescriptors != null) {
284:                    return propDescriptors;
285:                }
286:                AttributeDescriptor attrib = null;
287:
288:                try {
289:
290:                    PropertyDescriptor prop_autoComplete = new PropertyDescriptor(
291:                            "autoComplete", beanClass, "isAutoComplete",
292:                            "setAutoComplete");
293:                    prop_autoComplete.setDisplayName(resources
294:                            .getString("Form_autoComplete_DisplayName"));
295:                    prop_autoComplete.setShortDescription(resources
296:                            .getString("Form_autoComplete_Description"));
297:                    prop_autoComplete.setExpert(false);
298:                    prop_autoComplete.setHidden(false);
299:                    prop_autoComplete.setPreferred(false);
300:                    attrib = new AttributeDescriptor("autoComplete", false,
301:                            "true", true);
302:                    prop_autoComplete.setValue(
303:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
304:                            attrib);
305:                    prop_autoComplete
306:                            .setValue(
307:                                    Constants.PropertyDescriptor.CATEGORY,
308:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
309:
310:                    PropertyDescriptor prop_enctype = new PropertyDescriptor(
311:                            "enctype", beanClass, "getEnctype", "setEnctype");
312:                    prop_enctype.setDisplayName(resources
313:                            .getString("Form_enctype_DisplayName"));
314:                    prop_enctype.setShortDescription(resources
315:                            .getString("Form_enctype_Description"));
316:                    prop_enctype.setExpert(false);
317:                    prop_enctype.setHidden(false);
318:                    prop_enctype.setPreferred(false);
319:                    attrib = new AttributeDescriptor("enctype", false,
320:                            "\"application/x-www-form-urlencoded\"", true);
321:                    prop_enctype.setValue(
322:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
323:                            attrib);
324:                    prop_enctype
325:                            .setValue(
326:                                    Constants.PropertyDescriptor.CATEGORY,
327:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
328:
329:                    PropertyDescriptor prop_internalVirtualForms = new PropertyDescriptor(
330:                            "internalVirtualForms", beanClass,
331:                            "getInternalVirtualForms",
332:                            "setInternalVirtualForms");
333:                    prop_internalVirtualForms
334:                            .setDisplayName(resources
335:                                    .getString("Form_internalVirtualForms_DisplayName"));
336:                    prop_internalVirtualForms
337:                            .setShortDescription(resources
338:                                    .getString("Form_internalVirtualForms_Description"));
339:                    prop_internalVirtualForms.setExpert(false);
340:                    prop_internalVirtualForms.setHidden(false);
341:                    prop_internalVirtualForms.setPreferred(false);
342:                    prop_internalVirtualForms
343:                            .setValue(
344:                                    Constants.PropertyDescriptor.CATEGORY,
345:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
346:
347:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
348:                            "onClick", beanClass, "getOnClick", "setOnClick");
349:                    prop_onClick.setDisplayName(resources
350:                            .getString("Form_onClick_DisplayName"));
351:                    prop_onClick.setShortDescription(resources
352:                            .getString("Form_onClick_Description"));
353:                    prop_onClick
354:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
355:                    prop_onClick.setExpert(false);
356:                    prop_onClick.setHidden(false);
357:                    prop_onClick.setPreferred(false);
358:                    attrib = new AttributeDescriptor("onClick", false, null,
359:                            true);
360:                    prop_onClick.setValue(
361:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
362:                            attrib);
363:                    prop_onClick
364:                            .setValue(
365:                                    Constants.PropertyDescriptor.CATEGORY,
366:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
367:
368:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
369:                            "onDblClick", beanClass, "getOnDblClick",
370:                            "setOnDblClick");
371:                    prop_onDblClick.setDisplayName(resources
372:                            .getString("Form_onDblClick_DisplayName"));
373:                    prop_onDblClick.setShortDescription(resources
374:                            .getString("Form_onDblClick_Description"));
375:                    prop_onDblClick
376:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
377:                    prop_onDblClick.setExpert(false);
378:                    prop_onDblClick.setHidden(false);
379:                    prop_onDblClick.setPreferred(false);
380:                    attrib = new AttributeDescriptor("onDblClick", false, null,
381:                            true);
382:                    prop_onDblClick.setValue(
383:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
384:                            attrib);
385:                    prop_onDblClick
386:                            .setValue(
387:                                    Constants.PropertyDescriptor.CATEGORY,
388:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
389:
390:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
391:                            "onKeyDown", beanClass, "getOnKeyDown",
392:                            "setOnKeyDown");
393:                    prop_onKeyDown.setDisplayName(resources
394:                            .getString("Form_onKeyDown_DisplayName"));
395:                    prop_onKeyDown.setShortDescription(resources
396:                            .getString("Form_onKeyDown_Description"));
397:                    prop_onKeyDown
398:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
399:                    prop_onKeyDown.setExpert(false);
400:                    prop_onKeyDown.setHidden(false);
401:                    prop_onKeyDown.setPreferred(false);
402:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
403:                            true);
404:                    prop_onKeyDown.setValue(
405:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
406:                            attrib);
407:                    prop_onKeyDown
408:                            .setValue(
409:                                    Constants.PropertyDescriptor.CATEGORY,
410:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
411:
412:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
413:                            "onKeyPress", beanClass, "getOnKeyPress",
414:                            "setOnKeyPress");
415:                    prop_onKeyPress.setDisplayName(resources
416:                            .getString("Form_onKeyPress_DisplayName"));
417:                    prop_onKeyPress.setShortDescription(resources
418:                            .getString("Form_onKeyPress_Description"));
419:                    prop_onKeyPress
420:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
421:                    prop_onKeyPress.setExpert(false);
422:                    prop_onKeyPress.setHidden(false);
423:                    prop_onKeyPress.setPreferred(false);
424:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
425:                            true);
426:                    prop_onKeyPress.setValue(
427:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
428:                            attrib);
429:                    prop_onKeyPress
430:                            .setValue(
431:                                    Constants.PropertyDescriptor.CATEGORY,
432:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
433:
434:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
435:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
436:                    prop_onKeyUp.setDisplayName(resources
437:                            .getString("Form_onKeyUp_DisplayName"));
438:                    prop_onKeyUp.setShortDescription(resources
439:                            .getString("Form_onKeyUp_Description"));
440:                    prop_onKeyUp
441:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
442:                    prop_onKeyUp.setExpert(false);
443:                    prop_onKeyUp.setHidden(false);
444:                    prop_onKeyUp.setPreferred(false);
445:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
446:                            true);
447:                    prop_onKeyUp.setValue(
448:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
449:                            attrib);
450:                    prop_onKeyUp
451:                            .setValue(
452:                                    Constants.PropertyDescriptor.CATEGORY,
453:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
454:
455:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
456:                            "onMouseDown", beanClass, "getOnMouseDown",
457:                            "setOnMouseDown");
458:                    prop_onMouseDown.setDisplayName(resources
459:                            .getString("Form_onMouseDown_DisplayName"));
460:                    prop_onMouseDown.setShortDescription(resources
461:                            .getString("Form_onMouseDown_Description"));
462:                    prop_onMouseDown
463:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
464:                    prop_onMouseDown.setExpert(false);
465:                    prop_onMouseDown.setHidden(false);
466:                    prop_onMouseDown.setPreferred(false);
467:                    attrib = new AttributeDescriptor("onMouseDown", false,
468:                            null, true);
469:                    prop_onMouseDown.setValue(
470:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
471:                            attrib);
472:                    prop_onMouseDown
473:                            .setValue(
474:                                    Constants.PropertyDescriptor.CATEGORY,
475:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
476:
477:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
478:                            "onMouseMove", beanClass, "getOnMouseMove",
479:                            "setOnMouseMove");
480:                    prop_onMouseMove.setDisplayName(resources
481:                            .getString("Form_onMouseMove_DisplayName"));
482:                    prop_onMouseMove.setShortDescription(resources
483:                            .getString("Form_onMouseMove_Description"));
484:                    prop_onMouseMove
485:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
486:                    prop_onMouseMove.setExpert(false);
487:                    prop_onMouseMove.setHidden(false);
488:                    prop_onMouseMove.setPreferred(false);
489:                    attrib = new AttributeDescriptor("onMouseMove", false,
490:                            null, true);
491:                    prop_onMouseMove.setValue(
492:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
493:                            attrib);
494:                    prop_onMouseMove
495:                            .setValue(
496:                                    Constants.PropertyDescriptor.CATEGORY,
497:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
498:
499:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
500:                            "onMouseOut", beanClass, "getOnMouseOut",
501:                            "setOnMouseOut");
502:                    prop_onMouseOut.setDisplayName(resources
503:                            .getString("Form_onMouseOut_DisplayName"));
504:                    prop_onMouseOut.setShortDescription(resources
505:                            .getString("Form_onMouseOut_Description"));
506:                    prop_onMouseOut
507:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
508:                    prop_onMouseOut.setExpert(false);
509:                    prop_onMouseOut.setHidden(false);
510:                    prop_onMouseOut.setPreferred(false);
511:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
512:                            true);
513:                    prop_onMouseOut.setValue(
514:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
515:                            attrib);
516:                    prop_onMouseOut
517:                            .setValue(
518:                                    Constants.PropertyDescriptor.CATEGORY,
519:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
520:
521:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
522:                            "onMouseOver", beanClass, "getOnMouseOver",
523:                            "setOnMouseOver");
524:                    prop_onMouseOver.setDisplayName(resources
525:                            .getString("Form_onMouseOver_DisplayName"));
526:                    prop_onMouseOver.setShortDescription(resources
527:                            .getString("Form_onMouseOver_Description"));
528:                    prop_onMouseOver
529:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
530:                    prop_onMouseOver.setExpert(false);
531:                    prop_onMouseOver.setHidden(false);
532:                    prop_onMouseOver.setPreferred(false);
533:                    attrib = new AttributeDescriptor("onMouseOver", false,
534:                            null, true);
535:                    prop_onMouseOver.setValue(
536:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
537:                            attrib);
538:                    prop_onMouseOver
539:                            .setValue(
540:                                    Constants.PropertyDescriptor.CATEGORY,
541:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
542:
543:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
544:                            "onMouseUp", beanClass, "getOnMouseUp",
545:                            "setOnMouseUp");
546:                    prop_onMouseUp.setDisplayName(resources
547:                            .getString("Form_onMouseUp_DisplayName"));
548:                    prop_onMouseUp.setShortDescription(resources
549:                            .getString("Form_onMouseUp_Description"));
550:                    prop_onMouseUp
551:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
552:                    prop_onMouseUp.setExpert(false);
553:                    prop_onMouseUp.setHidden(false);
554:                    prop_onMouseUp.setPreferred(false);
555:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
556:                            true);
557:                    prop_onMouseUp.setValue(
558:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
559:                            attrib);
560:                    prop_onMouseUp
561:                            .setValue(
562:                                    Constants.PropertyDescriptor.CATEGORY,
563:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
564:
565:                    PropertyDescriptor prop_onReset = new PropertyDescriptor(
566:                            "onReset", beanClass, "getOnReset", "setOnReset");
567:                    prop_onReset.setDisplayName(resources
568:                            .getString("Form_onReset_DisplayName"));
569:                    prop_onReset.setShortDescription(resources
570:                            .getString("Form_onReset_Description"));
571:                    prop_onReset
572:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
573:                    prop_onReset.setExpert(false);
574:                    prop_onReset.setHidden(false);
575:                    prop_onReset.setPreferred(false);
576:                    attrib = new AttributeDescriptor("onReset", false, null,
577:                            true);
578:                    prop_onReset.setValue(
579:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
580:                            attrib);
581:                    prop_onReset
582:                            .setValue(
583:                                    Constants.PropertyDescriptor.CATEGORY,
584:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
585:
586:                    PropertyDescriptor prop_onSubmit = new PropertyDescriptor(
587:                            "onSubmit", beanClass, "getOnSubmit", "setOnSubmit");
588:                    prop_onSubmit.setDisplayName(resources
589:                            .getString("Form_onSubmit_DisplayName"));
590:                    prop_onSubmit.setShortDescription(resources
591:                            .getString("Form_onSubmit_Description"));
592:                    prop_onSubmit
593:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
594:                    prop_onSubmit.setExpert(false);
595:                    prop_onSubmit.setHidden(false);
596:                    prop_onSubmit.setPreferred(false);
597:                    attrib = new AttributeDescriptor("onSubmit", false, null,
598:                            true);
599:                    prop_onSubmit.setValue(
600:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
601:                            attrib);
602:                    prop_onSubmit
603:                            .setValue(
604:                                    Constants.PropertyDescriptor.CATEGORY,
605:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
606:
607:                    PropertyDescriptor prop_style = new PropertyDescriptor(
608:                            "style", beanClass, "getStyle", "setStyle");
609:                    prop_style.setDisplayName(resources
610:                            .getString("Form_style_DisplayName"));
611:                    prop_style.setShortDescription(resources
612:                            .getString("Form_style_Description"));
613:                    prop_style
614:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
615:                    prop_style.setExpert(false);
616:                    prop_style.setHidden(false);
617:                    prop_style.setPreferred(false);
618:                    attrib = new AttributeDescriptor("style", false, null, true);
619:                    prop_style.setValue(
620:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
621:                            attrib);
622:                    prop_style
623:                            .setValue(
624:                                    Constants.PropertyDescriptor.CATEGORY,
625:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
626:
627:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
628:                            "styleClass", beanClass, "getStyleClass",
629:                            "setStyleClass");
630:                    prop_styleClass.setDisplayName(resources
631:                            .getString("Form_styleClass_DisplayName"));
632:                    prop_styleClass.setShortDescription(resources
633:                            .getString("Form_styleClass_Description"));
634:                    prop_styleClass
635:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
636:                    prop_styleClass.setExpert(false);
637:                    prop_styleClass.setHidden(false);
638:                    prop_styleClass.setPreferred(false);
639:                    attrib = new AttributeDescriptor("styleClass", false, null,
640:                            true);
641:                    prop_styleClass.setValue(
642:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
643:                            attrib);
644:                    prop_styleClass
645:                            .setValue(
646:                                    Constants.PropertyDescriptor.CATEGORY,
647:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
648:
649:                    PropertyDescriptor prop_target = new PropertyDescriptor(
650:                            "target", beanClass, "getTarget", "setTarget");
651:                    prop_target.setDisplayName(resources
652:                            .getString("Form_target_DisplayName"));
653:                    prop_target.setShortDescription(resources
654:                            .getString("Form_target_Description"));
655:                    prop_target
656:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
657:                    prop_target.setExpert(false);
658:                    prop_target.setHidden(false);
659:                    prop_target.setPreferred(false);
660:                    attrib = new AttributeDescriptor("target", false, null,
661:                            true);
662:                    prop_target.setValue(
663:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
664:                            attrib);
665:                    prop_target
666:                            .setValue(
667:                                    Constants.PropertyDescriptor.CATEGORY,
668:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
669:                    prop_target
670:                            .setValue(
671:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
672:                                    com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain.class);
673:
674:                    PropertyDescriptor prop_virtualForms = new PropertyDescriptor(
675:                            "virtualForms", beanClass, "getVirtualForms",
676:                            "setVirtualForms");
677:                    prop_virtualForms.setDisplayName(resources
678:                            .getString("Form_virtualForms_DisplayName"));
679:                    prop_virtualForms.setShortDescription(resources
680:                            .getString("Form_virtualForms_Description"));
681:                    prop_virtualForms.setExpert(false);
682:                    prop_virtualForms.setHidden(true);
683:                    prop_virtualForms.setPreferred(false);
684:                    prop_virtualForms
685:                            .setValue(
686:                                    Constants.PropertyDescriptor.CATEGORY,
687:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
688:
689:                    PropertyDescriptor prop_virtualFormsConfig = new PropertyDescriptor(
690:                            "virtualFormsConfig", beanClass,
691:                            "getVirtualFormsConfig", "setVirtualFormsConfig");
692:                    prop_virtualFormsConfig.setDisplayName(resources
693:                            .getString("Form_virtualFormsConfig_DisplayName"));
694:                    prop_virtualFormsConfig.setShortDescription(resources
695:                            .getString("Form_virtualFormsConfig_Description"));
696:                    prop_virtualFormsConfig
697:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
698:                    prop_virtualFormsConfig.setExpert(false);
699:                    prop_virtualFormsConfig.setHidden(false);
700:                    prop_virtualFormsConfig.setPreferred(false);
701:                    attrib = new AttributeDescriptor("virtualFormsConfig",
702:                            false, null, true);
703:                    prop_virtualFormsConfig.setValue(
704:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
705:                            attrib);
706:                    prop_virtualFormsConfig
707:                            .setValue(
708:                                    Constants.PropertyDescriptor.CATEGORY,
709:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
710:
711:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
712:                            "visible", beanClass, "isVisible", "setVisible");
713:                    prop_visible.setDisplayName(resources
714:                            .getString("Form_visible_DisplayName"));
715:                    prop_visible.setShortDescription(resources
716:                            .getString("Form_visible_Description"));
717:                    prop_visible.setExpert(false);
718:                    prop_visible.setHidden(false);
719:                    prop_visible.setPreferred(false);
720:                    attrib = new AttributeDescriptor("visible", false, "true",
721:                            true);
722:                    prop_visible.setValue(
723:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
724:                            attrib);
725:                    prop_visible
726:                            .setValue(
727:                                    Constants.PropertyDescriptor.CATEGORY,
728:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
729:
730:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
731:                            "attributes", beanClass, "getAttributes", null);
732:                    prop_attributes.setDisplayName(resources
733:                            .getString("Form_attributes_DisplayName"));
734:                    prop_attributes.setShortDescription(resources
735:                            .getString("Form_attributes_Description"));
736:                    prop_attributes.setExpert(false);
737:                    prop_attributes.setHidden(true);
738:                    prop_attributes.setPreferred(false);
739:                    prop_attributes
740:                            .setValue(
741:                                    Constants.PropertyDescriptor.CATEGORY,
742:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
743:
744:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
745:                            "childCount", beanClass, "getChildCount", null);
746:                    prop_childCount.setDisplayName(resources
747:                            .getString("Form_childCount_DisplayName"));
748:                    prop_childCount.setShortDescription(resources
749:                            .getString("Form_childCount_Description"));
750:                    prop_childCount.setExpert(false);
751:                    prop_childCount.setHidden(true);
752:                    prop_childCount.setPreferred(false);
753:                    prop_childCount
754:                            .setValue(
755:                                    Constants.PropertyDescriptor.CATEGORY,
756:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
757:
758:                    PropertyDescriptor prop_children = new PropertyDescriptor(
759:                            "children", beanClass, "getChildren", null);
760:                    prop_children.setDisplayName(resources
761:                            .getString("Form_children_DisplayName"));
762:                    prop_children.setShortDescription(resources
763:                            .getString("Form_children_Description"));
764:                    prop_children.setExpert(false);
765:                    prop_children.setHidden(true);
766:                    prop_children.setPreferred(false);
767:                    prop_children
768:                            .setValue(
769:                                    Constants.PropertyDescriptor.CATEGORY,
770:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
771:
772:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
773:                            "facets", beanClass, "getFacets", null);
774:                    prop_facets.setDisplayName(resources
775:                            .getString("Form_facets_DisplayName"));
776:                    prop_facets.setShortDescription(resources
777:                            .getString("Form_facets_Description"));
778:                    prop_facets.setExpert(false);
779:                    prop_facets.setHidden(true);
780:                    prop_facets.setPreferred(false);
781:                    prop_facets
782:                            .setValue(
783:                                    Constants.PropertyDescriptor.CATEGORY,
784:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
785:
786:                    PropertyDescriptor prop_family = new PropertyDescriptor(
787:                            "family", beanClass, "getFamily", null);
788:                    prop_family.setDisplayName(resources
789:                            .getString("Form_family_DisplayName"));
790:                    prop_family.setShortDescription(resources
791:                            .getString("Form_family_Description"));
792:                    prop_family.setExpert(false);
793:                    prop_family.setHidden(true);
794:                    prop_family.setPreferred(false);
795:                    prop_family
796:                            .setValue(
797:                                    Constants.PropertyDescriptor.CATEGORY,
798:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
799:
800:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
801:                            beanClass, "getId", "setId");
802:                    prop_id.setDisplayName(resources
803:                            .getString("Form_id_DisplayName"));
804:                    prop_id.setShortDescription(resources
805:                            .getString("Form_id_Description"));
806:                    prop_id.setExpert(false);
807:                    prop_id.setHidden(true);
808:                    prop_id.setPreferred(false);
809:                    attrib = new AttributeDescriptor("id", false, null, true);
810:                    prop_id.setValue(
811:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
812:                            attrib);
813:                    prop_id
814:                            .setValue(
815:                                    Constants.PropertyDescriptor.CATEGORY,
816:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
817:
818:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
819:                            "parent", beanClass, "getParent", null);
820:                    prop_parent.setDisplayName(resources
821:                            .getString("Form_parent_DisplayName"));
822:                    prop_parent.setShortDescription(resources
823:                            .getString("Form_parent_Description"));
824:                    prop_parent.setExpert(false);
825:                    prop_parent.setHidden(true);
826:                    prop_parent.setPreferred(false);
827:                    prop_parent
828:                            .setValue(
829:                                    Constants.PropertyDescriptor.CATEGORY,
830:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
831:
832:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
833:                            "rendered", beanClass, "isRendered", "setRendered");
834:                    prop_rendered.setDisplayName(resources
835:                            .getString("Form_rendered_DisplayName"));
836:                    prop_rendered.setShortDescription(resources
837:                            .getString("Form_rendered_Description"));
838:                    prop_rendered.setExpert(false);
839:                    prop_rendered.setHidden(false);
840:                    prop_rendered.setPreferred(false);
841:                    attrib = new AttributeDescriptor("rendered", false, null,
842:                            true);
843:                    prop_rendered.setValue(
844:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
845:                            attrib);
846:                    prop_rendered
847:                            .setValue(
848:                                    Constants.PropertyDescriptor.CATEGORY,
849:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
850:
851:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
852:                            "rendererType", beanClass, "getRendererType",
853:                            "setRendererType");
854:                    prop_rendererType.setDisplayName(resources
855:                            .getString("Form_rendererType_DisplayName"));
856:                    prop_rendererType.setShortDescription(resources
857:                            .getString("Form_rendererType_Description"));
858:                    prop_rendererType.setExpert(false);
859:                    prop_rendererType.setHidden(true);
860:                    prop_rendererType.setPreferred(false);
861:                    prop_rendererType
862:                            .setValue(
863:                                    Constants.PropertyDescriptor.CATEGORY,
864:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
865:
866:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
867:                            "rendersChildren", beanClass, "getRendersChildren",
868:                            null);
869:                    prop_rendersChildren.setDisplayName(resources
870:                            .getString("Form_rendersChildren_DisplayName"));
871:                    prop_rendersChildren.setShortDescription(resources
872:                            .getString("Form_rendersChildren_Description"));
873:                    prop_rendersChildren.setExpert(false);
874:                    prop_rendersChildren.setHidden(true);
875:                    prop_rendersChildren.setPreferred(false);
876:                    prop_rendersChildren
877:                            .setValue(
878:                                    Constants.PropertyDescriptor.CATEGORY,
879:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
880:
881:                    PropertyDescriptor prop_submitted = new PropertyDescriptor(
882:                            "submitted", beanClass, "isSubmitted",
883:                            "setSubmitted");
884:                    prop_submitted.setDisplayName(resources
885:                            .getString("Form_submitted_DisplayName"));
886:                    prop_submitted.setShortDescription(resources
887:                            .getString("Form_submitted_Description"));
888:                    prop_submitted.setExpert(false);
889:                    prop_submitted.setHidden(true);
890:                    prop_submitted.setPreferred(false);
891:                    prop_submitted
892:                            .setValue(
893:                                    Constants.PropertyDescriptor.CATEGORY,
894:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
895:
896:                    propDescriptors = new PropertyDescriptor[] {
897:                            prop_attributes, prop_autoComplete,
898:                            prop_childCount, prop_children, prop_enctype,
899:                            prop_facets, prop_family, prop_id,
900:                            prop_internalVirtualForms, prop_onClick,
901:                            prop_onDblClick, prop_onKeyDown, prop_onKeyPress,
902:                            prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
903:                            prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
904:                            prop_onReset, prop_onSubmit, prop_parent,
905:                            prop_rendered, prop_rendererType,
906:                            prop_rendersChildren, prop_style, prop_styleClass,
907:                            prop_submitted, prop_target, prop_virtualForms,
908:                            prop_virtualFormsConfig, prop_visible, };
909:                    return propDescriptors;
910:
911:                } catch (IntrospectionException e) {
912:                    e.printStackTrace();
913:                    return null;
914:                }
915:
916:            }
917:
918:        }
919:        //GEN-END:BeanInfo
w_ww___.ja___va_2s___._c___o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.