Source Code Cross Referenced for OrderableListBeanInfoBase.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 OrderableListBeanInfoBase 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(),
071:                            OrderableListBeanInfoBase.class.getClassLoader());
072:
073:            /**
074:             * <p>Construct a new <code>OrderableListBeanInfoBase</code>.</p>
075:             */
076:            public OrderableListBeanInfoBase() {
077:
078:                beanClass = com.sun.rave.web.ui.component.OrderableList.class;
079:                defaultPropertyName = "value";
080:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/OrderableList_C16";
081:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/OrderableList_C32";
082:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/OrderableList_M16";
083:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/OrderableList_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("OrderableList_DisplayName"));
144:                beanDescriptor.setShortDescription(resources
145:                        .getString("OrderableList_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.INSTANCE_NAME,
153:                        "orderableList");
154:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
155:                        Boolean.TRUE);
156:                beanDescriptor.setValue(
157:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
158:                        getCategoryDescriptors());
159:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
160:                        "orderableList");
161:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
162:                        "ui");
163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
164:                        "http://www.sun.com/web/ui");
165:
166:                return beanDescriptor;
167:
168:            }
169:
170:            /**
171:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
172:             */
173:            private CategoryDescriptor[] getCategoryDescriptors() {
174:
175:                return com.sun.rave.designtime.base.CategoryDescriptors
176:                        .getDefaultCategoryDescriptors();
177:
178:            }
179:
180:            /**
181:             * <p>Return the index of the default property, or
182:             * -1 if there is no default property.</p>
183:             */
184:            public int getDefaultPropertyIndex() {
185:
186:                if (defaultPropertyIndex > -2) {
187:                    return defaultPropertyIndex;
188:                } else {
189:                    if (defaultPropertyName == null) {
190:                        defaultPropertyIndex = -1;
191:                    } else {
192:                        PropertyDescriptor pd[] = getPropertyDescriptors();
193:                        for (int i = 0; i < pd.length; i++) {
194:                            if (defaultPropertyName.equals(pd[i].getName())) {
195:                                defaultPropertyIndex = i;
196:                                break;
197:                            }
198:                        }
199:                    }
200:                }
201:                return defaultPropertyIndex;
202:            }
203:
204:            /**
205:             * <p>The cached facet descriptors.</p>
206:             */
207:            protected FacetDescriptor[] facetDescriptors;
208:
209:            /**
210:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
211:             */
212:            public FacetDescriptor[] getFacetDescriptors() {
213:
214:                if (facetDescriptors != null) {
215:                    return facetDescriptors;
216:                }
217:                try {
218:
219:                    FacetDescriptor facet_footer = new FacetDescriptor("footer");
220:                    facet_footer.setDisplayName(resources
221:                            .getString("OrderableList_footer_DisplayName"));
222:                    facet_footer.setShortDescription(resources
223:                            .getString("OrderableList_footer_Description"));
224:
225:                    FacetDescriptor facet_label = new FacetDescriptor("label");
226:                    facet_label.setDisplayName(resources
227:                            .getString("OrderableList_label_DisplayName"));
228:                    facet_label.setShortDescription(resources
229:                            .getString("OrderableList_label_Description"));
230:
231:                    FacetDescriptor facet_moveDownButton = new FacetDescriptor(
232:                            "moveDownButton");
233:                    facet_moveDownButton
234:                            .setDisplayName(resources
235:                                    .getString("OrderableList_moveDownButton_DisplayName"));
236:                    facet_moveDownButton
237:                            .setShortDescription(resources
238:                                    .getString("OrderableList_moveDownButton_Description"));
239:
240:                    FacetDescriptor facet_moveUpButton = new FacetDescriptor(
241:                            "moveUpButton");
242:                    facet_moveUpButton
243:                            .setDisplayName(resources
244:                                    .getString("OrderableList_moveUpButton_DisplayName"));
245:                    facet_moveUpButton
246:                            .setShortDescription(resources
247:                                    .getString("OrderableList_moveUpButton_Description"));
248:
249:                    FacetDescriptor facet_readOnly = new FacetDescriptor(
250:                            "readOnly");
251:                    facet_readOnly.setDisplayName(resources
252:                            .getString("OrderableList_readOnly_DisplayName"));
253:                    facet_readOnly.setShortDescription(resources
254:                            .getString("OrderableList_readOnly_Description"));
255:
256:                    facetDescriptors = new FacetDescriptor[] { facet_footer,
257:                            facet_label, facet_moveDownButton,
258:                            facet_moveUpButton, facet_readOnly, };
259:                    return facetDescriptors;
260:
261:                } catch (RuntimeException e) {
262:                    System.out.println(e.getMessage());
263:                    e.printStackTrace(System.out);
264:                    throw e;
265:                }
266:
267:            }
268:
269:            /**
270:             * <p>Return the specified image (if any)
271:             * for this component class.</p>
272:             */
273:            public Image getIcon(int kind) {
274:
275:                String name;
276:                switch (kind) {
277:                case ICON_COLOR_16x16:
278:                    name = iconFileName_C16;
279:                    break;
280:                case ICON_COLOR_32x32:
281:                    name = iconFileName_C32;
282:                    break;
283:                case ICON_MONO_16x16:
284:                    name = iconFileName_M16;
285:                    break;
286:                case ICON_MONO_32x32:
287:                    name = iconFileName_M32;
288:                    break;
289:                default:
290:                    name = null;
291:                    break;
292:                }
293:                if (name == null) {
294:                    return null;
295:                }
296:
297:                Image image = loadImage(name + ".png");
298:                if (image == null) {
299:                    image = loadImage(name + ".gif");
300:                }
301:                return image;
302:
303:            }
304:
305:            /**
306:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
307:             */
308:            private java.lang.Class loadClass(java.lang.String name) {
309:
310:                try {
311:                    return Class.forName(name);
312:                } catch (ClassNotFoundException e) {
313:                    throw new RuntimeException(e);
314:                }
315:
316:            }
317:
318:            /**
319:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
320:             */
321:            public PropertyDescriptor[] getPropertyDescriptors() {
322:
323:                if (propDescriptors != null) {
324:                    return propDescriptors;
325:                }
326:                AttributeDescriptor attrib = null;
327:
328:                try {
329:
330:                    PropertyDescriptor prop_disabled = new PropertyDescriptor(
331:                            "disabled", beanClass, "isDisabled", "setDisabled");
332:                    prop_disabled.setDisplayName(resources
333:                            .getString("OrderableList_disabled_DisplayName"));
334:                    prop_disabled.setShortDescription(resources
335:                            .getString("OrderableList_disabled_Description"));
336:                    prop_disabled.setExpert(false);
337:                    prop_disabled.setHidden(false);
338:                    prop_disabled.setPreferred(false);
339:                    attrib = new AttributeDescriptor("disabled", false, null,
340:                            true);
341:                    prop_disabled.setValue(
342:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
343:                            attrib);
344:                    prop_disabled
345:                            .setValue(
346:                                    Constants.PropertyDescriptor.CATEGORY,
347:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
348:
349:                    PropertyDescriptor prop_label = new PropertyDescriptor(
350:                            "label", beanClass, "getLabel", "setLabel");
351:                    prop_label.setDisplayName(resources
352:                            .getString("OrderableList_label_DisplayName"));
353:                    prop_label.setShortDescription(resources
354:                            .getString("OrderableList_label_Description"));
355:                    prop_label
356:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
357:                    prop_label.setExpert(false);
358:                    prop_label.setHidden(false);
359:                    prop_label.setPreferred(false);
360:                    attrib = new AttributeDescriptor("label", false, null, true);
361:                    prop_label.setValue(
362:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
363:                            attrib);
364:                    prop_label
365:                            .setValue(
366:                                    Constants.PropertyDescriptor.CATEGORY,
367:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
368:
369:                    PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
370:                            "labelLevel", beanClass, "getLabelLevel",
371:                            "setLabelLevel");
372:                    prop_labelLevel.setDisplayName(resources
373:                            .getString("OrderableList_labelLevel_DisplayName"));
374:                    prop_labelLevel.setShortDescription(resources
375:                            .getString("OrderableList_labelLevel_Description"));
376:                    prop_labelLevel
377:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
378:                    prop_labelLevel.setExpert(false);
379:                    prop_labelLevel.setHidden(false);
380:                    prop_labelLevel.setPreferred(false);
381:                    attrib = new AttributeDescriptor("labelLevel", false, "2",
382:                            true);
383:                    prop_labelLevel.setValue(
384:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
385:                            attrib);
386:                    prop_labelLevel
387:                            .setValue(
388:                                    Constants.PropertyDescriptor.CATEGORY,
389:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
390:                    prop_labelLevel
391:                            .setValue(
392:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
393:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
394:
395:                    PropertyDescriptor prop_labelOnTop = new PropertyDescriptor(
396:                            "labelOnTop", beanClass, "isLabelOnTop",
397:                            "setLabelOnTop");
398:                    prop_labelOnTop.setDisplayName(resources
399:                            .getString("OrderableList_labelOnTop_DisplayName"));
400:                    prop_labelOnTop.setShortDescription(resources
401:                            .getString("OrderableList_labelOnTop_Description"));
402:                    prop_labelOnTop.setExpert(false);
403:                    prop_labelOnTop.setHidden(false);
404:                    prop_labelOnTop.setPreferred(false);
405:                    attrib = new AttributeDescriptor("labelOnTop", false, null,
406:                            true);
407:                    prop_labelOnTop.setValue(
408:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
409:                            attrib);
410:                    prop_labelOnTop
411:                            .setValue(
412:                                    Constants.PropertyDescriptor.CATEGORY,
413:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
414:
415:                    PropertyDescriptor prop_list = new PropertyDescriptor(
416:                            "list", beanClass, "getList", "setList");
417:                    prop_list.setDisplayName(resources
418:                            .getString("OrderableList_list_DisplayName"));
419:                    prop_list.setShortDescription(resources
420:                            .getString("OrderableList_list_Description"));
421:                    prop_list
422:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
423:                    prop_list.setExpert(false);
424:                    prop_list.setHidden(false);
425:                    prop_list.setPreferred(false);
426:                    attrib = new AttributeDescriptor("list", false, null, true);
427:                    prop_list.setValue(
428:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
429:                            attrib);
430:                    prop_list
431:                            .setValue(
432:                                    Constants.PropertyDescriptor.CATEGORY,
433:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
434:
435:                    PropertyDescriptor prop_moveTopBottom = new PropertyDescriptor(
436:                            "moveTopBottom", beanClass, "isMoveTopBottom",
437:                            "setMoveTopBottom");
438:                    prop_moveTopBottom
439:                            .setDisplayName(resources
440:                                    .getString("OrderableList_moveTopBottom_DisplayName"));
441:                    prop_moveTopBottom
442:                            .setShortDescription(resources
443:                                    .getString("OrderableList_moveTopBottom_Description"));
444:                    prop_moveTopBottom.setExpert(false);
445:                    prop_moveTopBottom.setHidden(false);
446:                    prop_moveTopBottom.setPreferred(false);
447:                    attrib = new AttributeDescriptor("moveTopBottom", false,
448:                            null, true);
449:                    prop_moveTopBottom.setValue(
450:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
451:                            attrib);
452:                    prop_moveTopBottom
453:                            .setValue(
454:                                    Constants.PropertyDescriptor.CATEGORY,
455:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
456:
457:                    PropertyDescriptor prop_multiple = new PropertyDescriptor(
458:                            "multiple", beanClass, "isMultiple", "setMultiple");
459:                    prop_multiple.setDisplayName(resources
460:                            .getString("OrderableList_multiple_DisplayName"));
461:                    prop_multiple.setShortDescription(resources
462:                            .getString("OrderableList_multiple_Description"));
463:                    prop_multiple.setExpert(false);
464:                    prop_multiple.setHidden(false);
465:                    prop_multiple.setPreferred(false);
466:                    attrib = new AttributeDescriptor("multiple", false, null,
467:                            true);
468:                    prop_multiple.setValue(
469:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
470:                            attrib);
471:                    prop_multiple
472:                            .setValue(
473:                                    Constants.PropertyDescriptor.CATEGORY,
474:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
475:
476:                    PropertyDescriptor prop_readOnly = new PropertyDescriptor(
477:                            "readOnly", beanClass, "isReadOnly", "setReadOnly");
478:                    prop_readOnly.setDisplayName(resources
479:                            .getString("OrderableList_readOnly_DisplayName"));
480:                    prop_readOnly.setShortDescription(resources
481:                            .getString("OrderableList_readOnly_Description"));
482:                    prop_readOnly.setExpert(false);
483:                    prop_readOnly.setHidden(false);
484:                    prop_readOnly.setPreferred(false);
485:                    attrib = new AttributeDescriptor("readOnly", false, null,
486:                            true);
487:                    prop_readOnly.setValue(
488:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
489:                            attrib);
490:                    prop_readOnly
491:                            .setValue(
492:                                    Constants.PropertyDescriptor.CATEGORY,
493:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
494:
495:                    PropertyDescriptor prop_rows = new PropertyDescriptor(
496:                            "rows", beanClass, "getRows", "setRows");
497:                    prop_rows.setDisplayName(resources
498:                            .getString("OrderableList_rows_DisplayName"));
499:                    prop_rows.setShortDescription(resources
500:                            .getString("OrderableList_rows_Description"));
501:                    prop_rows
502:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
503:                    prop_rows.setExpert(false);
504:                    prop_rows.setHidden(false);
505:                    prop_rows.setPreferred(false);
506:                    attrib = new AttributeDescriptor("rows", false, "12", true);
507:                    prop_rows.setValue(
508:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
509:                            attrib);
510:                    prop_rows
511:                            .setValue(
512:                                    Constants.PropertyDescriptor.CATEGORY,
513:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
514:                    prop_rows.setValue(
515:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
516:
517:                    PropertyDescriptor prop_style = new PropertyDescriptor(
518:                            "style", beanClass, "getStyle", "setStyle");
519:                    prop_style.setDisplayName(resources
520:                            .getString("OrderableList_style_DisplayName"));
521:                    prop_style.setShortDescription(resources
522:                            .getString("OrderableList_style_Description"));
523:                    prop_style
524:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
525:                    prop_style.setExpert(false);
526:                    prop_style.setHidden(false);
527:                    prop_style.setPreferred(false);
528:                    attrib = new AttributeDescriptor("style", false, null, true);
529:                    prop_style.setValue(
530:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
531:                            attrib);
532:                    prop_style
533:                            .setValue(
534:                                    Constants.PropertyDescriptor.CATEGORY,
535:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
536:
537:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
538:                            "styleClass", beanClass, "getStyleClass",
539:                            "setStyleClass");
540:                    prop_styleClass.setDisplayName(resources
541:                            .getString("OrderableList_styleClass_DisplayName"));
542:                    prop_styleClass.setShortDescription(resources
543:                            .getString("OrderableList_styleClass_Description"));
544:                    prop_styleClass
545:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
546:                    prop_styleClass.setExpert(false);
547:                    prop_styleClass.setHidden(false);
548:                    prop_styleClass.setPreferred(false);
549:                    attrib = new AttributeDescriptor("styleClass", false, null,
550:                            true);
551:                    prop_styleClass.setValue(
552:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
553:                            attrib);
554:                    prop_styleClass
555:                            .setValue(
556:                                    Constants.PropertyDescriptor.CATEGORY,
557:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
558:
559:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
560:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
561:                    prop_tabIndex.setDisplayName(resources
562:                            .getString("OrderableList_tabIndex_DisplayName"));
563:                    prop_tabIndex.setShortDescription(resources
564:                            .getString("OrderableList_tabIndex_Description"));
565:                    prop_tabIndex
566:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
567:                    prop_tabIndex.setExpert(false);
568:                    prop_tabIndex.setHidden(false);
569:                    prop_tabIndex.setPreferred(false);
570:                    attrib = new AttributeDescriptor("tabIndex", false, null,
571:                            true);
572:                    prop_tabIndex.setValue(
573:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
574:                            attrib);
575:                    prop_tabIndex
576:                            .setValue(
577:                                    Constants.PropertyDescriptor.CATEGORY,
578:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
579:                    prop_tabIndex.setValue(
580:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
581:
582:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
583:                            "toolTip", beanClass, "getToolTip", "setToolTip");
584:                    prop_toolTip.setDisplayName(resources
585:                            .getString("OrderableList_toolTip_DisplayName"));
586:                    prop_toolTip.setShortDescription(resources
587:                            .getString("OrderableList_toolTip_Description"));
588:                    prop_toolTip
589:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
590:                    prop_toolTip.setExpert(false);
591:                    prop_toolTip.setHidden(false);
592:                    prop_toolTip.setPreferred(false);
593:                    attrib = new AttributeDescriptor("toolTip", false, null,
594:                            true);
595:                    prop_toolTip.setValue(
596:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
597:                            attrib);
598:                    prop_toolTip
599:                            .setValue(
600:                                    Constants.PropertyDescriptor.CATEGORY,
601:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
602:
603:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
604:                            "visible", beanClass, "isVisible", "setVisible");
605:                    prop_visible.setDisplayName(resources
606:                            .getString("OrderableList_visible_DisplayName"));
607:                    prop_visible.setShortDescription(resources
608:                            .getString("OrderableList_visible_Description"));
609:                    prop_visible.setExpert(false);
610:                    prop_visible.setHidden(false);
611:                    prop_visible.setPreferred(false);
612:                    attrib = new AttributeDescriptor("visible", false, "true",
613:                            true);
614:                    prop_visible.setValue(
615:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
616:                            attrib);
617:                    prop_visible
618:                            .setValue(
619:                                    Constants.PropertyDescriptor.CATEGORY,
620:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
621:
622:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
623:                            "attributes", beanClass, "getAttributes", null);
624:                    prop_attributes.setDisplayName(resources
625:                            .getString("OrderableList_attributes_DisplayName"));
626:                    prop_attributes.setShortDescription(resources
627:                            .getString("OrderableList_attributes_Description"));
628:                    prop_attributes.setExpert(false);
629:                    prop_attributes.setHidden(true);
630:                    prop_attributes.setPreferred(false);
631:                    prop_attributes
632:                            .setValue(
633:                                    Constants.PropertyDescriptor.CATEGORY,
634:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
635:
636:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
637:                            "childCount", beanClass, "getChildCount", null);
638:                    prop_childCount.setDisplayName(resources
639:                            .getString("OrderableList_childCount_DisplayName"));
640:                    prop_childCount.setShortDescription(resources
641:                            .getString("OrderableList_childCount_Description"));
642:                    prop_childCount.setExpert(false);
643:                    prop_childCount.setHidden(true);
644:                    prop_childCount.setPreferred(false);
645:                    prop_childCount
646:                            .setValue(
647:                                    Constants.PropertyDescriptor.CATEGORY,
648:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
649:
650:                    PropertyDescriptor prop_children = new PropertyDescriptor(
651:                            "children", beanClass, "getChildren", null);
652:                    prop_children.setDisplayName(resources
653:                            .getString("OrderableList_children_DisplayName"));
654:                    prop_children.setShortDescription(resources
655:                            .getString("OrderableList_children_Description"));
656:                    prop_children.setExpert(false);
657:                    prop_children.setHidden(true);
658:                    prop_children.setPreferred(false);
659:                    prop_children
660:                            .setValue(
661:                                    Constants.PropertyDescriptor.CATEGORY,
662:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
663:
664:                    PropertyDescriptor prop_converter = new PropertyDescriptor(
665:                            "converter", beanClass, "getConverter",
666:                            "setConverter");
667:                    prop_converter.setDisplayName(resources
668:                            .getString("OrderableList_converter_DisplayName"));
669:                    prop_converter.setShortDescription(resources
670:                            .getString("OrderableList_converter_Description"));
671:                    prop_converter
672:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
673:                    prop_converter.setExpert(false);
674:                    prop_converter.setHidden(false);
675:                    prop_converter.setPreferred(false);
676:                    attrib = new AttributeDescriptor("converter", false, null,
677:                            true);
678:                    prop_converter.setValue(
679:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
680:                            attrib);
681:                    prop_converter
682:                            .setValue(
683:                                    Constants.PropertyDescriptor.CATEGORY,
684:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
685:
686:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
687:                            "facets", beanClass, "getFacets", null);
688:                    prop_facets.setDisplayName(resources
689:                            .getString("OrderableList_facets_DisplayName"));
690:                    prop_facets.setShortDescription(resources
691:                            .getString("OrderableList_facets_Description"));
692:                    prop_facets.setExpert(false);
693:                    prop_facets.setHidden(true);
694:                    prop_facets.setPreferred(false);
695:                    prop_facets
696:                            .setValue(
697:                                    Constants.PropertyDescriptor.CATEGORY,
698:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
699:
700:                    PropertyDescriptor prop_family = new PropertyDescriptor(
701:                            "family", beanClass, "getFamily", null);
702:                    prop_family.setDisplayName(resources
703:                            .getString("OrderableList_family_DisplayName"));
704:                    prop_family.setShortDescription(resources
705:                            .getString("OrderableList_family_Description"));
706:                    prop_family.setExpert(false);
707:                    prop_family.setHidden(true);
708:                    prop_family.setPreferred(false);
709:                    prop_family
710:                            .setValue(
711:                                    Constants.PropertyDescriptor.CATEGORY,
712:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
713:
714:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
715:                            beanClass, "getId", "setId");
716:                    prop_id.setDisplayName(resources
717:                            .getString("OrderableList_id_DisplayName"));
718:                    prop_id.setShortDescription(resources
719:                            .getString("OrderableList_id_Description"));
720:                    prop_id.setExpert(false);
721:                    prop_id.setHidden(true);
722:                    prop_id.setPreferred(false);
723:                    attrib = new AttributeDescriptor("id", false, null, true);
724:                    prop_id.setValue(
725:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
726:                            attrib);
727:                    prop_id
728:                            .setValue(
729:                                    Constants.PropertyDescriptor.CATEGORY,
730:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
731:
732:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
733:                            "immediate", beanClass, "isImmediate",
734:                            "setImmediate");
735:                    prop_immediate.setDisplayName(resources
736:                            .getString("OrderableList_immediate_DisplayName"));
737:                    prop_immediate.setShortDescription(resources
738:                            .getString("OrderableList_immediate_Description"));
739:                    prop_immediate.setExpert(false);
740:                    prop_immediate.setHidden(false);
741:                    prop_immediate.setPreferred(false);
742:                    attrib = new AttributeDescriptor("immediate", false, null,
743:                            true);
744:                    prop_immediate.setValue(
745:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
746:                            attrib);
747:                    prop_immediate
748:                            .setValue(
749:                                    Constants.PropertyDescriptor.CATEGORY,
750:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
751:
752:                    PropertyDescriptor prop_localValue = new PropertyDescriptor(
753:                            "localValue", beanClass, "getLocalValue", null);
754:                    prop_localValue.setDisplayName(resources
755:                            .getString("OrderableList_localValue_DisplayName"));
756:                    prop_localValue.setShortDescription(resources
757:                            .getString("OrderableList_localValue_Description"));
758:                    prop_localValue.setExpert(false);
759:                    prop_localValue.setHidden(true);
760:                    prop_localValue.setPreferred(false);
761:                    prop_localValue
762:                            .setValue(
763:                                    Constants.PropertyDescriptor.CATEGORY,
764:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
765:
766:                    PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
767:                            "localValueSet", beanClass, "isLocalValueSet",
768:                            "setLocalValueSet");
769:                    prop_localValueSet
770:                            .setDisplayName(resources
771:                                    .getString("OrderableList_localValueSet_DisplayName"));
772:                    prop_localValueSet
773:                            .setShortDescription(resources
774:                                    .getString("OrderableList_localValueSet_Description"));
775:                    prop_localValueSet.setExpert(false);
776:                    prop_localValueSet.setHidden(true);
777:                    prop_localValueSet.setPreferred(false);
778:                    prop_localValueSet
779:                            .setValue(
780:                                    Constants.PropertyDescriptor.CATEGORY,
781:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
782:
783:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
784:                            "parent", beanClass, "getParent", null);
785:                    prop_parent.setDisplayName(resources
786:                            .getString("OrderableList_parent_DisplayName"));
787:                    prop_parent.setShortDescription(resources
788:                            .getString("OrderableList_parent_Description"));
789:                    prop_parent.setExpert(false);
790:                    prop_parent.setHidden(true);
791:                    prop_parent.setPreferred(false);
792:                    prop_parent
793:                            .setValue(
794:                                    Constants.PropertyDescriptor.CATEGORY,
795:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
796:
797:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
798:                            "rendered", beanClass, "isRendered", "setRendered");
799:                    prop_rendered.setDisplayName(resources
800:                            .getString("OrderableList_rendered_DisplayName"));
801:                    prop_rendered.setShortDescription(resources
802:                            .getString("OrderableList_rendered_Description"));
803:                    prop_rendered.setExpert(false);
804:                    prop_rendered.setHidden(false);
805:                    prop_rendered.setPreferred(false);
806:                    attrib = new AttributeDescriptor("rendered", false, null,
807:                            true);
808:                    prop_rendered.setValue(
809:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
810:                            attrib);
811:                    prop_rendered
812:                            .setValue(
813:                                    Constants.PropertyDescriptor.CATEGORY,
814:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
815:
816:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
817:                            "rendererType", beanClass, "getRendererType",
818:                            "setRendererType");
819:                    prop_rendererType
820:                            .setDisplayName(resources
821:                                    .getString("OrderableList_rendererType_DisplayName"));
822:                    prop_rendererType
823:                            .setShortDescription(resources
824:                                    .getString("OrderableList_rendererType_Description"));
825:                    prop_rendererType.setExpert(false);
826:                    prop_rendererType.setHidden(true);
827:                    prop_rendererType.setPreferred(false);
828:                    prop_rendererType
829:                            .setValue(
830:                                    Constants.PropertyDescriptor.CATEGORY,
831:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
832:
833:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
834:                            "rendersChildren", beanClass, "getRendersChildren",
835:                            null);
836:                    prop_rendersChildren
837:                            .setDisplayName(resources
838:                                    .getString("OrderableList_rendersChildren_DisplayName"));
839:                    prop_rendersChildren
840:                            .setShortDescription(resources
841:                                    .getString("OrderableList_rendersChildren_Description"));
842:                    prop_rendersChildren.setExpert(false);
843:                    prop_rendersChildren.setHidden(true);
844:                    prop_rendersChildren.setPreferred(false);
845:                    prop_rendersChildren
846:                            .setValue(
847:                                    Constants.PropertyDescriptor.CATEGORY,
848:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
849:
850:                    PropertyDescriptor prop_required = new PropertyDescriptor(
851:                            "required", beanClass, "isRequired", "setRequired");
852:                    prop_required.setDisplayName(resources
853:                            .getString("OrderableList_required_DisplayName"));
854:                    prop_required.setShortDescription(resources
855:                            .getString("OrderableList_required_Description"));
856:                    prop_required.setExpert(false);
857:                    prop_required.setHidden(false);
858:                    prop_required.setPreferred(false);
859:                    attrib = new AttributeDescriptor("required", false, null,
860:                            true);
861:                    prop_required.setValue(
862:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
863:                            attrib);
864:                    prop_required
865:                            .setValue(
866:                                    Constants.PropertyDescriptor.CATEGORY,
867:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
868:
869:                    PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
870:                            "submittedValue", beanClass, "getSubmittedValue",
871:                            "setSubmittedValue");
872:                    prop_submittedValue
873:                            .setDisplayName(resources
874:                                    .getString("OrderableList_submittedValue_DisplayName"));
875:                    prop_submittedValue
876:                            .setShortDescription(resources
877:                                    .getString("OrderableList_submittedValue_Description"));
878:                    prop_submittedValue.setExpert(false);
879:                    prop_submittedValue.setHidden(true);
880:                    prop_submittedValue.setPreferred(false);
881:                    prop_submittedValue
882:                            .setValue(
883:                                    Constants.PropertyDescriptor.CATEGORY,
884:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
885:
886:                    PropertyDescriptor prop_validator = new PropertyDescriptor(
887:                            "validator", beanClass, "getValidator",
888:                            "setValidator");
889:                    prop_validator.setDisplayName(resources
890:                            .getString("OrderableList_validator_DisplayName"));
891:                    prop_validator.setShortDescription(resources
892:                            .getString("OrderableList_validator_Description"));
893:                    prop_validator
894:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
895:                    prop_validator.setExpert(false);
896:                    prop_validator.setHidden(false);
897:                    prop_validator.setPreferred(false);
898:                    attrib = new AttributeDescriptor("validator", false, null,
899:                            true);
900:                    prop_validator.setValue(
901:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
902:                            attrib);
903:                    prop_validator
904:                            .setValue(
905:                                    Constants.PropertyDescriptor.CATEGORY,
906:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
907:
908:                    PropertyDescriptor prop_value = new PropertyDescriptor(
909:                            "value", beanClass, "getValue", "setValue");
910:                    prop_value.setDisplayName(resources
911:                            .getString("OrderableList_value_DisplayName"));
912:                    prop_value.setShortDescription(resources
913:                            .getString("OrderableList_value_Description"));
914:                    prop_value.setExpert(false);
915:                    prop_value.setHidden(true);
916:                    prop_value.setPreferred(false);
917:                    prop_value
918:                            .setValue(
919:                                    Constants.PropertyDescriptor.CATEGORY,
920:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
921:
922:                    PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
923:                            "valueChangeListener", beanClass,
924:                            "getValueChangeListener", "setValueChangeListener");
925:                    prop_valueChangeListener
926:                            .setDisplayName(resources
927:                                    .getString("OrderableList_valueChangeListener_DisplayName"));
928:                    prop_valueChangeListener
929:                            .setShortDescription(resources
930:                                    .getString("OrderableList_valueChangeListener_Description"));
931:                    prop_valueChangeListener
932:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
933:                    prop_valueChangeListener.setExpert(false);
934:                    prop_valueChangeListener.setHidden(false);
935:                    prop_valueChangeListener.setPreferred(false);
936:                    attrib = new AttributeDescriptor("valueChangeListener",
937:                            false, null, true);
938:                    prop_valueChangeListener.setValue(
939:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
940:                            attrib);
941:                    prop_valueChangeListener
942:                            .setValue(
943:                                    Constants.PropertyDescriptor.CATEGORY,
944:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
945:
946:                    propDescriptors = new PropertyDescriptor[] {
947:                            prop_attributes, prop_childCount, prop_children,
948:                            prop_converter, prop_disabled, prop_facets,
949:                            prop_family, prop_id, prop_immediate, prop_label,
950:                            prop_labelLevel, prop_labelOnTop, prop_list,
951:                            prop_localValue, prop_localValueSet,
952:                            prop_moveTopBottom, prop_multiple, prop_parent,
953:                            prop_readOnly, prop_rendered, prop_rendererType,
954:                            prop_rendersChildren, prop_required, prop_rows,
955:                            prop_style, prop_styleClass, prop_submittedValue,
956:                            prop_tabIndex, prop_toolTip, prop_validator,
957:                            prop_value, prop_valueChangeListener, prop_visible, };
958:                    return propDescriptors;
959:
960:                } catch (IntrospectionException e) {
961:                    e.printStackTrace();
962:                    return null;
963:                }
964:
965:            }
966:
967:        }
968:        //GEN-END:BeanInfo
w__w___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.