Source Code Cross Referenced for DropDownBeanInfoBase.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 DropDownBeanInfoBase 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(), DropDownBeanInfoBase.class
0071:                                    .getClassLoader());
0072:
0073:            /**
0074:             * <p>Construct a new <code>DropDownBeanInfoBase</code>.</p>
0075:             */
0076:            public DropDownBeanInfoBase() {
0077:
0078:                beanClass = com.sun.rave.web.ui.component.DropDown.class;
0079:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/DropDown_C16";
0080:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/DropDown_C32";
0081:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/DropDown_M16";
0082:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/DropDown_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("DropDown_DisplayName"));
0143:                beanDescriptor.setShortDescription(resources
0144:                        .getString("DropDown_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_dropdown_list");
0153:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0154:                        "dropDown");
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_dropdown_list_props");
0160:                beanDescriptor.setValue(
0161:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0162:                        getCategoryDescriptors());
0163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0164:                        "dropDown");
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_action = new PropertyDescriptor(
0288:                            "action", beanClass, "getAction", "setAction");
0289:                    prop_action.setDisplayName(resources
0290:                            .getString("DropDown_action_DisplayName"));
0291:                    prop_action.setShortDescription(resources
0292:                            .getString("DropDown_action_Description"));
0293:                    prop_action.setExpert(false);
0294:                    prop_action.setHidden(true);
0295:                    prop_action.setPreferred(false);
0296:                    attrib = new AttributeDescriptor("action", false, null,
0297:                            true);
0298:                    prop_action.setValue(
0299:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0300:                            attrib);
0301:                    prop_action
0302:                            .setValue(
0303:                                    Constants.PropertyDescriptor.CATEGORY,
0304:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0305:
0306:                    PropertyDescriptor prop_actionListener = new PropertyDescriptor(
0307:                            "actionListener", beanClass, "getActionListener",
0308:                            "setActionListener");
0309:                    prop_actionListener.setDisplayName(resources
0310:                            .getString("DropDown_actionListener_DisplayName"));
0311:                    prop_actionListener.setShortDescription(resources
0312:                            .getString("DropDown_actionListener_Description"));
0313:                    prop_actionListener.setExpert(false);
0314:                    prop_actionListener.setHidden(true);
0315:                    prop_actionListener.setPreferred(false);
0316:                    attrib = new AttributeDescriptor("actionListener", false,
0317:                            null, true);
0318:                    prop_actionListener.setValue(
0319:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0320:                            attrib);
0321:                    prop_actionListener
0322:                            .setValue(
0323:                                    Constants.PropertyDescriptor.CATEGORY,
0324:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0325:
0326:                    PropertyDescriptor prop_forgetValue = new PropertyDescriptor(
0327:                            "forgetValue", beanClass, "isForgetValue",
0328:                            "setForgetValue");
0329:                    prop_forgetValue.setDisplayName(resources
0330:                            .getString("DropDown_forgetValue_DisplayName"));
0331:                    prop_forgetValue.setShortDescription(resources
0332:                            .getString("DropDown_forgetValue_Description"));
0333:                    prop_forgetValue.setExpert(false);
0334:                    prop_forgetValue.setHidden(true);
0335:                    prop_forgetValue.setPreferred(false);
0336:                    attrib = new AttributeDescriptor("forgetValue", false,
0337:                            null, true);
0338:                    prop_forgetValue.setValue(
0339:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0340:                            attrib);
0341:                    prop_forgetValue
0342:                            .setValue(
0343:                                    Constants.PropertyDescriptor.CATEGORY,
0344:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0345:
0346:                    PropertyDescriptor prop_navigateToValue = new PropertyDescriptor(
0347:                            "navigateToValue", beanClass, "isNavigateToValue",
0348:                            "setNavigateToValue");
0349:                    prop_navigateToValue.setDisplayName(resources
0350:                            .getString("DropDown_navigateToValue_DisplayName"));
0351:                    prop_navigateToValue.setShortDescription(resources
0352:                            .getString("DropDown_navigateToValue_Description"));
0353:                    prop_navigateToValue.setExpert(false);
0354:                    prop_navigateToValue.setHidden(true);
0355:                    prop_navigateToValue.setPreferred(false);
0356:                    attrib = new AttributeDescriptor("navigateToValue", false,
0357:                            null, true);
0358:                    prop_navigateToValue.setValue(
0359:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0360:                            attrib);
0361:                    prop_navigateToValue
0362:                            .setValue(
0363:                                    Constants.PropertyDescriptor.CATEGORY,
0364:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0365:
0366:                    PropertyDescriptor prop_submitForm = new PropertyDescriptor(
0367:                            "submitForm", beanClass, "isSubmitForm",
0368:                            "setSubmitForm");
0369:                    prop_submitForm.setDisplayName(resources
0370:                            .getString("DropDown_submitForm_DisplayName"));
0371:                    prop_submitForm.setShortDescription(resources
0372:                            .getString("DropDown_submitForm_Description"));
0373:                    prop_submitForm.setExpert(false);
0374:                    prop_submitForm.setHidden(true);
0375:                    prop_submitForm.setPreferred(false);
0376:                    attrib = new AttributeDescriptor("submitForm", false, null,
0377:                            true);
0378:                    prop_submitForm.setValue(
0379:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0380:                            attrib);
0381:                    prop_submitForm
0382:                            .setValue(
0383:                                    Constants.PropertyDescriptor.CATEGORY,
0384:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0385:
0386:                    PropertyDescriptor prop_labelOnTop = new PropertyDescriptor(
0387:                            "labelOnTop", beanClass, "isLabelOnTop",
0388:                            "setLabelOnTop");
0389:                    prop_labelOnTop.setDisplayName(resources
0390:                            .getString("DropDown_labelOnTop_DisplayName"));
0391:                    prop_labelOnTop.setShortDescription(resources
0392:                            .getString("DropDown_labelOnTop_Description"));
0393:                    prop_labelOnTop.setExpert(false);
0394:                    prop_labelOnTop.setHidden(false);
0395:                    prop_labelOnTop.setPreferred(false);
0396:                    attrib = new AttributeDescriptor("labelOnTop", false, null,
0397:                            true);
0398:                    prop_labelOnTop.setValue(
0399:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0400:                            attrib);
0401:                    prop_labelOnTop
0402:                            .setValue(
0403:                                    Constants.PropertyDescriptor.CATEGORY,
0404:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0405:
0406:                    PropertyDescriptor prop_rows = new PropertyDescriptor(
0407:                            "rows", beanClass, "getRows", "setRows");
0408:                    prop_rows.setDisplayName(resources
0409:                            .getString("DropDown_rows_DisplayName"));
0410:                    prop_rows.setShortDescription(resources
0411:                            .getString("DropDown_rows_Description"));
0412:                    prop_rows
0413:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0414:                    prop_rows.setExpert(false);
0415:                    prop_rows.setHidden(true);
0416:                    prop_rows.setPreferred(false);
0417:                    prop_rows
0418:                            .setValue(
0419:                                    Constants.PropertyDescriptor.CATEGORY,
0420:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0421:                    prop_rows.setValue(
0422:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0423:
0424:                    PropertyDescriptor prop_separators = new PropertyDescriptor(
0425:                            "separators", beanClass, "isSeparators",
0426:                            "setSeparators");
0427:                    prop_separators.setDisplayName(resources
0428:                            .getString("DropDown_separators_DisplayName"));
0429:                    prop_separators.setShortDescription(resources
0430:                            .getString("DropDown_separators_Description"));
0431:                    prop_separators.setExpert(false);
0432:                    prop_separators.setHidden(false);
0433:                    prop_separators.setPreferred(false);
0434:                    attrib = new AttributeDescriptor("separators", false,
0435:                            "true", true);
0436:                    prop_separators.setValue(
0437:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0438:                            attrib);
0439:                    prop_separators
0440:                            .setValue(
0441:                                    Constants.PropertyDescriptor.CATEGORY,
0442:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0443:
0444:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
0445:                            "visible", beanClass, "isVisible", "setVisible");
0446:                    prop_visible.setDisplayName(resources
0447:                            .getString("DropDown_visible_DisplayName"));
0448:                    prop_visible.setShortDescription(resources
0449:                            .getString("DropDown_visible_Description"));
0450:                    prop_visible.setExpert(false);
0451:                    prop_visible.setHidden(false);
0452:                    prop_visible.setPreferred(false);
0453:                    attrib = new AttributeDescriptor("visible", false, "true",
0454:                            true);
0455:                    prop_visible.setValue(
0456:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0457:                            attrib);
0458:                    prop_visible
0459:                            .setValue(
0460:                                    Constants.PropertyDescriptor.CATEGORY,
0461:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0462:
0463:                    PropertyDescriptor prop_disabled = new PropertyDescriptor(
0464:                            "disabled", beanClass, "isDisabled", "setDisabled");
0465:                    prop_disabled.setDisplayName(resources
0466:                            .getString("DropDown_disabled_DisplayName"));
0467:                    prop_disabled.setShortDescription(resources
0468:                            .getString("DropDown_disabled_Description"));
0469:                    prop_disabled.setExpert(false);
0470:                    prop_disabled.setHidden(false);
0471:                    prop_disabled.setPreferred(false);
0472:                    attrib = new AttributeDescriptor("disabled", false, null,
0473:                            true);
0474:                    prop_disabled.setValue(
0475:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0476:                            attrib);
0477:                    prop_disabled
0478:                            .setValue(
0479:                                    Constants.PropertyDescriptor.CATEGORY,
0480:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0481:
0482:                    PropertyDescriptor prop_items = new PropertyDescriptor(
0483:                            "items", beanClass, "getItems", "setItems");
0484:                    prop_items.setDisplayName(resources
0485:                            .getString("DropDown_items_DisplayName"));
0486:                    prop_items.setShortDescription(resources
0487:                            .getString("DropDown_items_Description"));
0488:                    prop_items
0489:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0490:                    prop_items.setExpert(false);
0491:                    prop_items.setHidden(false);
0492:                    prop_items.setPreferred(false);
0493:                    attrib = new AttributeDescriptor("items", false, null, true);
0494:                    prop_items.setValue(
0495:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0496:                            attrib);
0497:                    prop_items
0498:                            .setValue(
0499:                                    Constants.PropertyDescriptor.CATEGORY,
0500:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0501:                    prop_items
0502:                            .setValue(
0503:                                    "bindingPanelClassNames",
0504:                                    new Class[] {
0505:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindOptionsToDataProviderPanel.class,
0506:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0507:
0508:                    PropertyDescriptor prop_label = new PropertyDescriptor(
0509:                            "label", beanClass, "getLabel", "setLabel");
0510:                    prop_label.setDisplayName(resources
0511:                            .getString("DropDown_label_DisplayName"));
0512:                    prop_label.setShortDescription(resources
0513:                            .getString("DropDown_label_Description"));
0514:                    prop_label
0515:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0516:                    prop_label.setExpert(false);
0517:                    prop_label.setHidden(false);
0518:                    prop_label.setPreferred(false);
0519:                    attrib = new AttributeDescriptor("label", false, null, true);
0520:                    prop_label.setValue(
0521:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0522:                            attrib);
0523:                    prop_label
0524:                            .setValue(
0525:                                    Constants.PropertyDescriptor.CATEGORY,
0526:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0527:
0528:                    PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0529:                            "labelLevel", beanClass, "getLabelLevel",
0530:                            "setLabelLevel");
0531:                    prop_labelLevel.setDisplayName(resources
0532:                            .getString("DropDown_labelLevel_DisplayName"));
0533:                    prop_labelLevel.setShortDescription(resources
0534:                            .getString("DropDown_labelLevel_Description"));
0535:                    prop_labelLevel
0536:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0537:                    prop_labelLevel.setExpert(false);
0538:                    prop_labelLevel.setHidden(false);
0539:                    prop_labelLevel.setPreferred(false);
0540:                    attrib = new AttributeDescriptor("labelLevel", false, "2",
0541:                            true);
0542:                    prop_labelLevel.setValue(
0543:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0544:                            attrib);
0545:                    prop_labelLevel
0546:                            .setValue(
0547:                                    Constants.PropertyDescriptor.CATEGORY,
0548:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0549:                    prop_labelLevel
0550:                            .setValue(
0551:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0552:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0553:
0554:                    PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0555:                            "onBlur", beanClass, "getOnBlur", "setOnBlur");
0556:                    prop_onBlur.setDisplayName(resources
0557:                            .getString("DropDown_onBlur_DisplayName"));
0558:                    prop_onBlur.setShortDescription(resources
0559:                            .getString("DropDown_onBlur_Description"));
0560:                    prop_onBlur
0561:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0562:                    prop_onBlur.setExpert(false);
0563:                    prop_onBlur.setHidden(false);
0564:                    prop_onBlur.setPreferred(false);
0565:                    attrib = new AttributeDescriptor("onBlur", false, null,
0566:                            true);
0567:                    prop_onBlur.setValue(
0568:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0569:                            attrib);
0570:                    prop_onBlur
0571:                            .setValue(
0572:                                    Constants.PropertyDescriptor.CATEGORY,
0573:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0574:
0575:                    PropertyDescriptor prop_onChange = new PropertyDescriptor(
0576:                            "onChange", beanClass, "getOnChange", "setOnChange");
0577:                    prop_onChange.setDisplayName(resources
0578:                            .getString("DropDown_onChange_DisplayName"));
0579:                    prop_onChange.setShortDescription(resources
0580:                            .getString("DropDown_onChange_Description"));
0581:                    prop_onChange
0582:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0583:                    prop_onChange.setExpert(false);
0584:                    prop_onChange.setHidden(false);
0585:                    prop_onChange.setPreferred(false);
0586:                    attrib = new AttributeDescriptor("onChange", false, null,
0587:                            true);
0588:                    prop_onChange.setValue(
0589:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0590:                            attrib);
0591:                    prop_onChange
0592:                            .setValue(
0593:                                    Constants.PropertyDescriptor.CATEGORY,
0594:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0595:
0596:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
0597:                            "onClick", beanClass, "getOnClick", "setOnClick");
0598:                    prop_onClick.setDisplayName(resources
0599:                            .getString("DropDown_onClick_DisplayName"));
0600:                    prop_onClick.setShortDescription(resources
0601:                            .getString("DropDown_onClick_Description"));
0602:                    prop_onClick
0603:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0604:                    prop_onClick.setExpert(false);
0605:                    prop_onClick.setHidden(false);
0606:                    prop_onClick.setPreferred(false);
0607:                    attrib = new AttributeDescriptor("onClick", false, null,
0608:                            true);
0609:                    prop_onClick.setValue(
0610:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0611:                            attrib);
0612:                    prop_onClick
0613:                            .setValue(
0614:                                    Constants.PropertyDescriptor.CATEGORY,
0615:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0616:
0617:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0618:                            "onDblClick", beanClass, "getOnDblClick",
0619:                            "setOnDblClick");
0620:                    prop_onDblClick.setDisplayName(resources
0621:                            .getString("DropDown_onDblClick_DisplayName"));
0622:                    prop_onDblClick.setShortDescription(resources
0623:                            .getString("DropDown_onDblClick_Description"));
0624:                    prop_onDblClick
0625:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0626:                    prop_onDblClick.setExpert(false);
0627:                    prop_onDblClick.setHidden(false);
0628:                    prop_onDblClick.setPreferred(false);
0629:                    attrib = new AttributeDescriptor("onDblClick", false, null,
0630:                            true);
0631:                    prop_onDblClick.setValue(
0632:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0633:                            attrib);
0634:                    prop_onDblClick
0635:                            .setValue(
0636:                                    Constants.PropertyDescriptor.CATEGORY,
0637:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0638:
0639:                    PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0640:                            "onFocus", beanClass, "getOnFocus", "setOnFocus");
0641:                    prop_onFocus.setDisplayName(resources
0642:                            .getString("DropDown_onFocus_DisplayName"));
0643:                    prop_onFocus.setShortDescription(resources
0644:                            .getString("DropDown_onFocus_Description"));
0645:                    prop_onFocus
0646:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0647:                    prop_onFocus.setExpert(false);
0648:                    prop_onFocus.setHidden(false);
0649:                    prop_onFocus.setPreferred(false);
0650:                    attrib = new AttributeDescriptor("onFocus", false, null,
0651:                            true);
0652:                    prop_onFocus.setValue(
0653:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0654:                            attrib);
0655:                    prop_onFocus
0656:                            .setValue(
0657:                                    Constants.PropertyDescriptor.CATEGORY,
0658:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0659:
0660:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0661:                            "onKeyDown", beanClass, "getOnKeyDown",
0662:                            "setOnKeyDown");
0663:                    prop_onKeyDown.setDisplayName(resources
0664:                            .getString("DropDown_onKeyDown_DisplayName"));
0665:                    prop_onKeyDown.setShortDescription(resources
0666:                            .getString("DropDown_onKeyDown_Description"));
0667:                    prop_onKeyDown
0668:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0669:                    prop_onKeyDown.setExpert(false);
0670:                    prop_onKeyDown.setHidden(false);
0671:                    prop_onKeyDown.setPreferred(false);
0672:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
0673:                            true);
0674:                    prop_onKeyDown.setValue(
0675:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0676:                            attrib);
0677:                    prop_onKeyDown
0678:                            .setValue(
0679:                                    Constants.PropertyDescriptor.CATEGORY,
0680:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0681:
0682:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0683:                            "onKeyPress", beanClass, "getOnKeyPress",
0684:                            "setOnKeyPress");
0685:                    prop_onKeyPress.setDisplayName(resources
0686:                            .getString("DropDown_onKeyPress_DisplayName"));
0687:                    prop_onKeyPress.setShortDescription(resources
0688:                            .getString("DropDown_onKeyPress_Description"));
0689:                    prop_onKeyPress
0690:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0691:                    prop_onKeyPress.setExpert(false);
0692:                    prop_onKeyPress.setHidden(false);
0693:                    prop_onKeyPress.setPreferred(false);
0694:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
0695:                            true);
0696:                    prop_onKeyPress.setValue(
0697:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0698:                            attrib);
0699:                    prop_onKeyPress
0700:                            .setValue(
0701:                                    Constants.PropertyDescriptor.CATEGORY,
0702:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0703:
0704:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0705:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0706:                    prop_onKeyUp.setDisplayName(resources
0707:                            .getString("DropDown_onKeyUp_DisplayName"));
0708:                    prop_onKeyUp.setShortDescription(resources
0709:                            .getString("DropDown_onKeyUp_Description"));
0710:                    prop_onKeyUp
0711:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0712:                    prop_onKeyUp.setExpert(false);
0713:                    prop_onKeyUp.setHidden(false);
0714:                    prop_onKeyUp.setPreferred(false);
0715:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
0716:                            true);
0717:                    prop_onKeyUp.setValue(
0718:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0719:                            attrib);
0720:                    prop_onKeyUp
0721:                            .setValue(
0722:                                    Constants.PropertyDescriptor.CATEGORY,
0723:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0724:
0725:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0726:                            "onMouseDown", beanClass, "getOnMouseDown",
0727:                            "setOnMouseDown");
0728:                    prop_onMouseDown.setDisplayName(resources
0729:                            .getString("DropDown_onMouseDown_DisplayName"));
0730:                    prop_onMouseDown.setShortDescription(resources
0731:                            .getString("DropDown_onMouseDown_Description"));
0732:                    prop_onMouseDown
0733:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0734:                    prop_onMouseDown.setExpert(false);
0735:                    prop_onMouseDown.setHidden(false);
0736:                    prop_onMouseDown.setPreferred(false);
0737:                    attrib = new AttributeDescriptor("onMouseDown", false,
0738:                            null, true);
0739:                    prop_onMouseDown.setValue(
0740:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0741:                            attrib);
0742:                    prop_onMouseDown
0743:                            .setValue(
0744:                                    Constants.PropertyDescriptor.CATEGORY,
0745:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0746:
0747:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0748:                            "onMouseMove", beanClass, "getOnMouseMove",
0749:                            "setOnMouseMove");
0750:                    prop_onMouseMove.setDisplayName(resources
0751:                            .getString("DropDown_onMouseMove_DisplayName"));
0752:                    prop_onMouseMove.setShortDescription(resources
0753:                            .getString("DropDown_onMouseMove_Description"));
0754:                    prop_onMouseMove
0755:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0756:                    prop_onMouseMove.setExpert(false);
0757:                    prop_onMouseMove.setHidden(false);
0758:                    prop_onMouseMove.setPreferred(false);
0759:                    attrib = new AttributeDescriptor("onMouseMove", false,
0760:                            null, true);
0761:                    prop_onMouseMove.setValue(
0762:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0763:                            attrib);
0764:                    prop_onMouseMove
0765:                            .setValue(
0766:                                    Constants.PropertyDescriptor.CATEGORY,
0767:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0768:
0769:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0770:                            "onMouseOut", beanClass, "getOnMouseOut",
0771:                            "setOnMouseOut");
0772:                    prop_onMouseOut.setDisplayName(resources
0773:                            .getString("DropDown_onMouseOut_DisplayName"));
0774:                    prop_onMouseOut.setShortDescription(resources
0775:                            .getString("DropDown_onMouseOut_Description"));
0776:                    prop_onMouseOut
0777:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0778:                    prop_onMouseOut.setExpert(false);
0779:                    prop_onMouseOut.setHidden(false);
0780:                    prop_onMouseOut.setPreferred(false);
0781:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
0782:                            true);
0783:                    prop_onMouseOut.setValue(
0784:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0785:                            attrib);
0786:                    prop_onMouseOut
0787:                            .setValue(
0788:                                    Constants.PropertyDescriptor.CATEGORY,
0789:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0790:
0791:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0792:                            "onMouseOver", beanClass, "getOnMouseOver",
0793:                            "setOnMouseOver");
0794:                    prop_onMouseOver.setDisplayName(resources
0795:                            .getString("DropDown_onMouseOver_DisplayName"));
0796:                    prop_onMouseOver.setShortDescription(resources
0797:                            .getString("DropDown_onMouseOver_Description"));
0798:                    prop_onMouseOver
0799:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0800:                    prop_onMouseOver.setExpert(false);
0801:                    prop_onMouseOver.setHidden(false);
0802:                    prop_onMouseOver.setPreferred(false);
0803:                    attrib = new AttributeDescriptor("onMouseOver", false,
0804:                            null, true);
0805:                    prop_onMouseOver.setValue(
0806:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0807:                            attrib);
0808:                    prop_onMouseOver
0809:                            .setValue(
0810:                                    Constants.PropertyDescriptor.CATEGORY,
0811:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0812:
0813:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0814:                            "onMouseUp", beanClass, "getOnMouseUp",
0815:                            "setOnMouseUp");
0816:                    prop_onMouseUp.setDisplayName(resources
0817:                            .getString("DropDown_onMouseUp_DisplayName"));
0818:                    prop_onMouseUp.setShortDescription(resources
0819:                            .getString("DropDown_onMouseUp_Description"));
0820:                    prop_onMouseUp
0821:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0822:                    prop_onMouseUp.setExpert(false);
0823:                    prop_onMouseUp.setHidden(false);
0824:                    prop_onMouseUp.setPreferred(false);
0825:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
0826:                            true);
0827:                    prop_onMouseUp.setValue(
0828:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0829:                            attrib);
0830:                    prop_onMouseUp
0831:                            .setValue(
0832:                                    Constants.PropertyDescriptor.CATEGORY,
0833:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0834:
0835:                    PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0836:                            "onSelect", beanClass, "getOnSelect", "setOnSelect");
0837:                    prop_onSelect.setDisplayName(resources
0838:                            .getString("DropDown_onSelect_DisplayName"));
0839:                    prop_onSelect.setShortDescription(resources
0840:                            .getString("DropDown_onSelect_Description"));
0841:                    prop_onSelect
0842:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0843:                    prop_onSelect.setExpert(false);
0844:                    prop_onSelect.setHidden(true);
0845:                    prop_onSelect.setPreferred(false);
0846:                    prop_onSelect
0847:                            .setValue(
0848:                                    Constants.PropertyDescriptor.CATEGORY,
0849:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0850:
0851:                    PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0852:                            "readOnly", beanClass, "isReadOnly", "setReadOnly");
0853:                    prop_readOnly.setDisplayName(resources
0854:                            .getString("DropDown_readOnly_DisplayName"));
0855:                    prop_readOnly.setShortDescription(resources
0856:                            .getString("DropDown_readOnly_Description"));
0857:                    prop_readOnly.setExpert(false);
0858:                    prop_readOnly.setHidden(false);
0859:                    prop_readOnly.setPreferred(false);
0860:                    attrib = new AttributeDescriptor("readOnly", false, null,
0861:                            true);
0862:                    prop_readOnly.setValue(
0863:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0864:                            attrib);
0865:                    prop_readOnly
0866:                            .setValue(
0867:                                    Constants.PropertyDescriptor.CATEGORY,
0868:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0869:
0870:                    PropertyDescriptor prop_selected = new PropertyDescriptor(
0871:                            "selected", beanClass, "getSelected", "setSelected");
0872:                    prop_selected.setDisplayName(resources
0873:                            .getString("DropDown_selected_DisplayName"));
0874:                    prop_selected.setShortDescription(resources
0875:                            .getString("DropDown_selected_Description"));
0876:                    prop_selected
0877:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0878:                    prop_selected.setExpert(false);
0879:                    prop_selected.setHidden(false);
0880:                    prop_selected.setPreferred(false);
0881:                    attrib = new AttributeDescriptor("selected", false, null,
0882:                            true);
0883:                    prop_selected.setValue(
0884:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0885:                            attrib);
0886:                    prop_selected
0887:                            .setValue(
0888:                                    Constants.PropertyDescriptor.CATEGORY,
0889:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0890:                    prop_selected
0891:                            .setValue(
0892:                                    "bindingPanelClassNames",
0893:                                    new Class[] {
0894:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToDataProviderPanel.class,
0895:                                            org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0896:
0897:                    PropertyDescriptor prop_style = new PropertyDescriptor(
0898:                            "style", beanClass, "getStyle", "setStyle");
0899:                    prop_style.setDisplayName(resources
0900:                            .getString("DropDown_style_DisplayName"));
0901:                    prop_style.setShortDescription(resources
0902:                            .getString("DropDown_style_Description"));
0903:                    prop_style
0904:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0905:                    prop_style.setExpert(false);
0906:                    prop_style.setHidden(false);
0907:                    prop_style.setPreferred(false);
0908:                    attrib = new AttributeDescriptor("style", false, null, true);
0909:                    prop_style.setValue(
0910:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0911:                            attrib);
0912:                    prop_style
0913:                            .setValue(
0914:                                    Constants.PropertyDescriptor.CATEGORY,
0915:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0916:
0917:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0918:                            "styleClass", beanClass, "getStyleClass",
0919:                            "setStyleClass");
0920:                    prop_styleClass.setDisplayName(resources
0921:                            .getString("DropDown_styleClass_DisplayName"));
0922:                    prop_styleClass.setShortDescription(resources
0923:                            .getString("DropDown_styleClass_Description"));
0924:                    prop_styleClass
0925:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0926:                    prop_styleClass.setExpert(false);
0927:                    prop_styleClass.setHidden(false);
0928:                    prop_styleClass.setPreferred(false);
0929:                    attrib = new AttributeDescriptor("styleClass", false, null,
0930:                            true);
0931:                    prop_styleClass.setValue(
0932:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0933:                            attrib);
0934:                    prop_styleClass
0935:                            .setValue(
0936:                                    Constants.PropertyDescriptor.CATEGORY,
0937:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0938:
0939:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0940:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0941:                    prop_tabIndex.setDisplayName(resources
0942:                            .getString("DropDown_tabIndex_DisplayName"));
0943:                    prop_tabIndex.setShortDescription(resources
0944:                            .getString("DropDown_tabIndex_Description"));
0945:                    prop_tabIndex
0946:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0947:                    prop_tabIndex.setExpert(false);
0948:                    prop_tabIndex.setHidden(false);
0949:                    prop_tabIndex.setPreferred(false);
0950:                    attrib = new AttributeDescriptor("tabIndex", false, null,
0951:                            true);
0952:                    prop_tabIndex.setValue(
0953:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0954:                            attrib);
0955:                    prop_tabIndex
0956:                            .setValue(
0957:                                    Constants.PropertyDescriptor.CATEGORY,
0958:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0959:                    prop_tabIndex.setValue(
0960:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0961:
0962:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0963:                            "toolTip", beanClass, "getToolTip", "setToolTip");
0964:                    prop_toolTip.setDisplayName(resources
0965:                            .getString("DropDown_toolTip_DisplayName"));
0966:                    prop_toolTip.setShortDescription(resources
0967:                            .getString("DropDown_toolTip_Description"));
0968:                    prop_toolTip
0969:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0970:                    prop_toolTip.setExpert(false);
0971:                    prop_toolTip.setHidden(false);
0972:                    prop_toolTip.setPreferred(false);
0973:                    attrib = new AttributeDescriptor("toolTip", false, null,
0974:                            true);
0975:                    prop_toolTip.setValue(
0976:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0977:                            attrib);
0978:                    prop_toolTip
0979:                            .setValue(
0980:                                    Constants.PropertyDescriptor.CATEGORY,
0981:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0982:
0983:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
0984:                            "attributes", beanClass, "getAttributes", null);
0985:                    prop_attributes.setDisplayName(resources
0986:                            .getString("DropDown_attributes_DisplayName"));
0987:                    prop_attributes.setShortDescription(resources
0988:                            .getString("DropDown_attributes_Description"));
0989:                    prop_attributes.setExpert(false);
0990:                    prop_attributes.setHidden(true);
0991:                    prop_attributes.setPreferred(false);
0992:                    prop_attributes
0993:                            .setValue(
0994:                                    Constants.PropertyDescriptor.CATEGORY,
0995:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0996:
0997:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
0998:                            "childCount", beanClass, "getChildCount", null);
0999:                    prop_childCount.setDisplayName(resources
1000:                            .getString("DropDown_childCount_DisplayName"));
1001:                    prop_childCount.setShortDescription(resources
1002:                            .getString("DropDown_childCount_Description"));
1003:                    prop_childCount.setExpert(false);
1004:                    prop_childCount.setHidden(true);
1005:                    prop_childCount.setPreferred(false);
1006:                    prop_childCount
1007:                            .setValue(
1008:                                    Constants.PropertyDescriptor.CATEGORY,
1009:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1010:
1011:                    PropertyDescriptor prop_children = new PropertyDescriptor(
1012:                            "children", beanClass, "getChildren", null);
1013:                    prop_children.setDisplayName(resources
1014:                            .getString("DropDown_children_DisplayName"));
1015:                    prop_children.setShortDescription(resources
1016:                            .getString("DropDown_children_Description"));
1017:                    prop_children.setExpert(false);
1018:                    prop_children.setHidden(true);
1019:                    prop_children.setPreferred(false);
1020:                    prop_children
1021:                            .setValue(
1022:                                    Constants.PropertyDescriptor.CATEGORY,
1023:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1024:
1025:                    PropertyDescriptor prop_converter = new PropertyDescriptor(
1026:                            "converter", beanClass, "getConverter",
1027:                            "setConverter");
1028:                    prop_converter.setDisplayName(resources
1029:                            .getString("DropDown_converter_DisplayName"));
1030:                    prop_converter.setShortDescription(resources
1031:                            .getString("DropDown_converter_Description"));
1032:                    prop_converter
1033:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
1034:                    prop_converter.setExpert(false);
1035:                    prop_converter.setHidden(false);
1036:                    prop_converter.setPreferred(false);
1037:                    attrib = new AttributeDescriptor("converter", false, null,
1038:                            true);
1039:                    prop_converter.setValue(
1040:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1041:                            attrib);
1042:                    prop_converter
1043:                            .setValue(
1044:                                    Constants.PropertyDescriptor.CATEGORY,
1045:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1046:
1047:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
1048:                            "facets", beanClass, "getFacets", null);
1049:                    prop_facets.setDisplayName(resources
1050:                            .getString("DropDown_facets_DisplayName"));
1051:                    prop_facets.setShortDescription(resources
1052:                            .getString("DropDown_facets_Description"));
1053:                    prop_facets.setExpert(false);
1054:                    prop_facets.setHidden(true);
1055:                    prop_facets.setPreferred(false);
1056:                    prop_facets
1057:                            .setValue(
1058:                                    Constants.PropertyDescriptor.CATEGORY,
1059:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1060:
1061:                    PropertyDescriptor prop_family = new PropertyDescriptor(
1062:                            "family", beanClass, "getFamily", null);
1063:                    prop_family.setDisplayName(resources
1064:                            .getString("DropDown_family_DisplayName"));
1065:                    prop_family.setShortDescription(resources
1066:                            .getString("DropDown_family_Description"));
1067:                    prop_family.setExpert(false);
1068:                    prop_family.setHidden(true);
1069:                    prop_family.setPreferred(false);
1070:                    prop_family
1071:                            .setValue(
1072:                                    Constants.PropertyDescriptor.CATEGORY,
1073:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1074:
1075:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
1076:                            beanClass, "getId", "setId");
1077:                    prop_id.setDisplayName(resources
1078:                            .getString("DropDown_id_DisplayName"));
1079:                    prop_id.setShortDescription(resources
1080:                            .getString("DropDown_id_Description"));
1081:                    prop_id.setExpert(false);
1082:                    prop_id.setHidden(true);
1083:                    prop_id.setPreferred(false);
1084:                    attrib = new AttributeDescriptor("id", false, null, true);
1085:                    prop_id.setValue(
1086:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1087:                            attrib);
1088:                    prop_id
1089:                            .setValue(
1090:                                    Constants.PropertyDescriptor.CATEGORY,
1091:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1092:
1093:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
1094:                            "immediate", beanClass, "isImmediate",
1095:                            "setImmediate");
1096:                    prop_immediate.setDisplayName(resources
1097:                            .getString("DropDown_immediate_DisplayName"));
1098:                    prop_immediate.setShortDescription(resources
1099:                            .getString("DropDown_immediate_Description"));
1100:                    prop_immediate.setExpert(false);
1101:                    prop_immediate.setHidden(false);
1102:                    prop_immediate.setPreferred(false);
1103:                    attrib = new AttributeDescriptor("immediate", false, null,
1104:                            true);
1105:                    prop_immediate.setValue(
1106:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1107:                            attrib);
1108:                    prop_immediate
1109:                            .setValue(
1110:                                    Constants.PropertyDescriptor.CATEGORY,
1111:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1112:
1113:                    PropertyDescriptor prop_localValue = new PropertyDescriptor(
1114:                            "localValue", beanClass, "getLocalValue", null);
1115:                    prop_localValue.setDisplayName(resources
1116:                            .getString("DropDown_localValue_DisplayName"));
1117:                    prop_localValue.setShortDescription(resources
1118:                            .getString("DropDown_localValue_Description"));
1119:                    prop_localValue.setExpert(false);
1120:                    prop_localValue.setHidden(true);
1121:                    prop_localValue.setPreferred(false);
1122:                    prop_localValue
1123:                            .setValue(
1124:                                    Constants.PropertyDescriptor.CATEGORY,
1125:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1126:
1127:                    PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1128:                            "localValueSet", beanClass, "isLocalValueSet",
1129:                            "setLocalValueSet");
1130:                    prop_localValueSet.setDisplayName(resources
1131:                            .getString("DropDown_localValueSet_DisplayName"));
1132:                    prop_localValueSet.setShortDescription(resources
1133:                            .getString("DropDown_localValueSet_Description"));
1134:                    prop_localValueSet.setExpert(false);
1135:                    prop_localValueSet.setHidden(true);
1136:                    prop_localValueSet.setPreferred(false);
1137:                    prop_localValueSet
1138:                            .setValue(
1139:                                    Constants.PropertyDescriptor.CATEGORY,
1140:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1141:
1142:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
1143:                            "parent", beanClass, "getParent", null);
1144:                    prop_parent.setDisplayName(resources
1145:                            .getString("DropDown_parent_DisplayName"));
1146:                    prop_parent.setShortDescription(resources
1147:                            .getString("DropDown_parent_Description"));
1148:                    prop_parent.setExpert(false);
1149:                    prop_parent.setHidden(true);
1150:                    prop_parent.setPreferred(false);
1151:                    prop_parent
1152:                            .setValue(
1153:                                    Constants.PropertyDescriptor.CATEGORY,
1154:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1155:
1156:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
1157:                            "rendered", beanClass, "isRendered", "setRendered");
1158:                    prop_rendered.setDisplayName(resources
1159:                            .getString("DropDown_rendered_DisplayName"));
1160:                    prop_rendered.setShortDescription(resources
1161:                            .getString("DropDown_rendered_Description"));
1162:                    prop_rendered.setExpert(false);
1163:                    prop_rendered.setHidden(false);
1164:                    prop_rendered.setPreferred(false);
1165:                    attrib = new AttributeDescriptor("rendered", false, null,
1166:                            true);
1167:                    prop_rendered.setValue(
1168:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1169:                            attrib);
1170:                    prop_rendered
1171:                            .setValue(
1172:                                    Constants.PropertyDescriptor.CATEGORY,
1173:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1174:
1175:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1176:                            "rendererType", beanClass, "getRendererType",
1177:                            "setRendererType");
1178:                    prop_rendererType.setDisplayName(resources
1179:                            .getString("DropDown_rendererType_DisplayName"));
1180:                    prop_rendererType.setShortDescription(resources
1181:                            .getString("DropDown_rendererType_Description"));
1182:                    prop_rendererType.setExpert(false);
1183:                    prop_rendererType.setHidden(true);
1184:                    prop_rendererType.setPreferred(false);
1185:                    prop_rendererType
1186:                            .setValue(
1187:                                    Constants.PropertyDescriptor.CATEGORY,
1188:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1189:
1190:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1191:                            "rendersChildren", beanClass, "getRendersChildren",
1192:                            null);
1193:                    prop_rendersChildren.setDisplayName(resources
1194:                            .getString("DropDown_rendersChildren_DisplayName"));
1195:                    prop_rendersChildren.setShortDescription(resources
1196:                            .getString("DropDown_rendersChildren_Description"));
1197:                    prop_rendersChildren.setExpert(false);
1198:                    prop_rendersChildren.setHidden(true);
1199:                    prop_rendersChildren.setPreferred(false);
1200:                    prop_rendersChildren
1201:                            .setValue(
1202:                                    Constants.PropertyDescriptor.CATEGORY,
1203:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1204:
1205:                    PropertyDescriptor prop_required = new PropertyDescriptor(
1206:                            "required", beanClass, "isRequired", "setRequired");
1207:                    prop_required.setDisplayName(resources
1208:                            .getString("DropDown_required_DisplayName"));
1209:                    prop_required.setShortDescription(resources
1210:                            .getString("DropDown_required_Description"));
1211:                    prop_required.setExpert(false);
1212:                    prop_required.setHidden(false);
1213:                    prop_required.setPreferred(false);
1214:                    attrib = new AttributeDescriptor("required", false, null,
1215:                            true);
1216:                    prop_required.setValue(
1217:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1218:                            attrib);
1219:                    prop_required
1220:                            .setValue(
1221:                                    Constants.PropertyDescriptor.CATEGORY,
1222:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1223:
1224:                    PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1225:                            "submittedValue", beanClass, "getSubmittedValue",
1226:                            "setSubmittedValue");
1227:                    prop_submittedValue.setDisplayName(resources
1228:                            .getString("DropDown_submittedValue_DisplayName"));
1229:                    prop_submittedValue.setShortDescription(resources
1230:                            .getString("DropDown_submittedValue_Description"));
1231:                    prop_submittedValue.setExpert(false);
1232:                    prop_submittedValue.setHidden(true);
1233:                    prop_submittedValue.setPreferred(false);
1234:                    prop_submittedValue
1235:                            .setValue(
1236:                                    Constants.PropertyDescriptor.CATEGORY,
1237:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1238:
1239:                    PropertyDescriptor prop_validator = new PropertyDescriptor(
1240:                            "validator", beanClass, "getValidator",
1241:                            "setValidator");
1242:                    prop_validator.setDisplayName(resources
1243:                            .getString("DropDown_validator_DisplayName"));
1244:                    prop_validator.setShortDescription(resources
1245:                            .getString("DropDown_validator_Description"));
1246:                    prop_validator
1247:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1248:                    prop_validator.setExpert(false);
1249:                    prop_validator.setHidden(false);
1250:                    prop_validator.setPreferred(false);
1251:                    attrib = new AttributeDescriptor("validator", false, null,
1252:                            true);
1253:                    prop_validator.setValue(
1254:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1255:                            attrib);
1256:                    prop_validator
1257:                            .setValue(
1258:                                    Constants.PropertyDescriptor.CATEGORY,
1259:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1260:
1261:                    PropertyDescriptor prop_value = new PropertyDescriptor(
1262:                            "value", beanClass, "getValue", "setValue");
1263:                    prop_value.setDisplayName(resources
1264:                            .getString("DropDown_value_DisplayName"));
1265:                    prop_value.setShortDescription(resources
1266:                            .getString("DropDown_value_Description"));
1267:                    prop_value.setExpert(false);
1268:                    prop_value.setHidden(true);
1269:                    prop_value.setPreferred(false);
1270:                    prop_value
1271:                            .setValue(
1272:                                    Constants.PropertyDescriptor.CATEGORY,
1273:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1274:
1275:                    PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1276:                            "valueChangeListener", beanClass,
1277:                            "getValueChangeListener", "setValueChangeListener");
1278:                    prop_valueChangeListener
1279:                            .setDisplayName(resources
1280:                                    .getString("DropDown_valueChangeListener_DisplayName"));
1281:                    prop_valueChangeListener
1282:                            .setShortDescription(resources
1283:                                    .getString("DropDown_valueChangeListener_Description"));
1284:                    prop_valueChangeListener
1285:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1286:                    prop_valueChangeListener.setExpert(false);
1287:                    prop_valueChangeListener.setHidden(false);
1288:                    prop_valueChangeListener.setPreferred(false);
1289:                    attrib = new AttributeDescriptor("valueChangeListener",
1290:                            false, null, true);
1291:                    prop_valueChangeListener.setValue(
1292:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1293:                            attrib);
1294:                    prop_valueChangeListener
1295:                            .setValue(
1296:                                    Constants.PropertyDescriptor.CATEGORY,
1297:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1298:
1299:                    propDescriptors = new PropertyDescriptor[] { prop_action,
1300:                            prop_actionListener, prop_attributes,
1301:                            prop_childCount, prop_children, prop_converter,
1302:                            prop_disabled, prop_facets, prop_family,
1303:                            prop_forgetValue, prop_id, prop_immediate,
1304:                            prop_items, prop_label, prop_labelLevel,
1305:                            prop_labelOnTop, prop_localValue,
1306:                            prop_localValueSet, prop_navigateToValue,
1307:                            prop_onBlur, prop_onChange, prop_onClick,
1308:                            prop_onDblClick, prop_onFocus, prop_onKeyDown,
1309:                            prop_onKeyPress, prop_onKeyUp, prop_onMouseDown,
1310:                            prop_onMouseMove, prop_onMouseOut,
1311:                            prop_onMouseOver, prop_onMouseUp, prop_onSelect,
1312:                            prop_parent, prop_readOnly, prop_rendered,
1313:                            prop_rendererType, prop_rendersChildren,
1314:                            prop_required, prop_rows, prop_selected,
1315:                            prop_separators, prop_style, prop_styleClass,
1316:                            prop_submitForm, prop_submittedValue,
1317:                            prop_tabIndex, prop_toolTip, prop_validator,
1318:                            prop_value, prop_valueChangeListener, prop_visible, };
1319:                    return propDescriptors;
1320:
1321:                } catch (IntrospectionException e) {
1322:                    e.printStackTrace();
1323:                    return null;
1324:                }
1325:
1326:            }
1327:
1328:        }
1329:        //GEN-END:BeanInfo
w_w__w___.j__a___va__2s._c_om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.