Source Code Cross Referenced for BodyBeanInfoBase.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 BodyBeanInfoBase 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(), BodyBeanInfoBase.class
071:                                    .getClassLoader());
072:
073:            /**
074:             * <p>Construct a new <code>BodyBeanInfoBase</code>.</p>
075:             */
076:            public BodyBeanInfoBase() {
077:
078:                beanClass = com.sun.rave.web.ui.component.Body.class;
079:                defaultPropertyName = "focus";
080:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Body_C16";
081:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Body_C32";
082:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Body_M16";
083:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Body_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("Body_DisplayName"));
144:                beanDescriptor.setShortDescription(resources
145:                        .getString("Body_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_html_elements_body");
154:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155:                        "body");
156:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
157:                        Boolean.TRUE);
158:                beanDescriptor.setValue(
159:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
160:                        getCategoryDescriptors());
161:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
162:                        "body");
163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
164:                        "ui");
165:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
166:                        "http://www.sun.com/web/ui");
167:
168:                return beanDescriptor;
169:
170:            }
171:
172:            /**
173:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
174:             */
175:            private CategoryDescriptor[] getCategoryDescriptors() {
176:
177:                return com.sun.rave.designtime.base.CategoryDescriptors
178:                        .getDefaultCategoryDescriptors();
179:
180:            }
181:
182:            /**
183:             * <p>Return the index of the default property, or
184:             * -1 if there is no default property.</p>
185:             */
186:            public int getDefaultPropertyIndex() {
187:
188:                if (defaultPropertyIndex > -2) {
189:                    return defaultPropertyIndex;
190:                } else {
191:                    if (defaultPropertyName == null) {
192:                        defaultPropertyIndex = -1;
193:                    } else {
194:                        PropertyDescriptor pd[] = getPropertyDescriptors();
195:                        for (int i = 0; i < pd.length; i++) {
196:                            if (defaultPropertyName.equals(pd[i].getName())) {
197:                                defaultPropertyIndex = i;
198:                                break;
199:                            }
200:                        }
201:                    }
202:                }
203:                return defaultPropertyIndex;
204:            }
205:
206:            /**
207:             * <p>The cached facet descriptors.</p>
208:             */
209:            protected FacetDescriptor[] facetDescriptors;
210:
211:            /**
212:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
213:             */
214:            public FacetDescriptor[] getFacetDescriptors() {
215:
216:                if (facetDescriptors != null) {
217:                    return facetDescriptors;
218:                }
219:                facetDescriptors = new FacetDescriptor[] {};
220:                return facetDescriptors;
221:
222:            }
223:
224:            /**
225:             * <p>Return the specified image (if any)
226:             * for this component class.</p>
227:             */
228:            public Image getIcon(int kind) {
229:
230:                String name;
231:                switch (kind) {
232:                case ICON_COLOR_16x16:
233:                    name = iconFileName_C16;
234:                    break;
235:                case ICON_COLOR_32x32:
236:                    name = iconFileName_C32;
237:                    break;
238:                case ICON_MONO_16x16:
239:                    name = iconFileName_M16;
240:                    break;
241:                case ICON_MONO_32x32:
242:                    name = iconFileName_M32;
243:                    break;
244:                default:
245:                    name = null;
246:                    break;
247:                }
248:                if (name == null) {
249:                    return null;
250:                }
251:
252:                Image image = loadImage(name + ".png");
253:                if (image == null) {
254:                    image = loadImage(name + ".gif");
255:                }
256:                return image;
257:
258:            }
259:
260:            /**
261:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
262:             */
263:            private java.lang.Class loadClass(java.lang.String name) {
264:
265:                try {
266:                    return Class.forName(name);
267:                } catch (ClassNotFoundException e) {
268:                    throw new RuntimeException(e);
269:                }
270:
271:            }
272:
273:            /**
274:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
275:             */
276:            public PropertyDescriptor[] getPropertyDescriptors() {
277:
278:                if (propDescriptors != null) {
279:                    return propDescriptors;
280:                }
281:                AttributeDescriptor attrib = null;
282:
283:                try {
284:
285:                    PropertyDescriptor prop_focus = new PropertyDescriptor(
286:                            "focus", beanClass, "getFocus", "setFocus");
287:                    prop_focus.setDisplayName(resources
288:                            .getString("Body_focus_DisplayName"));
289:                    prop_focus.setShortDescription(resources
290:                            .getString("Body_focus_Description"));
291:                    prop_focus
292:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
293:                    prop_focus.setExpert(false);
294:                    prop_focus.setHidden(false);
295:                    prop_focus.setPreferred(false);
296:                    attrib = new AttributeDescriptor("focus", false, null, true);
297:                    prop_focus.setValue(
298:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
299:                            attrib);
300:                    prop_focus
301:                            .setValue(
302:                                    Constants.PropertyDescriptor.CATEGORY,
303:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
304:                    prop_focus
305:                            .setValue(
306:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
307:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.EventClientIdsDomain.class);
308:
309:                    PropertyDescriptor prop_imageURL = new PropertyDescriptor(
310:                            "imageURL", beanClass, "getImageURL", "setImageURL");
311:                    prop_imageURL.setDisplayName(resources
312:                            .getString("Body_imageURL_DisplayName"));
313:                    prop_imageURL.setShortDescription(resources
314:                            .getString("Body_imageURL_Description"));
315:                    prop_imageURL
316:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.ImageUrlPropertyEditor"));
317:                    prop_imageURL.setExpert(false);
318:                    prop_imageURL.setHidden(false);
319:                    prop_imageURL.setPreferred(false);
320:                    attrib = new AttributeDescriptor("imageURL", false, null,
321:                            true);
322:                    prop_imageURL.setValue(
323:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
324:                            attrib);
325:                    prop_imageURL
326:                            .setValue(
327:                                    Constants.PropertyDescriptor.CATEGORY,
328:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
329:
330:                    PropertyDescriptor prop_onBlur = new PropertyDescriptor(
331:                            "onBlur", beanClass, "getOnBlur", "setOnBlur");
332:                    prop_onBlur.setDisplayName(resources
333:                            .getString("Body_onBlur_DisplayName"));
334:                    prop_onBlur.setShortDescription(resources
335:                            .getString("Body_onBlur_Description"));
336:                    prop_onBlur
337:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
338:                    prop_onBlur.setExpert(false);
339:                    prop_onBlur.setHidden(false);
340:                    prop_onBlur.setPreferred(false);
341:                    attrib = new AttributeDescriptor("onBlur", false, null,
342:                            true);
343:                    prop_onBlur.setValue(
344:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
345:                            attrib);
346:                    prop_onBlur
347:                            .setValue(
348:                                    Constants.PropertyDescriptor.CATEGORY,
349:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
350:
351:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
352:                            "onClick", beanClass, "getOnClick", "setOnClick");
353:                    prop_onClick.setDisplayName(resources
354:                            .getString("Body_onClick_DisplayName"));
355:                    prop_onClick.setShortDescription(resources
356:                            .getString("Body_onClick_Description"));
357:                    prop_onClick
358:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
359:                    prop_onClick.setExpert(false);
360:                    prop_onClick.setHidden(false);
361:                    prop_onClick.setPreferred(false);
362:                    attrib = new AttributeDescriptor("onClick", false, null,
363:                            true);
364:                    prop_onClick.setValue(
365:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
366:                            attrib);
367:                    prop_onClick
368:                            .setValue(
369:                                    Constants.PropertyDescriptor.CATEGORY,
370:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
371:
372:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
373:                            "onDblClick", beanClass, "getOnDblClick",
374:                            "setOnDblClick");
375:                    prop_onDblClick.setDisplayName(resources
376:                            .getString("Body_onDblClick_DisplayName"));
377:                    prop_onDblClick.setShortDescription(resources
378:                            .getString("Body_onDblClick_Description"));
379:                    prop_onDblClick
380:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
381:                    prop_onDblClick.setExpert(false);
382:                    prop_onDblClick.setHidden(false);
383:                    prop_onDblClick.setPreferred(false);
384:                    attrib = new AttributeDescriptor("onDblClick", false, null,
385:                            true);
386:                    prop_onDblClick.setValue(
387:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
388:                            attrib);
389:                    prop_onDblClick
390:                            .setValue(
391:                                    Constants.PropertyDescriptor.CATEGORY,
392:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
393:
394:                    PropertyDescriptor prop_onFocus = new PropertyDescriptor(
395:                            "onFocus", beanClass, "getOnFocus", "setOnFocus");
396:                    prop_onFocus.setDisplayName(resources
397:                            .getString("Body_onFocus_DisplayName"));
398:                    prop_onFocus.setShortDescription(resources
399:                            .getString("Body_onFocus_Description"));
400:                    prop_onFocus
401:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
402:                    prop_onFocus.setExpert(false);
403:                    prop_onFocus.setHidden(false);
404:                    prop_onFocus.setPreferred(false);
405:                    attrib = new AttributeDescriptor("onFocus", false, null,
406:                            true);
407:                    prop_onFocus.setValue(
408:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
409:                            attrib);
410:                    prop_onFocus
411:                            .setValue(
412:                                    Constants.PropertyDescriptor.CATEGORY,
413:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
414:
415:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
416:                            "onKeyDown", beanClass, "getOnKeyDown",
417:                            "setOnKeyDown");
418:                    prop_onKeyDown.setDisplayName(resources
419:                            .getString("Body_onKeyDown_DisplayName"));
420:                    prop_onKeyDown.setShortDescription(resources
421:                            .getString("Body_onKeyDown_Description"));
422:                    prop_onKeyDown
423:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
424:                    prop_onKeyDown.setExpert(false);
425:                    prop_onKeyDown.setHidden(false);
426:                    prop_onKeyDown.setPreferred(false);
427:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
428:                            true);
429:                    prop_onKeyDown.setValue(
430:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
431:                            attrib);
432:                    prop_onKeyDown
433:                            .setValue(
434:                                    Constants.PropertyDescriptor.CATEGORY,
435:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
436:
437:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
438:                            "onKeyPress", beanClass, "getOnKeyPress",
439:                            "setOnKeyPress");
440:                    prop_onKeyPress.setDisplayName(resources
441:                            .getString("Body_onKeyPress_DisplayName"));
442:                    prop_onKeyPress.setShortDescription(resources
443:                            .getString("Body_onKeyPress_Description"));
444:                    prop_onKeyPress
445:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
446:                    prop_onKeyPress.setExpert(false);
447:                    prop_onKeyPress.setHidden(false);
448:                    prop_onKeyPress.setPreferred(false);
449:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
450:                            true);
451:                    prop_onKeyPress.setValue(
452:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
453:                            attrib);
454:                    prop_onKeyPress
455:                            .setValue(
456:                                    Constants.PropertyDescriptor.CATEGORY,
457:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
458:
459:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
460:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
461:                    prop_onKeyUp.setDisplayName(resources
462:                            .getString("Body_onKeyUp_DisplayName"));
463:                    prop_onKeyUp.setShortDescription(resources
464:                            .getString("Body_onKeyUp_Description"));
465:                    prop_onKeyUp
466:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
467:                    prop_onKeyUp.setExpert(false);
468:                    prop_onKeyUp.setHidden(false);
469:                    prop_onKeyUp.setPreferred(false);
470:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
471:                            true);
472:                    prop_onKeyUp.setValue(
473:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
474:                            attrib);
475:                    prop_onKeyUp
476:                            .setValue(
477:                                    Constants.PropertyDescriptor.CATEGORY,
478:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
479:
480:                    PropertyDescriptor prop_onLoad = new PropertyDescriptor(
481:                            "onLoad", beanClass, "getOnLoad", "setOnLoad");
482:                    prop_onLoad.setDisplayName(resources
483:                            .getString("Body_onLoad_DisplayName"));
484:                    prop_onLoad.setShortDescription(resources
485:                            .getString("Body_onLoad_Description"));
486:                    prop_onLoad
487:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
488:                    prop_onLoad.setExpert(false);
489:                    prop_onLoad.setHidden(false);
490:                    prop_onLoad.setPreferred(false);
491:                    attrib = new AttributeDescriptor("onLoad", false, null,
492:                            true);
493:                    prop_onLoad.setValue(
494:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
495:                            attrib);
496:                    prop_onLoad
497:                            .setValue(
498:                                    Constants.PropertyDescriptor.CATEGORY,
499:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
500:
501:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
502:                            "onMouseDown", beanClass, "getOnMouseDown",
503:                            "setOnMouseDown");
504:                    prop_onMouseDown.setDisplayName(resources
505:                            .getString("Body_onMouseDown_DisplayName"));
506:                    prop_onMouseDown.setShortDescription(resources
507:                            .getString("Body_onMouseDown_Description"));
508:                    prop_onMouseDown
509:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
510:                    prop_onMouseDown.setExpert(false);
511:                    prop_onMouseDown.setHidden(false);
512:                    prop_onMouseDown.setPreferred(false);
513:                    attrib = new AttributeDescriptor("onMouseDown", false,
514:                            null, true);
515:                    prop_onMouseDown.setValue(
516:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
517:                            attrib);
518:                    prop_onMouseDown
519:                            .setValue(
520:                                    Constants.PropertyDescriptor.CATEGORY,
521:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
522:
523:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
524:                            "onMouseMove", beanClass, "getOnMouseMove",
525:                            "setOnMouseMove");
526:                    prop_onMouseMove.setDisplayName(resources
527:                            .getString("Body_onMouseMove_DisplayName"));
528:                    prop_onMouseMove.setShortDescription(resources
529:                            .getString("Body_onMouseMove_Description"));
530:                    prop_onMouseMove
531:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
532:                    prop_onMouseMove.setExpert(false);
533:                    prop_onMouseMove.setHidden(false);
534:                    prop_onMouseMove.setPreferred(false);
535:                    attrib = new AttributeDescriptor("onMouseMove", false,
536:                            null, true);
537:                    prop_onMouseMove.setValue(
538:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
539:                            attrib);
540:                    prop_onMouseMove
541:                            .setValue(
542:                                    Constants.PropertyDescriptor.CATEGORY,
543:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
544:
545:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
546:                            "onMouseOut", beanClass, "getOnMouseOut",
547:                            "setOnMouseOut");
548:                    prop_onMouseOut.setDisplayName(resources
549:                            .getString("Body_onMouseOut_DisplayName"));
550:                    prop_onMouseOut.setShortDescription(resources
551:                            .getString("Body_onMouseOut_Description"));
552:                    prop_onMouseOut
553:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
554:                    prop_onMouseOut.setExpert(false);
555:                    prop_onMouseOut.setHidden(false);
556:                    prop_onMouseOut.setPreferred(false);
557:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
558:                            true);
559:                    prop_onMouseOut.setValue(
560:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
561:                            attrib);
562:                    prop_onMouseOut
563:                            .setValue(
564:                                    Constants.PropertyDescriptor.CATEGORY,
565:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
566:
567:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
568:                            "onMouseOver", beanClass, "getOnMouseOver",
569:                            "setOnMouseOver");
570:                    prop_onMouseOver.setDisplayName(resources
571:                            .getString("Body_onMouseOver_DisplayName"));
572:                    prop_onMouseOver.setShortDescription(resources
573:                            .getString("Body_onMouseOver_Description"));
574:                    prop_onMouseOver
575:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
576:                    prop_onMouseOver.setExpert(false);
577:                    prop_onMouseOver.setHidden(false);
578:                    prop_onMouseOver.setPreferred(false);
579:                    attrib = new AttributeDescriptor("onMouseOver", false,
580:                            null, true);
581:                    prop_onMouseOver.setValue(
582:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
583:                            attrib);
584:                    prop_onMouseOver
585:                            .setValue(
586:                                    Constants.PropertyDescriptor.CATEGORY,
587:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
588:
589:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
590:                            "onMouseUp", beanClass, "getOnMouseUp",
591:                            "setOnMouseUp");
592:                    prop_onMouseUp.setDisplayName(resources
593:                            .getString("Body_onMouseUp_DisplayName"));
594:                    prop_onMouseUp.setShortDescription(resources
595:                            .getString("Body_onMouseUp_Description"));
596:                    prop_onMouseUp
597:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
598:                    prop_onMouseUp.setExpert(false);
599:                    prop_onMouseUp.setHidden(false);
600:                    prop_onMouseUp.setPreferred(false);
601:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
602:                            true);
603:                    prop_onMouseUp.setValue(
604:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
605:                            attrib);
606:                    prop_onMouseUp
607:                            .setValue(
608:                                    Constants.PropertyDescriptor.CATEGORY,
609:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
610:
611:                    PropertyDescriptor prop_onUnload = new PropertyDescriptor(
612:                            "onUnload", beanClass, "getOnUnload", "setOnUnload");
613:                    prop_onUnload.setDisplayName(resources
614:                            .getString("Body_onUnload_DisplayName"));
615:                    prop_onUnload.setShortDescription(resources
616:                            .getString("Body_onUnload_Description"));
617:                    prop_onUnload
618:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
619:                    prop_onUnload.setExpert(false);
620:                    prop_onUnload.setHidden(false);
621:                    prop_onUnload.setPreferred(false);
622:                    attrib = new AttributeDescriptor("onUnload", false, null,
623:                            true);
624:                    prop_onUnload.setValue(
625:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
626:                            attrib);
627:                    prop_onUnload
628:                            .setValue(
629:                                    Constants.PropertyDescriptor.CATEGORY,
630:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
631:
632:                    PropertyDescriptor prop_style = new PropertyDescriptor(
633:                            "style", beanClass, "getStyle", "setStyle");
634:                    prop_style.setDisplayName(resources
635:                            .getString("Body_style_DisplayName"));
636:                    prop_style.setShortDescription(resources
637:                            .getString("Body_style_Description"));
638:                    prop_style
639:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
640:                    prop_style.setExpert(false);
641:                    prop_style.setHidden(false);
642:                    prop_style.setPreferred(false);
643:                    attrib = new AttributeDescriptor("style", false, null, true);
644:                    prop_style.setValue(
645:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
646:                            attrib);
647:                    prop_style
648:                            .setValue(
649:                                    Constants.PropertyDescriptor.CATEGORY,
650:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
651:
652:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
653:                            "styleClass", beanClass, "getStyleClass",
654:                            "setStyleClass");
655:                    prop_styleClass.setDisplayName(resources
656:                            .getString("Body_styleClass_DisplayName"));
657:                    prop_styleClass.setShortDescription(resources
658:                            .getString("Body_styleClass_Description"));
659:                    prop_styleClass
660:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
661:                    prop_styleClass.setExpert(false);
662:                    prop_styleClass.setHidden(false);
663:                    prop_styleClass.setPreferred(false);
664:                    attrib = new AttributeDescriptor("styleClass", false, null,
665:                            true);
666:                    prop_styleClass.setValue(
667:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
668:                            attrib);
669:                    prop_styleClass
670:                            .setValue(
671:                                    Constants.PropertyDescriptor.CATEGORY,
672:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
673:
674:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
675:                            "visible", beanClass, "isVisible", "setVisible");
676:                    prop_visible.setDisplayName(resources
677:                            .getString("Body_visible_DisplayName"));
678:                    prop_visible.setShortDescription(resources
679:                            .getString("Body_visible_Description"));
680:                    prop_visible.setExpert(false);
681:                    prop_visible.setHidden(false);
682:                    prop_visible.setPreferred(false);
683:                    attrib = new AttributeDescriptor("visible", false, "true",
684:                            true);
685:                    prop_visible.setValue(
686:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
687:                            attrib);
688:                    prop_visible
689:                            .setValue(
690:                                    Constants.PropertyDescriptor.CATEGORY,
691:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
692:
693:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
694:                            "attributes", beanClass, "getAttributes", null);
695:                    prop_attributes.setDisplayName(resources
696:                            .getString("Body_attributes_DisplayName"));
697:                    prop_attributes.setShortDescription(resources
698:                            .getString("Body_attributes_Description"));
699:                    prop_attributes.setExpert(false);
700:                    prop_attributes.setHidden(true);
701:                    prop_attributes.setPreferred(false);
702:                    prop_attributes
703:                            .setValue(
704:                                    Constants.PropertyDescriptor.CATEGORY,
705:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
706:
707:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
708:                            "childCount", beanClass, "getChildCount", null);
709:                    prop_childCount.setDisplayName(resources
710:                            .getString("Body_childCount_DisplayName"));
711:                    prop_childCount.setShortDescription(resources
712:                            .getString("Body_childCount_Description"));
713:                    prop_childCount.setExpert(false);
714:                    prop_childCount.setHidden(true);
715:                    prop_childCount.setPreferred(false);
716:                    prop_childCount
717:                            .setValue(
718:                                    Constants.PropertyDescriptor.CATEGORY,
719:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
720:
721:                    PropertyDescriptor prop_children = new PropertyDescriptor(
722:                            "children", beanClass, "getChildren", null);
723:                    prop_children.setDisplayName(resources
724:                            .getString("Body_children_DisplayName"));
725:                    prop_children.setShortDescription(resources
726:                            .getString("Body_children_Description"));
727:                    prop_children.setExpert(false);
728:                    prop_children.setHidden(true);
729:                    prop_children.setPreferred(false);
730:                    prop_children
731:                            .setValue(
732:                                    Constants.PropertyDescriptor.CATEGORY,
733:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
734:
735:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
736:                            "facets", beanClass, "getFacets", null);
737:                    prop_facets.setDisplayName(resources
738:                            .getString("Body_facets_DisplayName"));
739:                    prop_facets.setShortDescription(resources
740:                            .getString("Body_facets_Description"));
741:                    prop_facets.setExpert(false);
742:                    prop_facets.setHidden(true);
743:                    prop_facets.setPreferred(false);
744:                    prop_facets
745:                            .setValue(
746:                                    Constants.PropertyDescriptor.CATEGORY,
747:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
748:
749:                    PropertyDescriptor prop_family = new PropertyDescriptor(
750:                            "family", beanClass, "getFamily", null);
751:                    prop_family.setDisplayName(resources
752:                            .getString("Body_family_DisplayName"));
753:                    prop_family.setShortDescription(resources
754:                            .getString("Body_family_Description"));
755:                    prop_family.setExpert(false);
756:                    prop_family.setHidden(true);
757:                    prop_family.setPreferred(false);
758:                    prop_family
759:                            .setValue(
760:                                    Constants.PropertyDescriptor.CATEGORY,
761:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
762:
763:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
764:                            beanClass, "getId", "setId");
765:                    prop_id.setDisplayName(resources
766:                            .getString("Body_id_DisplayName"));
767:                    prop_id.setShortDescription(resources
768:                            .getString("Body_id_Description"));
769:                    prop_id.setExpert(false);
770:                    prop_id.setHidden(true);
771:                    prop_id.setPreferred(false);
772:                    attrib = new AttributeDescriptor("id", false, null, false);
773:                    prop_id.setValue(
774:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
775:                            attrib);
776:                    prop_id
777:                            .setValue(
778:                                    Constants.PropertyDescriptor.CATEGORY,
779:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
780:
781:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
782:                            "parent", beanClass, "getParent", "setParent");
783:                    prop_parent.setDisplayName(resources
784:                            .getString("Body_parent_DisplayName"));
785:                    prop_parent.setShortDescription(resources
786:                            .getString("Body_parent_Description"));
787:                    prop_parent.setExpert(false);
788:                    prop_parent.setHidden(true);
789:                    prop_parent.setPreferred(false);
790:                    prop_parent
791:                            .setValue(
792:                                    Constants.PropertyDescriptor.CATEGORY,
793:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
794:
795:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
796:                            "rendered", beanClass, "isRendered", "setRendered");
797:                    prop_rendered.setDisplayName(resources
798:                            .getString("Body_rendered_DisplayName"));
799:                    prop_rendered.setShortDescription(resources
800:                            .getString("Body_rendered_Description"));
801:                    prop_rendered.setExpert(false);
802:                    prop_rendered.setHidden(false);
803:                    prop_rendered.setPreferred(false);
804:                    attrib = new AttributeDescriptor("rendered", false, null,
805:                            true);
806:                    prop_rendered.setValue(
807:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
808:                            attrib);
809:                    prop_rendered
810:                            .setValue(
811:                                    Constants.PropertyDescriptor.CATEGORY,
812:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
813:
814:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
815:                            "rendererType", beanClass, "getRendererType",
816:                            "setRendererType");
817:                    prop_rendererType.setDisplayName(resources
818:                            .getString("Body_rendererType_DisplayName"));
819:                    prop_rendererType.setShortDescription(resources
820:                            .getString("Body_rendererType_Description"));
821:                    prop_rendererType.setExpert(false);
822:                    prop_rendererType.setHidden(true);
823:                    prop_rendererType.setPreferred(false);
824:                    prop_rendererType
825:                            .setValue(
826:                                    Constants.PropertyDescriptor.CATEGORY,
827:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
828:
829:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
830:                            "rendersChildren", beanClass, "getRendersChildren",
831:                            null);
832:                    prop_rendersChildren.setDisplayName(resources
833:                            .getString("Body_rendersChildren_DisplayName"));
834:                    prop_rendersChildren.setShortDescription(resources
835:                            .getString("Body_rendersChildren_Description"));
836:                    prop_rendersChildren.setExpert(false);
837:                    prop_rendersChildren.setHidden(true);
838:                    prop_rendersChildren.setPreferred(false);
839:                    prop_rendersChildren
840:                            .setValue(
841:                                    Constants.PropertyDescriptor.CATEGORY,
842:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
843:
844:                    propDescriptors = new PropertyDescriptor[] {
845:                            prop_attributes, prop_childCount, prop_children,
846:                            prop_facets, prop_family, prop_focus, prop_id,
847:                            prop_imageURL, prop_onBlur, prop_onClick,
848:                            prop_onDblClick, prop_onFocus, prop_onKeyDown,
849:                            prop_onKeyPress, prop_onKeyUp, prop_onLoad,
850:                            prop_onMouseDown, prop_onMouseMove,
851:                            prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
852:                            prop_onUnload, prop_parent, prop_rendered,
853:                            prop_rendererType, prop_rendersChildren,
854:                            prop_style, prop_styleClass, prop_visible, };
855:                    return propDescriptors;
856:
857:                } catch (IntrospectionException e) {
858:                    e.printStackTrace();
859:                    return null;
860:                }
861:
862:            }
863:
864:        }
865:        //GEN-END:BeanInfo
w__w___w_._ja__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.