Source Code Cross Referenced for BreadcrumbsBeanInfoBase.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 BreadcrumbsBeanInfoBase 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(), BreadcrumbsBeanInfoBase.class
071:                                    .getClassLoader());
072:
073:            /**
074:             * <p>Construct a new <code>BreadcrumbsBeanInfoBase</code>.</p>
075:             */
076:            public BreadcrumbsBeanInfoBase() {
077:
078:                beanClass = com.sun.rave.web.ui.component.Breadcrumbs.class;
079:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Breadcrumbs_C16";
080:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Breadcrumbs_C32";
081:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Breadcrumbs_M16";
082:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Breadcrumbs_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("Breadcrumbs_DisplayName"));
143:                beanDescriptor.setShortDescription(resources
144:                        .getString("Breadcrumbs_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_breadcrumbs");
153:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
154:                        "breadcrumbs");
155:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
156:                        Boolean.TRUE);
157:                beanDescriptor
158:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
159:                                "projrave_ui_elements_palette_bh_propsheets_bh_breadcrumbs_props");
160:                beanDescriptor.setValue(
161:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
162:                        getCategoryDescriptors());
163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
164:                        "breadcrumbs");
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_pages = new PropertyDescriptor(
288:                            "pages", beanClass, "getPages", "setPages");
289:                    prop_pages.setDisplayName(resources
290:                            .getString("Breadcrumbs_pages_DisplayName"));
291:                    prop_pages.setShortDescription(resources
292:                            .getString("Breadcrumbs_pages_Description"));
293:                    prop_pages
294:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
295:                    prop_pages.setExpert(false);
296:                    prop_pages.setHidden(false);
297:                    prop_pages.setPreferred(false);
298:                    attrib = new AttributeDescriptor("pages", false, null, true);
299:                    prop_pages.setValue(
300:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
301:                            attrib);
302:                    prop_pages
303:                            .setValue(
304:                                    Constants.PropertyDescriptor.CATEGORY,
305:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
306:
307:                    PropertyDescriptor prop_style = new PropertyDescriptor(
308:                            "style", beanClass, "getStyle", "setStyle");
309:                    prop_style.setDisplayName(resources
310:                            .getString("Breadcrumbs_style_DisplayName"));
311:                    prop_style.setShortDescription(resources
312:                            .getString("Breadcrumbs_style_Description"));
313:                    prop_style
314:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
315:                    prop_style.setExpert(false);
316:                    prop_style.setHidden(false);
317:                    prop_style.setPreferred(false);
318:                    attrib = new AttributeDescriptor("style", false, null, true);
319:                    prop_style.setValue(
320:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
321:                            attrib);
322:                    prop_style
323:                            .setValue(
324:                                    Constants.PropertyDescriptor.CATEGORY,
325:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
326:
327:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
328:                            "styleClass", beanClass, "getStyleClass",
329:                            "setStyleClass");
330:                    prop_styleClass.setDisplayName(resources
331:                            .getString("Breadcrumbs_styleClass_DisplayName"));
332:                    prop_styleClass.setShortDescription(resources
333:                            .getString("Breadcrumbs_styleClass_Description"));
334:                    prop_styleClass
335:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
336:                    prop_styleClass.setExpert(false);
337:                    prop_styleClass.setHidden(false);
338:                    prop_styleClass.setPreferred(false);
339:                    attrib = new AttributeDescriptor("styleClass", false, null,
340:                            true);
341:                    prop_styleClass.setValue(
342:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
343:                            attrib);
344:                    prop_styleClass
345:                            .setValue(
346:                                    Constants.PropertyDescriptor.CATEGORY,
347:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
348:
349:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
350:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
351:                    prop_tabIndex.setDisplayName(resources
352:                            .getString("Breadcrumbs_tabIndex_DisplayName"));
353:                    prop_tabIndex.setShortDescription(resources
354:                            .getString("Breadcrumbs_tabIndex_Description"));
355:                    prop_tabIndex
356:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
357:                    prop_tabIndex.setExpert(false);
358:                    prop_tabIndex.setHidden(false);
359:                    prop_tabIndex.setPreferred(false);
360:                    attrib = new AttributeDescriptor("tabIndex", false, null,
361:                            true);
362:                    prop_tabIndex.setValue(
363:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
364:                            attrib);
365:                    prop_tabIndex
366:                            .setValue(
367:                                    Constants.PropertyDescriptor.CATEGORY,
368:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
369:                    prop_tabIndex.setValue(
370:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
371:
372:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
373:                            "visible", beanClass, "isVisible", "setVisible");
374:                    prop_visible.setDisplayName(resources
375:                            .getString("Breadcrumbs_visible_DisplayName"));
376:                    prop_visible.setShortDescription(resources
377:                            .getString("Breadcrumbs_visible_Description"));
378:                    prop_visible.setExpert(false);
379:                    prop_visible.setHidden(false);
380:                    prop_visible.setPreferred(false);
381:                    attrib = new AttributeDescriptor("visible", false, "true",
382:                            true);
383:                    prop_visible.setValue(
384:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
385:                            attrib);
386:                    prop_visible
387:                            .setValue(
388:                                    Constants.PropertyDescriptor.CATEGORY,
389:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
390:
391:                    PropertyDescriptor prop_action = new PropertyDescriptor(
392:                            "action", beanClass, "getAction", "setAction");
393:                    prop_action.setDisplayName(resources
394:                            .getString("Breadcrumbs_action_DisplayName"));
395:                    prop_action.setShortDescription(resources
396:                            .getString("Breadcrumbs_action_Description"));
397:                    prop_action
398:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
399:                    prop_action.setExpert(false);
400:                    prop_action.setHidden(true);
401:                    prop_action.setPreferred(false);
402:                    prop_action
403:                            .setValue(
404:                                    Constants.PropertyDescriptor.CATEGORY,
405:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
406:
407:                    PropertyDescriptor prop_actionListener = new PropertyDescriptor(
408:                            "actionListener", beanClass, "getActionListener",
409:                            "setActionListener");
410:                    prop_actionListener
411:                            .setDisplayName(resources
412:                                    .getString("Breadcrumbs_actionListener_DisplayName"));
413:                    prop_actionListener
414:                            .setShortDescription(resources
415:                                    .getString("Breadcrumbs_actionListener_Description"));
416:                    prop_actionListener
417:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
418:                    prop_actionListener.setExpert(false);
419:                    prop_actionListener.setHidden(true);
420:                    prop_actionListener.setPreferred(false);
421:                    prop_actionListener
422:                            .setValue(
423:                                    Constants.PropertyDescriptor.CATEGORY,
424:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
425:
426:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
427:                            "attributes", beanClass, "getAttributes", null);
428:                    prop_attributes.setDisplayName(resources
429:                            .getString("Breadcrumbs_attributes_DisplayName"));
430:                    prop_attributes.setShortDescription(resources
431:                            .getString("Breadcrumbs_attributes_Description"));
432:                    prop_attributes.setExpert(false);
433:                    prop_attributes.setHidden(true);
434:                    prop_attributes.setPreferred(false);
435:                    prop_attributes
436:                            .setValue(
437:                                    Constants.PropertyDescriptor.CATEGORY,
438:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
439:
440:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
441:                            "childCount", beanClass, "getChildCount", null);
442:                    prop_childCount.setDisplayName(resources
443:                            .getString("Breadcrumbs_childCount_DisplayName"));
444:                    prop_childCount.setShortDescription(resources
445:                            .getString("Breadcrumbs_childCount_Description"));
446:                    prop_childCount.setExpert(false);
447:                    prop_childCount.setHidden(true);
448:                    prop_childCount.setPreferred(false);
449:                    prop_childCount
450:                            .setValue(
451:                                    Constants.PropertyDescriptor.CATEGORY,
452:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
453:
454:                    PropertyDescriptor prop_children = new PropertyDescriptor(
455:                            "children", beanClass, "getChildren", null);
456:                    prop_children.setDisplayName(resources
457:                            .getString("Breadcrumbs_children_DisplayName"));
458:                    prop_children.setShortDescription(resources
459:                            .getString("Breadcrumbs_children_Description"));
460:                    prop_children.setExpert(false);
461:                    prop_children.setHidden(true);
462:                    prop_children.setPreferred(false);
463:                    prop_children
464:                            .setValue(
465:                                    Constants.PropertyDescriptor.CATEGORY,
466:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
467:
468:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
469:                            "facets", beanClass, "getFacets", null);
470:                    prop_facets.setDisplayName(resources
471:                            .getString("Breadcrumbs_facets_DisplayName"));
472:                    prop_facets.setShortDescription(resources
473:                            .getString("Breadcrumbs_facets_Description"));
474:                    prop_facets.setExpert(false);
475:                    prop_facets.setHidden(true);
476:                    prop_facets.setPreferred(false);
477:                    prop_facets
478:                            .setValue(
479:                                    Constants.PropertyDescriptor.CATEGORY,
480:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
481:
482:                    PropertyDescriptor prop_family = new PropertyDescriptor(
483:                            "family", beanClass, "getFamily", null);
484:                    prop_family.setDisplayName(resources
485:                            .getString("Breadcrumbs_family_DisplayName"));
486:                    prop_family.setShortDescription(resources
487:                            .getString("Breadcrumbs_family_Description"));
488:                    prop_family.setExpert(false);
489:                    prop_family.setHidden(true);
490:                    prop_family.setPreferred(false);
491:                    prop_family
492:                            .setValue(
493:                                    Constants.PropertyDescriptor.CATEGORY,
494:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
495:
496:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
497:                            beanClass, "getId", "setId");
498:                    prop_id.setDisplayName(resources
499:                            .getString("Breadcrumbs_id_DisplayName"));
500:                    prop_id.setShortDescription(resources
501:                            .getString("Breadcrumbs_id_Description"));
502:                    prop_id.setExpert(false);
503:                    prop_id.setHidden(true);
504:                    prop_id.setPreferred(false);
505:                    attrib = new AttributeDescriptor("id", false, null, true);
506:                    prop_id.setValue(
507:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
508:                            attrib);
509:                    prop_id
510:                            .setValue(
511:                                    Constants.PropertyDescriptor.CATEGORY,
512:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
513:
514:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
515:                            "immediate", beanClass, "isImmediate",
516:                            "setImmediate");
517:                    prop_immediate.setDisplayName(resources
518:                            .getString("Breadcrumbs_immediate_DisplayName"));
519:                    prop_immediate.setShortDescription(resources
520:                            .getString("Breadcrumbs_immediate_Description"));
521:                    prop_immediate.setExpert(false);
522:                    prop_immediate.setHidden(true);
523:                    prop_immediate.setPreferred(false);
524:                    prop_immediate
525:                            .setValue(
526:                                    Constants.PropertyDescriptor.CATEGORY,
527:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
528:
529:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
530:                            "parent", beanClass, "getParent", null);
531:                    prop_parent.setDisplayName(resources
532:                            .getString("Breadcrumbs_parent_DisplayName"));
533:                    prop_parent.setShortDescription(resources
534:                            .getString("Breadcrumbs_parent_Description"));
535:                    prop_parent.setExpert(false);
536:                    prop_parent.setHidden(true);
537:                    prop_parent.setPreferred(false);
538:                    prop_parent
539:                            .setValue(
540:                                    Constants.PropertyDescriptor.CATEGORY,
541:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
542:
543:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
544:                            "rendered", beanClass, "isRendered", "setRendered");
545:                    prop_rendered.setDisplayName(resources
546:                            .getString("Breadcrumbs_rendered_DisplayName"));
547:                    prop_rendered.setShortDescription(resources
548:                            .getString("Breadcrumbs_rendered_Description"));
549:                    prop_rendered.setExpert(false);
550:                    prop_rendered.setHidden(false);
551:                    prop_rendered.setPreferred(false);
552:                    attrib = new AttributeDescriptor("rendered", false, null,
553:                            true);
554:                    prop_rendered.setValue(
555:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
556:                            attrib);
557:                    prop_rendered
558:                            .setValue(
559:                                    Constants.PropertyDescriptor.CATEGORY,
560:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
561:
562:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
563:                            "rendererType", beanClass, "getRendererType",
564:                            "setRendererType");
565:                    prop_rendererType.setDisplayName(resources
566:                            .getString("Breadcrumbs_rendererType_DisplayName"));
567:                    prop_rendererType.setShortDescription(resources
568:                            .getString("Breadcrumbs_rendererType_Description"));
569:                    prop_rendererType.setExpert(false);
570:                    prop_rendererType.setHidden(true);
571:                    prop_rendererType.setPreferred(false);
572:                    prop_rendererType
573:                            .setValue(
574:                                    Constants.PropertyDescriptor.CATEGORY,
575:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
576:
577:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
578:                            "rendersChildren", beanClass, "getRendersChildren",
579:                            null);
580:                    prop_rendersChildren
581:                            .setDisplayName(resources
582:                                    .getString("Breadcrumbs_rendersChildren_DisplayName"));
583:                    prop_rendersChildren
584:                            .setShortDescription(resources
585:                                    .getString("Breadcrumbs_rendersChildren_Description"));
586:                    prop_rendersChildren.setExpert(false);
587:                    prop_rendersChildren.setHidden(true);
588:                    prop_rendersChildren.setPreferred(false);
589:                    prop_rendersChildren
590:                            .setValue(
591:                                    Constants.PropertyDescriptor.CATEGORY,
592:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
593:
594:                    PropertyDescriptor prop_value = new PropertyDescriptor(
595:                            "value", beanClass, "getValue", "setValue");
596:                    prop_value.setDisplayName(resources
597:                            .getString("Breadcrumbs_value_DisplayName"));
598:                    prop_value.setShortDescription(resources
599:                            .getString("Breadcrumbs_value_Description"));
600:                    prop_value
601:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
602:                    prop_value.setExpert(false);
603:                    prop_value.setHidden(true);
604:                    prop_value.setPreferred(false);
605:                    prop_value
606:                            .setValue(
607:                                    Constants.PropertyDescriptor.CATEGORY,
608:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
609:                    prop_value.setValue("ignoreIsBound", "true");
610:
611:                    propDescriptors = new PropertyDescriptor[] { prop_action,
612:                            prop_actionListener, prop_attributes,
613:                            prop_childCount, prop_children, prop_facets,
614:                            prop_family, prop_id, prop_immediate, prop_pages,
615:                            prop_parent, prop_rendered, prop_rendererType,
616:                            prop_rendersChildren, prop_style, prop_styleClass,
617:                            prop_tabIndex, prop_value, prop_visible, };
618:                    return propDescriptors;
619:
620:                } catch (IntrospectionException e) {
621:                    e.printStackTrace();
622:                    return null;
623:                }
624:
625:            }
626:
627:        }
628:        //GEN-END:BeanInfo
ww___w.___j___a_v__a___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.