Source Code Cross Referenced for ListboxBeanInfoBase.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) 


0001:        //GEN-BEGIN:BeanInfo
0002:        /*
0003:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0004:         *
0005:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
0006:         *
0007:         * The contents of this file are subject to the terms of either the GNU
0008:         * General Public License Version 2 only ("GPL") or the Common
0009:         * Development and Distribution License("CDDL") (collectively, the
0010:         * "License"). You may not use this file except in compliance with the
0011:         * License. You can obtain a copy of the License at
0012:         * http://www.netbeans.org/cddl-gplv2.html
0013:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
0014:         * specific language governing permissions and limitations under the
0015:         * License.  When distributing the software, include this License Header
0016:         * Notice in each file and include the License file at
0017:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
0018:         * particular file as subject to the "Classpath" exception as provided
0019:         * by Sun in the GPL Version 2 section of the License file that
0020:         * accompanied this code. If applicable, add the following below the
0021:         * License Header, with the fields enclosed by brackets [] replaced by
0022:         * your own identifying information:
0023:         * "Portions Copyrighted [year] [name of copyright owner]"
0024:         *
0025:         * Contributor(s):
0026:         *
0027:         * The Original Software is NetBeans. The Initial Developer of the Original
0028:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
0029:         * Microsystems, Inc. All Rights Reserved.
0030:         *
0031:         * If you wish your version of this file to be governed by only the CDDL
0032:         * or only the GPL Version 2, indicate your decision by adding
0033:         * "[Contributor] elects to include this software in this distribution
0034:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
0035:         * single choice of license, a recipient has the option to distribute
0036:         * your version of this file under either the CDDL, the GPL Version 2 or
0037:         * to extend the choice of license to its licensees as provided above.
0038:         * However, if you add GPL Version 2 code and therefore, elected the GPL
0039:         * Version 2 license, then the option applies only if the new code is
0040:         * made subject to such option by the copyright holder.
0041:         */
0042:        package org.netbeans.modules.visualweb.web.ui.dt.component;
0043:
0044:        import java.awt.Image;
0045:        import java.beans.BeanDescriptor;
0046:        import java.beans.BeanInfo;
0047:        import java.beans.IntrospectionException;
0048:        import java.beans.PropertyDescriptor;
0049:        import java.util.Locale;
0050:        import java.util.ResourceBundle;
0051:
0052:        import com.sun.rave.designtime.CategoryDescriptor;
0053:        import com.sun.rave.designtime.Constants;
0054:        import com.sun.rave.designtime.faces.FacetDescriptor;
0055:        import com.sun.rave.designtime.markup.AttributeDescriptor;
0056:
0057:        import java.beans.SimpleBeanInfo;
0058:
0059:        /**
0060:         * <p>Auto-generated design time metadata class.
0061:         * Do <strong>NOT</strong> modify; all changes
0062:         * <strong>will</strong> be lost!</p>
0063:         */
0064:
0065:        abstract class ListboxBeanInfoBase extends SimpleBeanInfo {
0066:
0067:            protected static ResourceBundle resources = ResourceBundle
0068:                    .getBundle(
0069:                            "org.netbeans.modules.visualweb.web.ui.dt.component.Bundle-JSF",
0070:                            Locale.getDefault(), ListboxBeanInfoBase.class
0071:                                    .getClassLoader());
0072:
0073:            /**
0074:             * <p>Construct a new <code>ListboxBeanInfoBase</code>.</p>
0075:             */
0076:            public ListboxBeanInfoBase() {
0077:
0078:                beanClass = com.sun.rave.web.ui.component.Listbox.class;
0079:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Listbox_C16";
0080:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Listbox_C32";
0081:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Listbox_M16";
0082:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Listbox_M32";
0083:
0084:            }
0085:
0086:            /**
0087:             * <p>The bean class that this BeanInfo represents.
0088:             */
0089:            protected Class beanClass;
0090:
0091:            /**
0092:             * <p>The cached BeanDescriptor.</p>
0093:             */
0094:            protected BeanDescriptor beanDescriptor;
0095:
0096:            /**
0097:             * <p>The index of the default property.</p>
0098:             */
0099:            protected int defaultPropertyIndex = -2;
0100:
0101:            /**
0102:             * <p>The name of the default property.</p>
0103:             */
0104:            protected String defaultPropertyName;
0105:
0106:            /**
0107:             * <p>The 16x16 color icon.</p>
0108:             */
0109:            protected String iconFileName_C16;
0110:
0111:            /**
0112:             * <p>The 32x32 color icon.</p>
0113:             */
0114:            protected String iconFileName_C32;
0115:
0116:            /**
0117:             * <p>The 16x16 monochrome icon.</p>
0118:             */
0119:            protected String iconFileName_M16;
0120:
0121:            /**
0122:             * <p>The 32x32 monochrome icon.</p>
0123:             */
0124:            protected String iconFileName_M32;
0125:
0126:            /**
0127:             * <p>The cached property descriptors.</p>
0128:             */
0129:            protected PropertyDescriptor[] propDescriptors;
0130:
0131:            /**
0132:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
0133:             */
0134:            public BeanDescriptor getBeanDescriptor() {
0135:
0136:                if (beanDescriptor != null) {
0137:                    return beanDescriptor;
0138:                }
0139:
0140:                beanDescriptor = new BeanDescriptor(beanClass);
0141:                beanDescriptor.setDisplayName(resources
0142:                        .getString("Listbox_DisplayName"));
0143:                beanDescriptor.setShortDescription(resources
0144:                        .getString("Listbox_Description"));
0145:                beanDescriptor.setExpert(false);
0146:                beanDescriptor.setHidden(false);
0147:                beanDescriptor.setPreferred(false);
0148:                beanDescriptor.setValue(
0149:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
0150:                        getFacetDescriptors());
0151:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
0152:                        "projrave_ui_elements_palette_bh_listbox");
0153:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0154:                        "listbox");
0155:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0156:                        Boolean.TRUE);
0157:                beanDescriptor
0158:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
0159:                                "projrave_ui_elements_palette_bh_propsheets_bh_listbox_props");
0160:                beanDescriptor.setValue(
0161:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0162:                        getCategoryDescriptors());
0163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0164:                        "listbox");
0165:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0166:                        "ui");
0167:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0168:                        "http://www.sun.com/web/ui");
0169:
0170:                return beanDescriptor;
0171:
0172:            }
0173:
0174:            /**
0175:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0176:             */
0177:            private CategoryDescriptor[] getCategoryDescriptors() {
0178:
0179:                return com.sun.rave.designtime.base.CategoryDescriptors
0180:                        .getDefaultCategoryDescriptors();
0181:
0182:            }
0183:
0184:            /**
0185:             * <p>Return the index of the default property, or
0186:             * -1 if there is no default property.</p>
0187:             */
0188:            public int getDefaultPropertyIndex() {
0189:
0190:                if (defaultPropertyIndex > -2) {
0191:                    return defaultPropertyIndex;
0192:                } else {
0193:                    if (defaultPropertyName == null) {
0194:                        defaultPropertyIndex = -1;
0195:                    } else {
0196:                        PropertyDescriptor pd[] = getPropertyDescriptors();
0197:                        for (int i = 0; i < pd.length; i++) {
0198:                            if (defaultPropertyName.equals(pd[i].getName())) {
0199:                                defaultPropertyIndex = i;
0200:                                break;
0201:                            }
0202:                        }
0203:                    }
0204:                }
0205:                return defaultPropertyIndex;
0206:            }
0207:
0208:            /**
0209:             * <p>The cached facet descriptors.</p>
0210:             */
0211:            protected FacetDescriptor[] facetDescriptors;
0212:
0213:            /**
0214:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0215:             */
0216:            public FacetDescriptor[] getFacetDescriptors() {
0217:
0218:                if (facetDescriptors != null) {
0219:                    return facetDescriptors;
0220:                }
0221:                facetDescriptors = new FacetDescriptor[] {};
0222:                return facetDescriptors;
0223:
0224:            }
0225:
0226:            /**
0227:             * <p>Return the specified image (if any)
0228:             * for this component class.</p>
0229:             */
0230:            public Image getIcon(int kind) {
0231:
0232:                String name;
0233:                switch (kind) {
0234:                case ICON_COLOR_16x16:
0235:                    name = iconFileName_C16;
0236:                    break;
0237:                case ICON_COLOR_32x32:
0238:                    name = iconFileName_C32;
0239:                    break;
0240:                case ICON_MONO_16x16:
0241:                    name = iconFileName_M16;
0242:                    break;
0243:                case ICON_MONO_32x32:
0244:                    name = iconFileName_M32;
0245:                    break;
0246:                default:
0247:                    name = null;
0248:                    break;
0249:                }
0250:                if (name == null) {
0251:                    return null;
0252:                }
0253:
0254:                Image image = loadImage(name + ".png");
0255:                if (image == null) {
0256:                    image = loadImage(name + ".gif");
0257:                }
0258:                return image;
0259:
0260:            }
0261:
0262:            /**
0263:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0264:             */
0265:            private java.lang.Class loadClass(java.lang.String name) {
0266:
0267:                try {
0268:                    return Class.forName(name);
0269:                } catch (ClassNotFoundException e) {
0270:                    throw new RuntimeException(e);
0271:                }
0272:
0273:            }
0274:
0275:            /**
0276:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0277:             */
0278:            public PropertyDescriptor[] getPropertyDescriptors() {
0279:
0280:                if (propDescriptors != null) {
0281:                    return propDescriptors;
0282:                }
0283:                AttributeDescriptor attrib = null;
0284:
0285:                try {
0286:
0287:                    PropertyDescriptor prop_monospace = new PropertyDescriptor(
0288:                            "monospace", beanClass, "isMonospace",
0289:                            "setMonospace");
0290:                    prop_monospace.setDisplayName(resources
0291:                            .getString("Listbox_monospace_DisplayName"));
0292:                    prop_monospace.setShortDescription(resources
0293:                            .getString("Listbox_monospace_Description"));
0294:                    prop_monospace.setExpert(false);
0295:                    prop_monospace.setHidden(false);
0296:                    prop_monospace.setPreferred(false);
0297:                    attrib = new AttributeDescriptor("monospace", false, null,
0298:                            true);
0299:                    prop_monospace.setValue(
0300:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0301:                            attrib);
0302:                    prop_monospace
0303:                            .setValue(
0304:                                    Constants.PropertyDescriptor.CATEGORY,
0305:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0306:
0307:                    PropertyDescriptor prop_multiple = new PropertyDescriptor(
0308:                            "multiple", beanClass, "isMultiple", "setMultiple");
0309:                    prop_multiple.setDisplayName(resources
0310:                            .getString("Listbox_multiple_DisplayName"));
0311:                    prop_multiple.setShortDescription(resources
0312:                            .getString("Listbox_multiple_Description"));
0313:                    prop_multiple.setExpert(false);
0314:                    prop_multiple.setHidden(false);
0315:                    prop_multiple.setPreferred(false);
0316:                    attrib = new AttributeDescriptor("multiple", false, null,
0317:                            true);
0318:                    prop_multiple.setValue(
0319:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0320:                            attrib);
0321:                    prop_multiple
0322:                            .setValue(
0323:                                    Constants.PropertyDescriptor.CATEGORY,
0324:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0325:
0326:                    PropertyDescriptor prop_labelOnTop = new PropertyDescriptor(
0327:                            "labelOnTop", beanClass, "isLabelOnTop",
0328:                            "setLabelOnTop");
0329:                    prop_labelOnTop.setDisplayName(resources
0330:                            .getString("Listbox_labelOnTop_DisplayName"));
0331:                    prop_labelOnTop.setShortDescription(resources
0332:                            .getString("Listbox_labelOnTop_Description"));
0333:                    prop_labelOnTop.setExpert(false);
0334:                    prop_labelOnTop.setHidden(false);
0335:                    prop_labelOnTop.setPreferred(false);
0336:                    attrib = new AttributeDescriptor("labelOnTop", false, null,
0337:                            true);
0338:                    prop_labelOnTop.setValue(
0339:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0340:                            attrib);
0341:                    prop_labelOnTop
0342:                            .setValue(
0343:                                    Constants.PropertyDescriptor.CATEGORY,
0344:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0345:
0346:                    PropertyDescriptor prop_rows = new PropertyDescriptor(
0347:                            "rows", beanClass, "getRows", "setRows");
0348:                    prop_rows.setDisplayName(resources
0349:                            .getString("Listbox_rows_DisplayName"));
0350:                    prop_rows.setShortDescription(resources
0351:                            .getString("Listbox_rows_Description"));
0352:                    prop_rows
0353:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0354:                    prop_rows.setExpert(false);
0355:                    prop_rows.setHidden(false);
0356:                    prop_rows.setPreferred(false);
0357:                    attrib = new AttributeDescriptor("rows", false, "12", true);
0358:                    prop_rows.setValue(
0359:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0360:                            attrib);
0361:                    prop_rows
0362:                            .setValue(
0363:                                    Constants.PropertyDescriptor.CATEGORY,
0364:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0365:                    prop_rows.setValue(
0366:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0367:
0368:                    PropertyDescriptor prop_separators = new PropertyDescriptor(
0369:                            "separators", beanClass, "isSeparators",
0370:                            "setSeparators");
0371:                    prop_separators.setDisplayName(resources
0372:                            .getString("Listbox_separators_DisplayName"));
0373:                    prop_separators.setShortDescription(resources
0374:                            .getString("Listbox_separators_Description"));
0375:                    prop_separators.setExpert(false);
0376:                    prop_separators.setHidden(false);
0377:                    prop_separators.setPreferred(false);
0378:                    attrib = new AttributeDescriptor("separators", false,
0379:                            "true", true);
0380:                    prop_separators.setValue(
0381:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0382:                            attrib);
0383:                    prop_separators
0384:                            .setValue(
0385:                                    Constants.PropertyDescriptor.CATEGORY,
0386:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0387:
0388:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
0389:                            "visible", beanClass, "isVisible", "setVisible");
0390:                    prop_visible.setDisplayName(resources
0391:                            .getString("Listbox_visible_DisplayName"));
0392:                    prop_visible.setShortDescription(resources
0393:                            .getString("Listbox_visible_Description"));
0394:                    prop_visible.setExpert(false);
0395:                    prop_visible.setHidden(false);
0396:                    prop_visible.setPreferred(false);
0397:                    attrib = new AttributeDescriptor("visible", false, "true",
0398:                            true);
0399:                    prop_visible.setValue(
0400:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0401:                            attrib);
0402:                    prop_visible
0403:                            .setValue(
0404:                                    Constants.PropertyDescriptor.CATEGORY,
0405:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0406:
0407:                    PropertyDescriptor prop_disabled = new PropertyDescriptor(
0408:                            "disabled", beanClass, "isDisabled", "setDisabled");
0409:                    prop_disabled.setDisplayName(resources
0410:                            .getString("Listbox_disabled_DisplayName"));
0411:                    prop_disabled.setShortDescription(resources
0412:                            .getString("Listbox_disabled_Description"));
0413:                    prop_disabled.setExpert(false);
0414:                    prop_disabled.setHidden(false);
0415:                    prop_disabled.setPreferred(false);
0416:                    attrib = new AttributeDescriptor("disabled", false, null,
0417:                            true);
0418:                    prop_disabled.setValue(
0419:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0420:                            attrib);
0421:                    prop_disabled
0422:                            .setValue(
0423:                                    Constants.PropertyDescriptor.CATEGORY,
0424:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0425:
0426:                    PropertyDescriptor prop_items = new PropertyDescriptor(
0427:                            "items", beanClass, "getItems", "setItems");
0428:                    prop_items.setDisplayName(resources
0429:                            .getString("Listbox_items_DisplayName"));
0430:                    prop_items.setShortDescription(resources
0431:                            .getString("Listbox_items_Description"));
0432:                    prop_items
0433:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0434:                    prop_items.setExpert(false);
0435:                    prop_items.setHidden(false);
0436:                    prop_items.setPreferred(false);
0437:                    attrib = new AttributeDescriptor("items", false, null, true);
0438:                    prop_items.setValue(
0439:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0440:                            attrib);
0441:                    prop_items
0442:                            .setValue(
0443:                                    Constants.PropertyDescriptor.CATEGORY,
0444:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0445:                    prop_items
0446:                            .setValue(
0447:                                    "bindingPanelClassNames",
0448:                                    new Class[] {
0449:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindOptionsToDataProviderPanel.class,
0450:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0451:
0452:                    PropertyDescriptor prop_label = new PropertyDescriptor(
0453:                            "label", beanClass, "getLabel", "setLabel");
0454:                    prop_label.setDisplayName(resources
0455:                            .getString("Listbox_label_DisplayName"));
0456:                    prop_label.setShortDescription(resources
0457:                            .getString("Listbox_label_Description"));
0458:                    prop_label
0459:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0460:                    prop_label.setExpert(false);
0461:                    prop_label.setHidden(false);
0462:                    prop_label.setPreferred(false);
0463:                    attrib = new AttributeDescriptor("label", false, null, true);
0464:                    prop_label.setValue(
0465:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0466:                            attrib);
0467:                    prop_label
0468:                            .setValue(
0469:                                    Constants.PropertyDescriptor.CATEGORY,
0470:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0471:
0472:                    PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0473:                            "labelLevel", beanClass, "getLabelLevel",
0474:                            "setLabelLevel");
0475:                    prop_labelLevel.setDisplayName(resources
0476:                            .getString("Listbox_labelLevel_DisplayName"));
0477:                    prop_labelLevel.setShortDescription(resources
0478:                            .getString("Listbox_labelLevel_Description"));
0479:                    prop_labelLevel
0480:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0481:                    prop_labelLevel.setExpert(false);
0482:                    prop_labelLevel.setHidden(false);
0483:                    prop_labelLevel.setPreferred(false);
0484:                    attrib = new AttributeDescriptor("labelLevel", false, "2",
0485:                            true);
0486:                    prop_labelLevel.setValue(
0487:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0488:                            attrib);
0489:                    prop_labelLevel
0490:                            .setValue(
0491:                                    Constants.PropertyDescriptor.CATEGORY,
0492:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0493:                    prop_labelLevel
0494:                            .setValue(
0495:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0496:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0497:
0498:                    PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0499:                            "onBlur", beanClass, "getOnBlur", "setOnBlur");
0500:                    prop_onBlur.setDisplayName(resources
0501:                            .getString("Listbox_onBlur_DisplayName"));
0502:                    prop_onBlur.setShortDescription(resources
0503:                            .getString("Listbox_onBlur_Description"));
0504:                    prop_onBlur
0505:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0506:                    prop_onBlur.setExpert(false);
0507:                    prop_onBlur.setHidden(false);
0508:                    prop_onBlur.setPreferred(false);
0509:                    attrib = new AttributeDescriptor("onBlur", false, null,
0510:                            true);
0511:                    prop_onBlur.setValue(
0512:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0513:                            attrib);
0514:                    prop_onBlur
0515:                            .setValue(
0516:                                    Constants.PropertyDescriptor.CATEGORY,
0517:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0518:
0519:                    PropertyDescriptor prop_onChange = new PropertyDescriptor(
0520:                            "onChange", beanClass, "getOnChange", "setOnChange");
0521:                    prop_onChange.setDisplayName(resources
0522:                            .getString("Listbox_onChange_DisplayName"));
0523:                    prop_onChange.setShortDescription(resources
0524:                            .getString("Listbox_onChange_Description"));
0525:                    prop_onChange
0526:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0527:                    prop_onChange.setExpert(false);
0528:                    prop_onChange.setHidden(false);
0529:                    prop_onChange.setPreferred(false);
0530:                    attrib = new AttributeDescriptor("onChange", false, null,
0531:                            true);
0532:                    prop_onChange.setValue(
0533:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0534:                            attrib);
0535:                    prop_onChange
0536:                            .setValue(
0537:                                    Constants.PropertyDescriptor.CATEGORY,
0538:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0539:
0540:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
0541:                            "onClick", beanClass, "getOnClick", "setOnClick");
0542:                    prop_onClick.setDisplayName(resources
0543:                            .getString("Listbox_onClick_DisplayName"));
0544:                    prop_onClick.setShortDescription(resources
0545:                            .getString("Listbox_onClick_Description"));
0546:                    prop_onClick
0547:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0548:                    prop_onClick.setExpert(false);
0549:                    prop_onClick.setHidden(false);
0550:                    prop_onClick.setPreferred(false);
0551:                    attrib = new AttributeDescriptor("onClick", false, null,
0552:                            true);
0553:                    prop_onClick.setValue(
0554:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0555:                            attrib);
0556:                    prop_onClick
0557:                            .setValue(
0558:                                    Constants.PropertyDescriptor.CATEGORY,
0559:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0560:
0561:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0562:                            "onDblClick", beanClass, "getOnDblClick",
0563:                            "setOnDblClick");
0564:                    prop_onDblClick.setDisplayName(resources
0565:                            .getString("Listbox_onDblClick_DisplayName"));
0566:                    prop_onDblClick.setShortDescription(resources
0567:                            .getString("Listbox_onDblClick_Description"));
0568:                    prop_onDblClick
0569:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0570:                    prop_onDblClick.setExpert(false);
0571:                    prop_onDblClick.setHidden(false);
0572:                    prop_onDblClick.setPreferred(false);
0573:                    attrib = new AttributeDescriptor("onDblClick", false, null,
0574:                            true);
0575:                    prop_onDblClick.setValue(
0576:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0577:                            attrib);
0578:                    prop_onDblClick
0579:                            .setValue(
0580:                                    Constants.PropertyDescriptor.CATEGORY,
0581:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0582:
0583:                    PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0584:                            "onFocus", beanClass, "getOnFocus", "setOnFocus");
0585:                    prop_onFocus.setDisplayName(resources
0586:                            .getString("Listbox_onFocus_DisplayName"));
0587:                    prop_onFocus.setShortDescription(resources
0588:                            .getString("Listbox_onFocus_Description"));
0589:                    prop_onFocus
0590:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0591:                    prop_onFocus.setExpert(false);
0592:                    prop_onFocus.setHidden(false);
0593:                    prop_onFocus.setPreferred(false);
0594:                    attrib = new AttributeDescriptor("onFocus", false, null,
0595:                            true);
0596:                    prop_onFocus.setValue(
0597:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0598:                            attrib);
0599:                    prop_onFocus
0600:                            .setValue(
0601:                                    Constants.PropertyDescriptor.CATEGORY,
0602:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0603:
0604:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0605:                            "onKeyDown", beanClass, "getOnKeyDown",
0606:                            "setOnKeyDown");
0607:                    prop_onKeyDown.setDisplayName(resources
0608:                            .getString("Listbox_onKeyDown_DisplayName"));
0609:                    prop_onKeyDown.setShortDescription(resources
0610:                            .getString("Listbox_onKeyDown_Description"));
0611:                    prop_onKeyDown
0612:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0613:                    prop_onKeyDown.setExpert(false);
0614:                    prop_onKeyDown.setHidden(false);
0615:                    prop_onKeyDown.setPreferred(false);
0616:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
0617:                            true);
0618:                    prop_onKeyDown.setValue(
0619:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0620:                            attrib);
0621:                    prop_onKeyDown
0622:                            .setValue(
0623:                                    Constants.PropertyDescriptor.CATEGORY,
0624:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0625:
0626:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0627:                            "onKeyPress", beanClass, "getOnKeyPress",
0628:                            "setOnKeyPress");
0629:                    prop_onKeyPress.setDisplayName(resources
0630:                            .getString("Listbox_onKeyPress_DisplayName"));
0631:                    prop_onKeyPress.setShortDescription(resources
0632:                            .getString("Listbox_onKeyPress_Description"));
0633:                    prop_onKeyPress
0634:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0635:                    prop_onKeyPress.setExpert(false);
0636:                    prop_onKeyPress.setHidden(false);
0637:                    prop_onKeyPress.setPreferred(false);
0638:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
0639:                            true);
0640:                    prop_onKeyPress.setValue(
0641:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0642:                            attrib);
0643:                    prop_onKeyPress
0644:                            .setValue(
0645:                                    Constants.PropertyDescriptor.CATEGORY,
0646:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0647:
0648:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0649:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0650:                    prop_onKeyUp.setDisplayName(resources
0651:                            .getString("Listbox_onKeyUp_DisplayName"));
0652:                    prop_onKeyUp.setShortDescription(resources
0653:                            .getString("Listbox_onKeyUp_Description"));
0654:                    prop_onKeyUp
0655:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0656:                    prop_onKeyUp.setExpert(false);
0657:                    prop_onKeyUp.setHidden(false);
0658:                    prop_onKeyUp.setPreferred(false);
0659:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
0660:                            true);
0661:                    prop_onKeyUp.setValue(
0662:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0663:                            attrib);
0664:                    prop_onKeyUp
0665:                            .setValue(
0666:                                    Constants.PropertyDescriptor.CATEGORY,
0667:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0668:
0669:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0670:                            "onMouseDown", beanClass, "getOnMouseDown",
0671:                            "setOnMouseDown");
0672:                    prop_onMouseDown.setDisplayName(resources
0673:                            .getString("Listbox_onMouseDown_DisplayName"));
0674:                    prop_onMouseDown.setShortDescription(resources
0675:                            .getString("Listbox_onMouseDown_Description"));
0676:                    prop_onMouseDown
0677:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0678:                    prop_onMouseDown.setExpert(false);
0679:                    prop_onMouseDown.setHidden(false);
0680:                    prop_onMouseDown.setPreferred(false);
0681:                    attrib = new AttributeDescriptor("onMouseDown", false,
0682:                            null, true);
0683:                    prop_onMouseDown.setValue(
0684:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0685:                            attrib);
0686:                    prop_onMouseDown
0687:                            .setValue(
0688:                                    Constants.PropertyDescriptor.CATEGORY,
0689:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0690:
0691:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0692:                            "onMouseMove", beanClass, "getOnMouseMove",
0693:                            "setOnMouseMove");
0694:                    prop_onMouseMove.setDisplayName(resources
0695:                            .getString("Listbox_onMouseMove_DisplayName"));
0696:                    prop_onMouseMove.setShortDescription(resources
0697:                            .getString("Listbox_onMouseMove_Description"));
0698:                    prop_onMouseMove
0699:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0700:                    prop_onMouseMove.setExpert(false);
0701:                    prop_onMouseMove.setHidden(false);
0702:                    prop_onMouseMove.setPreferred(false);
0703:                    attrib = new AttributeDescriptor("onMouseMove", false,
0704:                            null, true);
0705:                    prop_onMouseMove.setValue(
0706:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0707:                            attrib);
0708:                    prop_onMouseMove
0709:                            .setValue(
0710:                                    Constants.PropertyDescriptor.CATEGORY,
0711:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0712:
0713:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0714:                            "onMouseOut", beanClass, "getOnMouseOut",
0715:                            "setOnMouseOut");
0716:                    prop_onMouseOut.setDisplayName(resources
0717:                            .getString("Listbox_onMouseOut_DisplayName"));
0718:                    prop_onMouseOut.setShortDescription(resources
0719:                            .getString("Listbox_onMouseOut_Description"));
0720:                    prop_onMouseOut
0721:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0722:                    prop_onMouseOut.setExpert(false);
0723:                    prop_onMouseOut.setHidden(false);
0724:                    prop_onMouseOut.setPreferred(false);
0725:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
0726:                            true);
0727:                    prop_onMouseOut.setValue(
0728:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0729:                            attrib);
0730:                    prop_onMouseOut
0731:                            .setValue(
0732:                                    Constants.PropertyDescriptor.CATEGORY,
0733:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0734:
0735:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0736:                            "onMouseOver", beanClass, "getOnMouseOver",
0737:                            "setOnMouseOver");
0738:                    prop_onMouseOver.setDisplayName(resources
0739:                            .getString("Listbox_onMouseOver_DisplayName"));
0740:                    prop_onMouseOver.setShortDescription(resources
0741:                            .getString("Listbox_onMouseOver_Description"));
0742:                    prop_onMouseOver
0743:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0744:                    prop_onMouseOver.setExpert(false);
0745:                    prop_onMouseOver.setHidden(false);
0746:                    prop_onMouseOver.setPreferred(false);
0747:                    attrib = new AttributeDescriptor("onMouseOver", false,
0748:                            null, true);
0749:                    prop_onMouseOver.setValue(
0750:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0751:                            attrib);
0752:                    prop_onMouseOver
0753:                            .setValue(
0754:                                    Constants.PropertyDescriptor.CATEGORY,
0755:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0756:
0757:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0758:                            "onMouseUp", beanClass, "getOnMouseUp",
0759:                            "setOnMouseUp");
0760:                    prop_onMouseUp.setDisplayName(resources
0761:                            .getString("Listbox_onMouseUp_DisplayName"));
0762:                    prop_onMouseUp.setShortDescription(resources
0763:                            .getString("Listbox_onMouseUp_Description"));
0764:                    prop_onMouseUp
0765:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0766:                    prop_onMouseUp.setExpert(false);
0767:                    prop_onMouseUp.setHidden(false);
0768:                    prop_onMouseUp.setPreferred(false);
0769:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
0770:                            true);
0771:                    prop_onMouseUp.setValue(
0772:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0773:                            attrib);
0774:                    prop_onMouseUp
0775:                            .setValue(
0776:                                    Constants.PropertyDescriptor.CATEGORY,
0777:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0778:
0779:                    PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0780:                            "onSelect", beanClass, "getOnSelect", "setOnSelect");
0781:                    prop_onSelect.setDisplayName(resources
0782:                            .getString("Listbox_onSelect_DisplayName"));
0783:                    prop_onSelect.setShortDescription(resources
0784:                            .getString("Listbox_onSelect_Description"));
0785:                    prop_onSelect
0786:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0787:                    prop_onSelect.setExpert(false);
0788:                    prop_onSelect.setHidden(true);
0789:                    prop_onSelect.setPreferred(false);
0790:                    prop_onSelect
0791:                            .setValue(
0792:                                    Constants.PropertyDescriptor.CATEGORY,
0793:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0794:
0795:                    PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0796:                            "readOnly", beanClass, "isReadOnly", "setReadOnly");
0797:                    prop_readOnly.setDisplayName(resources
0798:                            .getString("Listbox_readOnly_DisplayName"));
0799:                    prop_readOnly.setShortDescription(resources
0800:                            .getString("Listbox_readOnly_Description"));
0801:                    prop_readOnly.setExpert(false);
0802:                    prop_readOnly.setHidden(false);
0803:                    prop_readOnly.setPreferred(false);
0804:                    attrib = new AttributeDescriptor("readOnly", false, null,
0805:                            true);
0806:                    prop_readOnly.setValue(
0807:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0808:                            attrib);
0809:                    prop_readOnly
0810:                            .setValue(
0811:                                    Constants.PropertyDescriptor.CATEGORY,
0812:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0813:
0814:                    PropertyDescriptor prop_selected = new PropertyDescriptor(
0815:                            "selected", beanClass, "getSelected", "setSelected");
0816:                    prop_selected.setDisplayName(resources
0817:                            .getString("Listbox_selected_DisplayName"));
0818:                    prop_selected.setShortDescription(resources
0819:                            .getString("Listbox_selected_Description"));
0820:                    prop_selected
0821:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0822:                    prop_selected.setExpert(false);
0823:                    prop_selected.setHidden(false);
0824:                    prop_selected.setPreferred(false);
0825:                    attrib = new AttributeDescriptor("selected", false, null,
0826:                            true);
0827:                    prop_selected.setValue(
0828:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0829:                            attrib);
0830:                    prop_selected
0831:                            .setValue(
0832:                                    Constants.PropertyDescriptor.CATEGORY,
0833:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0834:                    prop_selected
0835:                            .setValue(
0836:                                    "bindingPanelClassNames",
0837:                                    new Class[] {
0838:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToDataProviderPanel.class,
0839:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0840:
0841:                    PropertyDescriptor prop_style = new PropertyDescriptor(
0842:                            "style", beanClass, "getStyle", "setStyle");
0843:                    prop_style.setDisplayName(resources
0844:                            .getString("Listbox_style_DisplayName"));
0845:                    prop_style.setShortDescription(resources
0846:                            .getString("Listbox_style_Description"));
0847:                    prop_style
0848:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0849:                    prop_style.setExpert(false);
0850:                    prop_style.setHidden(false);
0851:                    prop_style.setPreferred(false);
0852:                    attrib = new AttributeDescriptor("style", false, null, true);
0853:                    prop_style.setValue(
0854:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0855:                            attrib);
0856:                    prop_style
0857:                            .setValue(
0858:                                    Constants.PropertyDescriptor.CATEGORY,
0859:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0860:
0861:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0862:                            "styleClass", beanClass, "getStyleClass",
0863:                            "setStyleClass");
0864:                    prop_styleClass.setDisplayName(resources
0865:                            .getString("Listbox_styleClass_DisplayName"));
0866:                    prop_styleClass.setShortDescription(resources
0867:                            .getString("Listbox_styleClass_Description"));
0868:                    prop_styleClass
0869:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0870:                    prop_styleClass.setExpert(false);
0871:                    prop_styleClass.setHidden(false);
0872:                    prop_styleClass.setPreferred(false);
0873:                    attrib = new AttributeDescriptor("styleClass", false, null,
0874:                            true);
0875:                    prop_styleClass.setValue(
0876:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0877:                            attrib);
0878:                    prop_styleClass
0879:                            .setValue(
0880:                                    Constants.PropertyDescriptor.CATEGORY,
0881:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0882:
0883:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0884:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0885:                    prop_tabIndex.setDisplayName(resources
0886:                            .getString("Listbox_tabIndex_DisplayName"));
0887:                    prop_tabIndex.setShortDescription(resources
0888:                            .getString("Listbox_tabIndex_Description"));
0889:                    prop_tabIndex
0890:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0891:                    prop_tabIndex.setExpert(false);
0892:                    prop_tabIndex.setHidden(false);
0893:                    prop_tabIndex.setPreferred(false);
0894:                    attrib = new AttributeDescriptor("tabIndex", false, null,
0895:                            true);
0896:                    prop_tabIndex.setValue(
0897:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0898:                            attrib);
0899:                    prop_tabIndex
0900:                            .setValue(
0901:                                    Constants.PropertyDescriptor.CATEGORY,
0902:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0903:                    prop_tabIndex.setValue(
0904:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0905:
0906:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0907:                            "toolTip", beanClass, "getToolTip", "setToolTip");
0908:                    prop_toolTip.setDisplayName(resources
0909:                            .getString("Listbox_toolTip_DisplayName"));
0910:                    prop_toolTip.setShortDescription(resources
0911:                            .getString("Listbox_toolTip_Description"));
0912:                    prop_toolTip
0913:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0914:                    prop_toolTip.setExpert(false);
0915:                    prop_toolTip.setHidden(false);
0916:                    prop_toolTip.setPreferred(false);
0917:                    attrib = new AttributeDescriptor("toolTip", false, null,
0918:                            true);
0919:                    prop_toolTip.setValue(
0920:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0921:                            attrib);
0922:                    prop_toolTip
0923:                            .setValue(
0924:                                    Constants.PropertyDescriptor.CATEGORY,
0925:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0926:
0927:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
0928:                            "attributes", beanClass, "getAttributes", null);
0929:                    prop_attributes.setDisplayName(resources
0930:                            .getString("Listbox_attributes_DisplayName"));
0931:                    prop_attributes.setShortDescription(resources
0932:                            .getString("Listbox_attributes_Description"));
0933:                    prop_attributes.setExpert(false);
0934:                    prop_attributes.setHidden(true);
0935:                    prop_attributes.setPreferred(false);
0936:                    prop_attributes
0937:                            .setValue(
0938:                                    Constants.PropertyDescriptor.CATEGORY,
0939:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0940:
0941:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
0942:                            "childCount", beanClass, "getChildCount", null);
0943:                    prop_childCount.setDisplayName(resources
0944:                            .getString("Listbox_childCount_DisplayName"));
0945:                    prop_childCount.setShortDescription(resources
0946:                            .getString("Listbox_childCount_Description"));
0947:                    prop_childCount.setExpert(false);
0948:                    prop_childCount.setHidden(true);
0949:                    prop_childCount.setPreferred(false);
0950:                    prop_childCount
0951:                            .setValue(
0952:                                    Constants.PropertyDescriptor.CATEGORY,
0953:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0954:
0955:                    PropertyDescriptor prop_children = new PropertyDescriptor(
0956:                            "children", beanClass, "getChildren", null);
0957:                    prop_children.setDisplayName(resources
0958:                            .getString("Listbox_children_DisplayName"));
0959:                    prop_children.setShortDescription(resources
0960:                            .getString("Listbox_children_Description"));
0961:                    prop_children.setExpert(false);
0962:                    prop_children.setHidden(true);
0963:                    prop_children.setPreferred(false);
0964:                    prop_children
0965:                            .setValue(
0966:                                    Constants.PropertyDescriptor.CATEGORY,
0967:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0968:
0969:                    PropertyDescriptor prop_converter = new PropertyDescriptor(
0970:                            "converter", beanClass, "getConverter",
0971:                            "setConverter");
0972:                    prop_converter.setDisplayName(resources
0973:                            .getString("Listbox_converter_DisplayName"));
0974:                    prop_converter.setShortDescription(resources
0975:                            .getString("Listbox_converter_Description"));
0976:                    prop_converter
0977:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
0978:                    prop_converter.setExpert(false);
0979:                    prop_converter.setHidden(false);
0980:                    prop_converter.setPreferred(false);
0981:                    attrib = new AttributeDescriptor("converter", false, null,
0982:                            true);
0983:                    prop_converter.setValue(
0984:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0985:                            attrib);
0986:                    prop_converter
0987:                            .setValue(
0988:                                    Constants.PropertyDescriptor.CATEGORY,
0989:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0990:
0991:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
0992:                            "facets", beanClass, "getFacets", null);
0993:                    prop_facets.setDisplayName(resources
0994:                            .getString("Listbox_facets_DisplayName"));
0995:                    prop_facets.setShortDescription(resources
0996:                            .getString("Listbox_facets_Description"));
0997:                    prop_facets.setExpert(false);
0998:                    prop_facets.setHidden(true);
0999:                    prop_facets.setPreferred(false);
1000:                    prop_facets
1001:                            .setValue(
1002:                                    Constants.PropertyDescriptor.CATEGORY,
1003:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1004:
1005:                    PropertyDescriptor prop_family = new PropertyDescriptor(
1006:                            "family", beanClass, "getFamily", null);
1007:                    prop_family.setDisplayName(resources
1008:                            .getString("Listbox_family_DisplayName"));
1009:                    prop_family.setShortDescription(resources
1010:                            .getString("Listbox_family_Description"));
1011:                    prop_family.setExpert(false);
1012:                    prop_family.setHidden(true);
1013:                    prop_family.setPreferred(false);
1014:                    prop_family
1015:                            .setValue(
1016:                                    Constants.PropertyDescriptor.CATEGORY,
1017:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1018:
1019:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
1020:                            beanClass, "getId", "setId");
1021:                    prop_id.setDisplayName(resources
1022:                            .getString("Listbox_id_DisplayName"));
1023:                    prop_id.setShortDescription(resources
1024:                            .getString("Listbox_id_Description"));
1025:                    prop_id.setExpert(false);
1026:                    prop_id.setHidden(true);
1027:                    prop_id.setPreferred(false);
1028:                    attrib = new AttributeDescriptor("id", false, null, true);
1029:                    prop_id.setValue(
1030:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1031:                            attrib);
1032:                    prop_id
1033:                            .setValue(
1034:                                    Constants.PropertyDescriptor.CATEGORY,
1035:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1036:
1037:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
1038:                            "immediate", beanClass, "isImmediate",
1039:                            "setImmediate");
1040:                    prop_immediate.setDisplayName(resources
1041:                            .getString("Listbox_immediate_DisplayName"));
1042:                    prop_immediate.setShortDescription(resources
1043:                            .getString("Listbox_immediate_Description"));
1044:                    prop_immediate.setExpert(false);
1045:                    prop_immediate.setHidden(false);
1046:                    prop_immediate.setPreferred(false);
1047:                    attrib = new AttributeDescriptor("immediate", false, null,
1048:                            true);
1049:                    prop_immediate.setValue(
1050:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1051:                            attrib);
1052:                    prop_immediate
1053:                            .setValue(
1054:                                    Constants.PropertyDescriptor.CATEGORY,
1055:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1056:
1057:                    PropertyDescriptor prop_localValue = new PropertyDescriptor(
1058:                            "localValue", beanClass, "getLocalValue", null);
1059:                    prop_localValue.setDisplayName(resources
1060:                            .getString("Listbox_localValue_DisplayName"));
1061:                    prop_localValue.setShortDescription(resources
1062:                            .getString("Listbox_localValue_Description"));
1063:                    prop_localValue.setExpert(false);
1064:                    prop_localValue.setHidden(true);
1065:                    prop_localValue.setPreferred(false);
1066:                    prop_localValue
1067:                            .setValue(
1068:                                    Constants.PropertyDescriptor.CATEGORY,
1069:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1070:
1071:                    PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1072:                            "localValueSet", beanClass, "isLocalValueSet",
1073:                            "setLocalValueSet");
1074:                    prop_localValueSet.setDisplayName(resources
1075:                            .getString("Listbox_localValueSet_DisplayName"));
1076:                    prop_localValueSet.setShortDescription(resources
1077:                            .getString("Listbox_localValueSet_Description"));
1078:                    prop_localValueSet.setExpert(false);
1079:                    prop_localValueSet.setHidden(true);
1080:                    prop_localValueSet.setPreferred(false);
1081:                    prop_localValueSet
1082:                            .setValue(
1083:                                    Constants.PropertyDescriptor.CATEGORY,
1084:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1085:
1086:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
1087:                            "parent", beanClass, "getParent", null);
1088:                    prop_parent.setDisplayName(resources
1089:                            .getString("Listbox_parent_DisplayName"));
1090:                    prop_parent.setShortDescription(resources
1091:                            .getString("Listbox_parent_Description"));
1092:                    prop_parent.setExpert(false);
1093:                    prop_parent.setHidden(true);
1094:                    prop_parent.setPreferred(false);
1095:                    prop_parent
1096:                            .setValue(
1097:                                    Constants.PropertyDescriptor.CATEGORY,
1098:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1099:
1100:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
1101:                            "rendered", beanClass, "isRendered", "setRendered");
1102:                    prop_rendered.setDisplayName(resources
1103:                            .getString("Listbox_rendered_DisplayName"));
1104:                    prop_rendered.setShortDescription(resources
1105:                            .getString("Listbox_rendered_Description"));
1106:                    prop_rendered.setExpert(false);
1107:                    prop_rendered.setHidden(false);
1108:                    prop_rendered.setPreferred(false);
1109:                    attrib = new AttributeDescriptor("rendered", false, null,
1110:                            true);
1111:                    prop_rendered.setValue(
1112:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1113:                            attrib);
1114:                    prop_rendered
1115:                            .setValue(
1116:                                    Constants.PropertyDescriptor.CATEGORY,
1117:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1118:
1119:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1120:                            "rendererType", beanClass, "getRendererType",
1121:                            "setRendererType");
1122:                    prop_rendererType.setDisplayName(resources
1123:                            .getString("Listbox_rendererType_DisplayName"));
1124:                    prop_rendererType.setShortDescription(resources
1125:                            .getString("Listbox_rendererType_Description"));
1126:                    prop_rendererType.setExpert(false);
1127:                    prop_rendererType.setHidden(true);
1128:                    prop_rendererType.setPreferred(false);
1129:                    prop_rendererType
1130:                            .setValue(
1131:                                    Constants.PropertyDescriptor.CATEGORY,
1132:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1133:
1134:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1135:                            "rendersChildren", beanClass, "getRendersChildren",
1136:                            null);
1137:                    prop_rendersChildren.setDisplayName(resources
1138:                            .getString("Listbox_rendersChildren_DisplayName"));
1139:                    prop_rendersChildren.setShortDescription(resources
1140:                            .getString("Listbox_rendersChildren_Description"));
1141:                    prop_rendersChildren.setExpert(false);
1142:                    prop_rendersChildren.setHidden(true);
1143:                    prop_rendersChildren.setPreferred(false);
1144:                    prop_rendersChildren
1145:                            .setValue(
1146:                                    Constants.PropertyDescriptor.CATEGORY,
1147:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1148:
1149:                    PropertyDescriptor prop_required = new PropertyDescriptor(
1150:                            "required", beanClass, "isRequired", "setRequired");
1151:                    prop_required.setDisplayName(resources
1152:                            .getString("Listbox_required_DisplayName"));
1153:                    prop_required.setShortDescription(resources
1154:                            .getString("Listbox_required_Description"));
1155:                    prop_required.setExpert(false);
1156:                    prop_required.setHidden(false);
1157:                    prop_required.setPreferred(false);
1158:                    attrib = new AttributeDescriptor("required", false, null,
1159:                            true);
1160:                    prop_required.setValue(
1161:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1162:                            attrib);
1163:                    prop_required
1164:                            .setValue(
1165:                                    Constants.PropertyDescriptor.CATEGORY,
1166:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1167:
1168:                    PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1169:                            "submittedValue", beanClass, "getSubmittedValue",
1170:                            "setSubmittedValue");
1171:                    prop_submittedValue.setDisplayName(resources
1172:                            .getString("Listbox_submittedValue_DisplayName"));
1173:                    prop_submittedValue.setShortDescription(resources
1174:                            .getString("Listbox_submittedValue_Description"));
1175:                    prop_submittedValue.setExpert(false);
1176:                    prop_submittedValue.setHidden(true);
1177:                    prop_submittedValue.setPreferred(false);
1178:                    prop_submittedValue
1179:                            .setValue(
1180:                                    Constants.PropertyDescriptor.CATEGORY,
1181:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1182:
1183:                    PropertyDescriptor prop_validator = new PropertyDescriptor(
1184:                            "validator", beanClass, "getValidator",
1185:                            "setValidator");
1186:                    prop_validator.setDisplayName(resources
1187:                            .getString("Listbox_validator_DisplayName"));
1188:                    prop_validator.setShortDescription(resources
1189:                            .getString("Listbox_validator_Description"));
1190:                    prop_validator
1191:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1192:                    prop_validator.setExpert(false);
1193:                    prop_validator.setHidden(false);
1194:                    prop_validator.setPreferred(false);
1195:                    attrib = new AttributeDescriptor("validator", false, null,
1196:                            true);
1197:                    prop_validator.setValue(
1198:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1199:                            attrib);
1200:                    prop_validator
1201:                            .setValue(
1202:                                    Constants.PropertyDescriptor.CATEGORY,
1203:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1204:
1205:                    PropertyDescriptor prop_value = new PropertyDescriptor(
1206:                            "value", beanClass, "getValue", "setValue");
1207:                    prop_value.setDisplayName(resources
1208:                            .getString("Listbox_value_DisplayName"));
1209:                    prop_value.setShortDescription(resources
1210:                            .getString("Listbox_value_Description"));
1211:                    prop_value.setExpert(false);
1212:                    prop_value.setHidden(true);
1213:                    prop_value.setPreferred(false);
1214:                    prop_value
1215:                            .setValue(
1216:                                    Constants.PropertyDescriptor.CATEGORY,
1217:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1218:
1219:                    PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1220:                            "valueChangeListener", beanClass,
1221:                            "getValueChangeListener", "setValueChangeListener");
1222:                    prop_valueChangeListener
1223:                            .setDisplayName(resources
1224:                                    .getString("Listbox_valueChangeListener_DisplayName"));
1225:                    prop_valueChangeListener
1226:                            .setShortDescription(resources
1227:                                    .getString("Listbox_valueChangeListener_Description"));
1228:                    prop_valueChangeListener
1229:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1230:                    prop_valueChangeListener.setExpert(false);
1231:                    prop_valueChangeListener.setHidden(false);
1232:                    prop_valueChangeListener.setPreferred(false);
1233:                    attrib = new AttributeDescriptor("valueChangeListener",
1234:                            false, null, true);
1235:                    prop_valueChangeListener.setValue(
1236:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1237:                            attrib);
1238:                    prop_valueChangeListener
1239:                            .setValue(
1240:                                    Constants.PropertyDescriptor.CATEGORY,
1241:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1242:
1243:                    propDescriptors = new PropertyDescriptor[] {
1244:                            prop_attributes, prop_childCount, prop_children,
1245:                            prop_converter, prop_disabled, prop_facets,
1246:                            prop_family, prop_id, prop_immediate, prop_items,
1247:                            prop_label, prop_labelLevel, prop_labelOnTop,
1248:                            prop_localValue, prop_localValueSet,
1249:                            prop_monospace, prop_multiple, prop_onBlur,
1250:                            prop_onChange, prop_onClick, prop_onDblClick,
1251:                            prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1252:                            prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1253:                            prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1254:                            prop_onSelect, prop_parent, prop_readOnly,
1255:                            prop_rendered, prop_rendererType,
1256:                            prop_rendersChildren, prop_required, prop_rows,
1257:                            prop_selected, prop_separators, prop_style,
1258:                            prop_styleClass, prop_submittedValue,
1259:                            prop_tabIndex, prop_toolTip, prop_validator,
1260:                            prop_value, prop_valueChangeListener, prop_visible, };
1261:                    return propDescriptors;
1262:
1263:                } catch (IntrospectionException e) {
1264:                    e.printStackTrace();
1265:                    return null;
1266:                }
1267:
1268:            }
1269:
1270:        }
1271:        //GEN-END:BeanInfo
ww_w_.___j___a_v_a2_s___.__c__o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.