Source Code Cross Referenced for MessageBeanInfoBase.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 MessageBeanInfoBase 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(), MessageBeanInfoBase.class
071:                                    .getClassLoader());
072:
073:            /**
074:             * <p>Construct a new <code>MessageBeanInfoBase</code>.</p>
075:             */
076:            public MessageBeanInfoBase() {
077:
078:                beanClass = com.sun.rave.web.ui.component.Message.class;
079:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Message_C16";
080:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Message_C32";
081:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Message_M16";
082:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Message_M32";
083:
084:            }
085:
086:            /**
087:             * <p>The bean class that this BeanInfo represents.
088:             */
089:            protected Class beanClass;
090:
091:            /**
092:             * <p>The cached BeanDescriptor.</p>
093:             */
094:            protected BeanDescriptor beanDescriptor;
095:
096:            /**
097:             * <p>The index of the default property.</p>
098:             */
099:            protected int defaultPropertyIndex = -2;
100:
101:            /**
102:             * <p>The name of the default property.</p>
103:             */
104:            protected String defaultPropertyName;
105:
106:            /**
107:             * <p>The 16x16 color icon.</p>
108:             */
109:            protected String iconFileName_C16;
110:
111:            /**
112:             * <p>The 32x32 color icon.</p>
113:             */
114:            protected String iconFileName_C32;
115:
116:            /**
117:             * <p>The 16x16 monochrome icon.</p>
118:             */
119:            protected String iconFileName_M16;
120:
121:            /**
122:             * <p>The 32x32 monochrome icon.</p>
123:             */
124:            protected String iconFileName_M32;
125:
126:            /**
127:             * <p>The cached property descriptors.</p>
128:             */
129:            protected PropertyDescriptor[] propDescriptors;
130:
131:            /**
132:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
133:             */
134:            public BeanDescriptor getBeanDescriptor() {
135:
136:                if (beanDescriptor != null) {
137:                    return beanDescriptor;
138:                }
139:
140:                beanDescriptor = new BeanDescriptor(beanClass);
141:                beanDescriptor.setDisplayName(resources
142:                        .getString("Message_DisplayName"));
143:                beanDescriptor.setShortDescription(resources
144:                        .getString("Message_Description"));
145:                beanDescriptor.setExpert(false);
146:                beanDescriptor.setHidden(false);
147:                beanDescriptor.setPreferred(false);
148:                beanDescriptor.setValue(
149:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
150:                        getFacetDescriptors());
151:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
152:                        "projrave_ui_elements_palette_bh_message");
153:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
154:                        "message");
155:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
156:                        Boolean.FALSE);
157:                beanDescriptor
158:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
159:                                "projrave_ui_elements_palette_bh_propsheets_bh_message_props");
160:                beanDescriptor.setValue(
161:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
162:                        getCategoryDescriptors());
163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
164:                        "message");
165:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
166:                        "ui");
167:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
168:                        "http://www.sun.com/web/ui");
169:
170:                return beanDescriptor;
171:
172:            }
173:
174:            /**
175:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
176:             */
177:            private CategoryDescriptor[] getCategoryDescriptors() {
178:
179:                return com.sun.rave.designtime.base.CategoryDescriptors
180:                        .getDefaultCategoryDescriptors();
181:
182:            }
183:
184:            /**
185:             * <p>Return the index of the default property, or
186:             * -1 if there is no default property.</p>
187:             */
188:            public int getDefaultPropertyIndex() {
189:
190:                if (defaultPropertyIndex > -2) {
191:                    return defaultPropertyIndex;
192:                } else {
193:                    if (defaultPropertyName == null) {
194:                        defaultPropertyIndex = -1;
195:                    } else {
196:                        PropertyDescriptor pd[] = getPropertyDescriptors();
197:                        for (int i = 0; i < pd.length; i++) {
198:                            if (defaultPropertyName.equals(pd[i].getName())) {
199:                                defaultPropertyIndex = i;
200:                                break;
201:                            }
202:                        }
203:                    }
204:                }
205:                return defaultPropertyIndex;
206:            }
207:
208:            /**
209:             * <p>The cached facet descriptors.</p>
210:             */
211:            protected FacetDescriptor[] facetDescriptors;
212:
213:            /**
214:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
215:             */
216:            public FacetDescriptor[] getFacetDescriptors() {
217:
218:                if (facetDescriptors != null) {
219:                    return facetDescriptors;
220:                }
221:                facetDescriptors = new FacetDescriptor[] {};
222:                return facetDescriptors;
223:
224:            }
225:
226:            /**
227:             * <p>Return the specified image (if any)
228:             * for this component class.</p>
229:             */
230:            public Image getIcon(int kind) {
231:
232:                String name;
233:                switch (kind) {
234:                case ICON_COLOR_16x16:
235:                    name = iconFileName_C16;
236:                    break;
237:                case ICON_COLOR_32x32:
238:                    name = iconFileName_C32;
239:                    break;
240:                case ICON_MONO_16x16:
241:                    name = iconFileName_M16;
242:                    break;
243:                case ICON_MONO_32x32:
244:                    name = iconFileName_M32;
245:                    break;
246:                default:
247:                    name = null;
248:                    break;
249:                }
250:                if (name == null) {
251:                    return null;
252:                }
253:
254:                Image image = loadImage(name + ".png");
255:                if (image == null) {
256:                    image = loadImage(name + ".gif");
257:                }
258:                return image;
259:
260:            }
261:
262:            /**
263:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
264:             */
265:            private java.lang.Class loadClass(java.lang.String name) {
266:
267:                try {
268:                    return Class.forName(name);
269:                } catch (ClassNotFoundException e) {
270:                    throw new RuntimeException(e);
271:                }
272:
273:            }
274:
275:            /**
276:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
277:             */
278:            public PropertyDescriptor[] getPropertyDescriptors() {
279:
280:                if (propDescriptors != null) {
281:                    return propDescriptors;
282:                }
283:                AttributeDescriptor attrib = null;
284:
285:                try {
286:
287:                    PropertyDescriptor prop_alt = new PropertyDescriptor("alt",
288:                            beanClass, "getAlt", "setAlt");
289:                    prop_alt.setDisplayName(resources
290:                            .getString("Message_alt_DisplayName"));
291:                    prop_alt.setShortDescription(resources
292:                            .getString("Message_alt_Description"));
293:                    prop_alt
294:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
295:                    prop_alt.setExpert(false);
296:                    prop_alt.setHidden(true);
297:                    prop_alt.setPreferred(false);
298:                    prop_alt
299:                            .setValue(
300:                                    Constants.PropertyDescriptor.CATEGORY,
301:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
302:
303:                    PropertyDescriptor prop_for = new PropertyDescriptor("for",
304:                            beanClass, "getFor", "setFor");
305:                    prop_for.setDisplayName(resources
306:                            .getString("Message_for_DisplayName"));
307:                    prop_for.setShortDescription(resources
308:                            .getString("Message_for_Description"));
309:                    prop_for
310:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
311:                    prop_for.setExpert(false);
312:                    prop_for.setHidden(false);
313:                    prop_for.setPreferred(false);
314:                    attrib = new AttributeDescriptor("for", false, null, true);
315:                    prop_for.setValue(
316:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
317:                            attrib);
318:                    prop_for
319:                            .setValue(
320:                                    Constants.PropertyDescriptor.CATEGORY,
321:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
322:                    prop_for
323:                            .setValue(
324:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
325:                                    com.sun.rave.propertyeditors.domains.InputComponentIdsDomain.class);
326:
327:                    PropertyDescriptor prop_showDetail = new PropertyDescriptor(
328:                            "showDetail", beanClass, "isShowDetail",
329:                            "setShowDetail");
330:                    prop_showDetail.setDisplayName(resources
331:                            .getString("Message_showDetail_DisplayName"));
332:                    prop_showDetail.setShortDescription(resources
333:                            .getString("Message_showDetail_Description"));
334:                    prop_showDetail.setExpert(false);
335:                    prop_showDetail.setHidden(false);
336:                    prop_showDetail.setPreferred(false);
337:                    attrib = new AttributeDescriptor("showDetail", false,
338:                            "true", true);
339:                    prop_showDetail.setValue(
340:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
341:                            attrib);
342:                    prop_showDetail
343:                            .setValue(
344:                                    Constants.PropertyDescriptor.CATEGORY,
345:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
346:
347:                    PropertyDescriptor prop_showSummary = new PropertyDescriptor(
348:                            "showSummary", beanClass, "isShowSummary",
349:                            "setShowSummary");
350:                    prop_showSummary.setDisplayName(resources
351:                            .getString("Message_showSummary_DisplayName"));
352:                    prop_showSummary.setShortDescription(resources
353:                            .getString("Message_showSummary_Description"));
354:                    prop_showSummary.setExpert(false);
355:                    prop_showSummary.setHidden(false);
356:                    prop_showSummary.setPreferred(false);
357:                    attrib = new AttributeDescriptor("showSummary", false,
358:                            "false", true);
359:                    prop_showSummary.setValue(
360:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
361:                            attrib);
362:                    prop_showSummary
363:                            .setValue(
364:                                    Constants.PropertyDescriptor.CATEGORY,
365:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
366:
367:                    PropertyDescriptor prop_style = new PropertyDescriptor(
368:                            "style", beanClass, "getStyle", "setStyle");
369:                    prop_style.setDisplayName(resources
370:                            .getString("Message_style_DisplayName"));
371:                    prop_style.setShortDescription(resources
372:                            .getString("Message_style_Description"));
373:                    prop_style
374:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
375:                    prop_style.setExpert(false);
376:                    prop_style.setHidden(false);
377:                    prop_style.setPreferred(false);
378:                    attrib = new AttributeDescriptor("style", false, null, true);
379:                    prop_style.setValue(
380:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
381:                            attrib);
382:                    prop_style
383:                            .setValue(
384:                                    Constants.PropertyDescriptor.CATEGORY,
385:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
386:
387:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
388:                            "styleClass", beanClass, "getStyleClass",
389:                            "setStyleClass");
390:                    prop_styleClass.setDisplayName(resources
391:                            .getString("Message_styleClass_DisplayName"));
392:                    prop_styleClass.setShortDescription(resources
393:                            .getString("Message_styleClass_Description"));
394:                    prop_styleClass
395:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
396:                    prop_styleClass.setExpert(false);
397:                    prop_styleClass.setHidden(false);
398:                    prop_styleClass.setPreferred(false);
399:                    attrib = new AttributeDescriptor("styleClass", false, null,
400:                            true);
401:                    prop_styleClass.setValue(
402:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
403:                            attrib);
404:                    prop_styleClass
405:                            .setValue(
406:                                    Constants.PropertyDescriptor.CATEGORY,
407:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
408:
409:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
410:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
411:                    prop_tabIndex.setDisplayName(resources
412:                            .getString("Message_tabIndex_DisplayName"));
413:                    prop_tabIndex.setShortDescription(resources
414:                            .getString("Message_tabIndex_Description"));
415:                    prop_tabIndex
416:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
417:                    prop_tabIndex.setExpert(false);
418:                    prop_tabIndex.setHidden(true);
419:                    prop_tabIndex.setPreferred(false);
420:                    prop_tabIndex
421:                            .setValue(
422:                                    Constants.PropertyDescriptor.CATEGORY,
423:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
424:                    prop_tabIndex.setValue(
425:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
426:
427:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
428:                            "visible", beanClass, "isVisible", "setVisible");
429:                    prop_visible.setDisplayName(resources
430:                            .getString("Message_visible_DisplayName"));
431:                    prop_visible.setShortDescription(resources
432:                            .getString("Message_visible_Description"));
433:                    prop_visible.setExpert(false);
434:                    prop_visible.setHidden(false);
435:                    prop_visible.setPreferred(false);
436:                    attrib = new AttributeDescriptor("visible", false, "true",
437:                            true);
438:                    prop_visible.setValue(
439:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
440:                            attrib);
441:                    prop_visible
442:                            .setValue(
443:                                    Constants.PropertyDescriptor.CATEGORY,
444:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
445:
446:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
447:                            "attributes", beanClass, "getAttributes", null);
448:                    prop_attributes.setDisplayName(resources
449:                            .getString("Message_attributes_DisplayName"));
450:                    prop_attributes.setShortDescription(resources
451:                            .getString("Message_attributes_Description"));
452:                    prop_attributes.setExpert(false);
453:                    prop_attributes.setHidden(true);
454:                    prop_attributes.setPreferred(false);
455:                    prop_attributes
456:                            .setValue(
457:                                    Constants.PropertyDescriptor.CATEGORY,
458:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
459:
460:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
461:                            "childCount", beanClass, "getChildCount", null);
462:                    prop_childCount.setDisplayName(resources
463:                            .getString("Message_childCount_DisplayName"));
464:                    prop_childCount.setShortDescription(resources
465:                            .getString("Message_childCount_Description"));
466:                    prop_childCount.setExpert(false);
467:                    prop_childCount.setHidden(true);
468:                    prop_childCount.setPreferred(false);
469:                    prop_childCount
470:                            .setValue(
471:                                    Constants.PropertyDescriptor.CATEGORY,
472:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
473:
474:                    PropertyDescriptor prop_children = new PropertyDescriptor(
475:                            "children", beanClass, "getChildren", null);
476:                    prop_children.setDisplayName(resources
477:                            .getString("Message_children_DisplayName"));
478:                    prop_children.setShortDescription(resources
479:                            .getString("Message_children_Description"));
480:                    prop_children.setExpert(false);
481:                    prop_children.setHidden(true);
482:                    prop_children.setPreferred(false);
483:                    prop_children
484:                            .setValue(
485:                                    Constants.PropertyDescriptor.CATEGORY,
486:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
487:
488:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
489:                            "facets", beanClass, "getFacets", null);
490:                    prop_facets.setDisplayName(resources
491:                            .getString("Message_facets_DisplayName"));
492:                    prop_facets.setShortDescription(resources
493:                            .getString("Message_facets_Description"));
494:                    prop_facets.setExpert(false);
495:                    prop_facets.setHidden(true);
496:                    prop_facets.setPreferred(false);
497:                    prop_facets
498:                            .setValue(
499:                                    Constants.PropertyDescriptor.CATEGORY,
500:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
501:
502:                    PropertyDescriptor prop_family = new PropertyDescriptor(
503:                            "family", beanClass, "getFamily", null);
504:                    prop_family.setDisplayName(resources
505:                            .getString("Message_family_DisplayName"));
506:                    prop_family.setShortDescription(resources
507:                            .getString("Message_family_Description"));
508:                    prop_family.setExpert(false);
509:                    prop_family.setHidden(true);
510:                    prop_family.setPreferred(false);
511:                    prop_family
512:                            .setValue(
513:                                    Constants.PropertyDescriptor.CATEGORY,
514:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
515:
516:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
517:                            beanClass, "getId", "setId");
518:                    prop_id.setDisplayName(resources
519:                            .getString("Message_id_DisplayName"));
520:                    prop_id.setShortDescription(resources
521:                            .getString("Message_id_Description"));
522:                    prop_id.setExpert(false);
523:                    prop_id.setHidden(true);
524:                    prop_id.setPreferred(false);
525:                    attrib = new AttributeDescriptor("id", false, null, false);
526:                    prop_id.setValue(
527:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
528:                            attrib);
529:                    prop_id
530:                            .setValue(
531:                                    Constants.PropertyDescriptor.CATEGORY,
532:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
533:
534:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
535:                            "parent", beanClass, "getParent", "setParent");
536:                    prop_parent.setDisplayName(resources
537:                            .getString("Message_parent_DisplayName"));
538:                    prop_parent.setShortDescription(resources
539:                            .getString("Message_parent_Description"));
540:                    prop_parent.setExpert(false);
541:                    prop_parent.setHidden(true);
542:                    prop_parent.setPreferred(false);
543:                    prop_parent
544:                            .setValue(
545:                                    Constants.PropertyDescriptor.CATEGORY,
546:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
547:
548:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
549:                            "rendered", beanClass, "isRendered", "setRendered");
550:                    prop_rendered.setDisplayName(resources
551:                            .getString("Message_rendered_DisplayName"));
552:                    prop_rendered.setShortDescription(resources
553:                            .getString("Message_rendered_Description"));
554:                    prop_rendered.setExpert(false);
555:                    prop_rendered.setHidden(false);
556:                    prop_rendered.setPreferred(false);
557:                    attrib = new AttributeDescriptor("rendered", false, null,
558:                            true);
559:                    prop_rendered.setValue(
560:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
561:                            attrib);
562:                    prop_rendered
563:                            .setValue(
564:                                    Constants.PropertyDescriptor.CATEGORY,
565:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
566:
567:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
568:                            "rendererType", beanClass, "getRendererType",
569:                            "setRendererType");
570:                    prop_rendererType.setDisplayName(resources
571:                            .getString("Message_rendererType_DisplayName"));
572:                    prop_rendererType.setShortDescription(resources
573:                            .getString("Message_rendererType_Description"));
574:                    prop_rendererType.setExpert(false);
575:                    prop_rendererType.setHidden(true);
576:                    prop_rendererType.setPreferred(false);
577:                    prop_rendererType
578:                            .setValue(
579:                                    Constants.PropertyDescriptor.CATEGORY,
580:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
581:
582:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
583:                            "rendersChildren", beanClass, "getRendersChildren",
584:                            null);
585:                    prop_rendersChildren.setDisplayName(resources
586:                            .getString("Message_rendersChildren_DisplayName"));
587:                    prop_rendersChildren.setShortDescription(resources
588:                            .getString("Message_rendersChildren_Description"));
589:                    prop_rendersChildren.setExpert(false);
590:                    prop_rendersChildren.setHidden(true);
591:                    prop_rendersChildren.setPreferred(false);
592:                    prop_rendersChildren
593:                            .setValue(
594:                                    Constants.PropertyDescriptor.CATEGORY,
595:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
596:
597:                    propDescriptors = new PropertyDescriptor[] { prop_alt,
598:                            prop_attributes, prop_childCount, prop_children,
599:                            prop_facets, prop_family, prop_for, prop_id,
600:                            prop_parent, prop_rendered, prop_rendererType,
601:                            prop_rendersChildren, prop_showDetail,
602:                            prop_showSummary, prop_style, prop_styleClass,
603:                            prop_tabIndex, prop_visible, };
604:                    return propDescriptors;
605:
606:                } catch (IntrospectionException e) {
607:                    e.printStackTrace();
608:                    return null;
609:                }
610:
611:            }
612:
613:        }
614:        //GEN-END:BeanInfo
w__ww.___j_a__v___a_2s__.__co_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.