Source Code Cross Referenced for UploadBeanInfoBase.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 UploadBeanInfoBase 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(), UploadBeanInfoBase.class
0071:                                    .getClassLoader());
0072:
0073:            /**
0074:             * <p>Construct a new <code>UploadBeanInfoBase</code>.</p>
0075:             */
0076:            public UploadBeanInfoBase() {
0077:
0078:                beanClass = com.sun.rave.web.ui.component.Upload.class;
0079:                defaultPropertyName = "target";
0080:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Upload_C16";
0081:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Upload_C32";
0082:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Upload_M16";
0083:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Upload_M32";
0084:
0085:            }
0086:
0087:            /**
0088:             * <p>The bean class that this BeanInfo represents.
0089:             */
0090:            protected Class beanClass;
0091:
0092:            /**
0093:             * <p>The cached BeanDescriptor.</p>
0094:             */
0095:            protected BeanDescriptor beanDescriptor;
0096:
0097:            /**
0098:             * <p>The index of the default property.</p>
0099:             */
0100:            protected int defaultPropertyIndex = -2;
0101:
0102:            /**
0103:             * <p>The name of the default property.</p>
0104:             */
0105:            protected String defaultPropertyName;
0106:
0107:            /**
0108:             * <p>The 16x16 color icon.</p>
0109:             */
0110:            protected String iconFileName_C16;
0111:
0112:            /**
0113:             * <p>The 32x32 color icon.</p>
0114:             */
0115:            protected String iconFileName_C32;
0116:
0117:            /**
0118:             * <p>The 16x16 monochrome icon.</p>
0119:             */
0120:            protected String iconFileName_M16;
0121:
0122:            /**
0123:             * <p>The 32x32 monochrome icon.</p>
0124:             */
0125:            protected String iconFileName_M32;
0126:
0127:            /**
0128:             * <p>The cached property descriptors.</p>
0129:             */
0130:            protected PropertyDescriptor[] propDescriptors;
0131:
0132:            /**
0133:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
0134:             */
0135:            public BeanDescriptor getBeanDescriptor() {
0136:
0137:                if (beanDescriptor != null) {
0138:                    return beanDescriptor;
0139:                }
0140:
0141:                beanDescriptor = new BeanDescriptor(beanClass);
0142:                beanDescriptor.setDisplayName(resources
0143:                        .getString("Upload_DisplayName"));
0144:                beanDescriptor.setShortDescription(resources
0145:                        .getString("Upload_Description"));
0146:                beanDescriptor.setExpert(false);
0147:                beanDescriptor.setHidden(false);
0148:                beanDescriptor.setPreferred(false);
0149:                beanDescriptor.setValue(
0150:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
0151:                        getFacetDescriptors());
0152:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
0153:                        "projrave_ui_elements_palette_bh_file_upload");
0154:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155:                        "fileUpload");
0156:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0157:                        Boolean.FALSE);
0158:                beanDescriptor
0159:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
0160:                                "projrave_ui_elements_palette_bh_propsheets_bh_file_upload_props");
0161:                beanDescriptor.setValue(
0162:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163:                        getCategoryDescriptors());
0164:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165:                        "upload");
0166:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0167:                        "ui");
0168:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0169:                        "http://www.sun.com/web/ui");
0170:
0171:                return beanDescriptor;
0172:
0173:            }
0174:
0175:            /**
0176:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0177:             */
0178:            private CategoryDescriptor[] getCategoryDescriptors() {
0179:
0180:                return com.sun.rave.designtime.base.CategoryDescriptors
0181:                        .getDefaultCategoryDescriptors();
0182:
0183:            }
0184:
0185:            /**
0186:             * <p>Return the index of the default property, or
0187:             * -1 if there is no default property.</p>
0188:             */
0189:            public int getDefaultPropertyIndex() {
0190:
0191:                if (defaultPropertyIndex > -2) {
0192:                    return defaultPropertyIndex;
0193:                } else {
0194:                    if (defaultPropertyName == null) {
0195:                        defaultPropertyIndex = -1;
0196:                    } else {
0197:                        PropertyDescriptor pd[] = getPropertyDescriptors();
0198:                        for (int i = 0; i < pd.length; i++) {
0199:                            if (defaultPropertyName.equals(pd[i].getName())) {
0200:                                defaultPropertyIndex = i;
0201:                                break;
0202:                            }
0203:                        }
0204:                    }
0205:                }
0206:                return defaultPropertyIndex;
0207:            }
0208:
0209:            /**
0210:             * <p>The cached facet descriptors.</p>
0211:             */
0212:            protected FacetDescriptor[] facetDescriptors;
0213:
0214:            /**
0215:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0216:             */
0217:            public FacetDescriptor[] getFacetDescriptors() {
0218:
0219:                if (facetDescriptors != null) {
0220:                    return facetDescriptors;
0221:                }
0222:                try {
0223:
0224:                    FacetDescriptor facet_label = new FacetDescriptor("label");
0225:                    facet_label.setDisplayName(resources
0226:                            .getString("Upload_label_DisplayName"));
0227:                    facet_label.setShortDescription(resources
0228:                            .getString("Upload_label_Description"));
0229:
0230:                    FacetDescriptor facet_readOnly = new FacetDescriptor(
0231:                            "readOnly");
0232:                    facet_readOnly.setDisplayName(resources
0233:                            .getString("Upload_readOnly_DisplayName"));
0234:                    facet_readOnly.setShortDescription(resources
0235:                            .getString("Upload_readOnly_Description"));
0236:
0237:                    facetDescriptors = new FacetDescriptor[] { facet_label,
0238:                            facet_readOnly, };
0239:                    return facetDescriptors;
0240:
0241:                } catch (RuntimeException e) {
0242:                    System.out.println(e.getMessage());
0243:                    e.printStackTrace(System.out);
0244:                    throw e;
0245:                }
0246:
0247:            }
0248:
0249:            /**
0250:             * <p>Return the specified image (if any)
0251:             * for this component class.</p>
0252:             */
0253:            public Image getIcon(int kind) {
0254:
0255:                String name;
0256:                switch (kind) {
0257:                case ICON_COLOR_16x16:
0258:                    name = iconFileName_C16;
0259:                    break;
0260:                case ICON_COLOR_32x32:
0261:                    name = iconFileName_C32;
0262:                    break;
0263:                case ICON_MONO_16x16:
0264:                    name = iconFileName_M16;
0265:                    break;
0266:                case ICON_MONO_32x32:
0267:                    name = iconFileName_M32;
0268:                    break;
0269:                default:
0270:                    name = null;
0271:                    break;
0272:                }
0273:                if (name == null) {
0274:                    return null;
0275:                }
0276:
0277:                Image image = loadImage(name + ".png");
0278:                if (image == null) {
0279:                    image = loadImage(name + ".gif");
0280:                }
0281:                return image;
0282:
0283:            }
0284:
0285:            /**
0286:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0287:             */
0288:            private java.lang.Class loadClass(java.lang.String name) {
0289:
0290:                try {
0291:                    return Class.forName(name);
0292:                } catch (ClassNotFoundException e) {
0293:                    throw new RuntimeException(e);
0294:                }
0295:
0296:            }
0297:
0298:            /**
0299:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0300:             */
0301:            public PropertyDescriptor[] getPropertyDescriptors() {
0302:
0303:                if (propDescriptors != null) {
0304:                    return propDescriptors;
0305:                }
0306:                AttributeDescriptor attrib = null;
0307:
0308:                try {
0309:
0310:                    PropertyDescriptor prop_columns = new PropertyDescriptor(
0311:                            "columns", beanClass, "getColumns", "setColumns");
0312:                    prop_columns.setDisplayName(resources
0313:                            .getString("Upload_columns_DisplayName"));
0314:                    prop_columns.setShortDescription(resources
0315:                            .getString("Upload_columns_Description"));
0316:                    prop_columns
0317:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0318:                    prop_columns.setExpert(false);
0319:                    prop_columns.setHidden(false);
0320:                    prop_columns.setPreferred(false);
0321:                    attrib = new AttributeDescriptor("columns", false, "40",
0322:                            true);
0323:                    prop_columns.setValue(
0324:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0325:                            attrib);
0326:                    prop_columns
0327:                            .setValue(
0328:                                    Constants.PropertyDescriptor.CATEGORY,
0329:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0330:                    prop_columns.setValue(
0331:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0332:
0333:                    PropertyDescriptor prop_converter = new PropertyDescriptor(
0334:                            "converter", beanClass, "getConverter",
0335:                            "setConverter");
0336:                    prop_converter.setDisplayName(resources
0337:                            .getString("Upload_converter_DisplayName"));
0338:                    prop_converter.setShortDescription(resources
0339:                            .getString("Upload_converter_Description"));
0340:                    prop_converter.setExpert(false);
0341:                    prop_converter.setHidden(true);
0342:                    prop_converter.setPreferred(false);
0343:                    attrib = new AttributeDescriptor("converter", false, null,
0344:                            true);
0345:                    prop_converter.setValue(
0346:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0347:                            attrib);
0348:                    prop_converter
0349:                            .setValue(
0350:                                    Constants.PropertyDescriptor.CATEGORY,
0351:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0352:
0353:                    PropertyDescriptor prop_maxLength = new PropertyDescriptor(
0354:                            "maxLength", beanClass, "getMaxLength",
0355:                            "setMaxLength");
0356:                    prop_maxLength.setDisplayName(resources
0357:                            .getString("Upload_maxLength_DisplayName"));
0358:                    prop_maxLength.setShortDescription(resources
0359:                            .getString("Upload_maxLength_Description"));
0360:                    prop_maxLength.setExpert(false);
0361:                    prop_maxLength.setHidden(true);
0362:                    prop_maxLength.setPreferred(false);
0363:                    attrib = new AttributeDescriptor("maxLength", false, null,
0364:                            true);
0365:                    prop_maxLength.setValue(
0366:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0367:                            attrib);
0368:                    prop_maxLength
0369:                            .setValue(
0370:                                    Constants.PropertyDescriptor.CATEGORY,
0371:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0372:
0373:                    PropertyDescriptor prop_uploadedFile = new PropertyDescriptor(
0374:                            "uploadedFile", beanClass, "getUploadedFile",
0375:                            "setUploadedFile");
0376:                    prop_uploadedFile.setDisplayName(resources
0377:                            .getString("Upload_uploadedFile_DisplayName"));
0378:                    prop_uploadedFile.setShortDescription(resources
0379:                            .getString("Upload_uploadedFile_Description"));
0380:                    prop_uploadedFile
0381:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0382:                    prop_uploadedFile.setExpert(false);
0383:                    prop_uploadedFile.setHidden(false);
0384:                    prop_uploadedFile.setPreferred(false);
0385:                    attrib = new AttributeDescriptor("uploadedFile", false,
0386:                            null, true);
0387:                    prop_uploadedFile.setValue(
0388:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0389:                            attrib);
0390:                    prop_uploadedFile
0391:                            .setValue(
0392:                                    Constants.PropertyDescriptor.CATEGORY,
0393:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0394:
0395:                    PropertyDescriptor prop_disabled = new PropertyDescriptor(
0396:                            "disabled", beanClass, "isDisabled", "setDisabled");
0397:                    prop_disabled.setDisplayName(resources
0398:                            .getString("Upload_disabled_DisplayName"));
0399:                    prop_disabled.setShortDescription(resources
0400:                            .getString("Upload_disabled_Description"));
0401:                    prop_disabled.setExpert(false);
0402:                    prop_disabled.setHidden(false);
0403:                    prop_disabled.setPreferred(false);
0404:                    attrib = new AttributeDescriptor("disabled", false, null,
0405:                            true);
0406:                    prop_disabled.setValue(
0407:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0408:                            attrib);
0409:                    prop_disabled
0410:                            .setValue(
0411:                                    Constants.PropertyDescriptor.CATEGORY,
0412:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0413:
0414:                    PropertyDescriptor prop_label = new PropertyDescriptor(
0415:                            "label", beanClass, "getLabel", "setLabel");
0416:                    prop_label.setDisplayName(resources
0417:                            .getString("Upload_label_DisplayName"));
0418:                    prop_label.setShortDescription(resources
0419:                            .getString("Upload_label_Description"));
0420:                    prop_label
0421:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0422:                    prop_label.setExpert(false);
0423:                    prop_label.setHidden(false);
0424:                    prop_label.setPreferred(false);
0425:                    attrib = new AttributeDescriptor("label", false, null, true);
0426:                    prop_label.setValue(
0427:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0428:                            attrib);
0429:                    prop_label
0430:                            .setValue(
0431:                                    Constants.PropertyDescriptor.CATEGORY,
0432:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0433:
0434:                    PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0435:                            "labelLevel", beanClass, "getLabelLevel",
0436:                            "setLabelLevel");
0437:                    prop_labelLevel.setDisplayName(resources
0438:                            .getString("Upload_labelLevel_DisplayName"));
0439:                    prop_labelLevel.setShortDescription(resources
0440:                            .getString("Upload_labelLevel_Description"));
0441:                    prop_labelLevel
0442:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0443:                    prop_labelLevel.setExpert(false);
0444:                    prop_labelLevel.setHidden(false);
0445:                    prop_labelLevel.setPreferred(false);
0446:                    attrib = new AttributeDescriptor("labelLevel", false, "2",
0447:                            true);
0448:                    prop_labelLevel.setValue(
0449:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0450:                            attrib);
0451:                    prop_labelLevel
0452:                            .setValue(
0453:                                    Constants.PropertyDescriptor.CATEGORY,
0454:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0455:                    prop_labelLevel
0456:                            .setValue(
0457:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0458:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0459:
0460:                    PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0461:                            "onBlur", beanClass, "getOnBlur", "setOnBlur");
0462:                    prop_onBlur.setDisplayName(resources
0463:                            .getString("Upload_onBlur_DisplayName"));
0464:                    prop_onBlur.setShortDescription(resources
0465:                            .getString("Upload_onBlur_Description"));
0466:                    prop_onBlur
0467:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0468:                    prop_onBlur.setExpert(false);
0469:                    prop_onBlur.setHidden(false);
0470:                    prop_onBlur.setPreferred(false);
0471:                    attrib = new AttributeDescriptor("onBlur", false, null,
0472:                            true);
0473:                    prop_onBlur.setValue(
0474:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0475:                            attrib);
0476:                    prop_onBlur
0477:                            .setValue(
0478:                                    Constants.PropertyDescriptor.CATEGORY,
0479:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0480:
0481:                    PropertyDescriptor prop_onChange = new PropertyDescriptor(
0482:                            "onChange", beanClass, "getOnChange", "setOnChange");
0483:                    prop_onChange.setDisplayName(resources
0484:                            .getString("Upload_onChange_DisplayName"));
0485:                    prop_onChange.setShortDescription(resources
0486:                            .getString("Upload_onChange_Description"));
0487:                    prop_onChange
0488:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0489:                    prop_onChange.setExpert(false);
0490:                    prop_onChange.setHidden(false);
0491:                    prop_onChange.setPreferred(false);
0492:                    attrib = new AttributeDescriptor("onChange", false, null,
0493:                            true);
0494:                    prop_onChange.setValue(
0495:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0496:                            attrib);
0497:                    prop_onChange
0498:                            .setValue(
0499:                                    Constants.PropertyDescriptor.CATEGORY,
0500:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0501:
0502:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
0503:                            "onClick", beanClass, "getOnClick", "setOnClick");
0504:                    prop_onClick.setDisplayName(resources
0505:                            .getString("Upload_onClick_DisplayName"));
0506:                    prop_onClick.setShortDescription(resources
0507:                            .getString("Upload_onClick_Description"));
0508:                    prop_onClick
0509:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0510:                    prop_onClick.setExpert(false);
0511:                    prop_onClick.setHidden(false);
0512:                    prop_onClick.setPreferred(false);
0513:                    attrib = new AttributeDescriptor("onClick", false, null,
0514:                            true);
0515:                    prop_onClick.setValue(
0516:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0517:                            attrib);
0518:                    prop_onClick
0519:                            .setValue(
0520:                                    Constants.PropertyDescriptor.CATEGORY,
0521:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0522:
0523:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0524:                            "onDblClick", beanClass, "getOnDblClick",
0525:                            "setOnDblClick");
0526:                    prop_onDblClick.setDisplayName(resources
0527:                            .getString("Upload_onDblClick_DisplayName"));
0528:                    prop_onDblClick.setShortDescription(resources
0529:                            .getString("Upload_onDblClick_Description"));
0530:                    prop_onDblClick
0531:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0532:                    prop_onDblClick.setExpert(false);
0533:                    prop_onDblClick.setHidden(false);
0534:                    prop_onDblClick.setPreferred(false);
0535:                    attrib = new AttributeDescriptor("onDblClick", false, null,
0536:                            true);
0537:                    prop_onDblClick.setValue(
0538:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0539:                            attrib);
0540:                    prop_onDblClick
0541:                            .setValue(
0542:                                    Constants.PropertyDescriptor.CATEGORY,
0543:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0544:
0545:                    PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0546:                            "onFocus", beanClass, "getOnFocus", "setOnFocus");
0547:                    prop_onFocus.setDisplayName(resources
0548:                            .getString("Upload_onFocus_DisplayName"));
0549:                    prop_onFocus.setShortDescription(resources
0550:                            .getString("Upload_onFocus_Description"));
0551:                    prop_onFocus
0552:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0553:                    prop_onFocus.setExpert(false);
0554:                    prop_onFocus.setHidden(false);
0555:                    prop_onFocus.setPreferred(false);
0556:                    attrib = new AttributeDescriptor("onFocus", false, null,
0557:                            true);
0558:                    prop_onFocus.setValue(
0559:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0560:                            attrib);
0561:                    prop_onFocus
0562:                            .setValue(
0563:                                    Constants.PropertyDescriptor.CATEGORY,
0564:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0565:
0566:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0567:                            "onKeyDown", beanClass, "getOnKeyDown",
0568:                            "setOnKeyDown");
0569:                    prop_onKeyDown.setDisplayName(resources
0570:                            .getString("Upload_onKeyDown_DisplayName"));
0571:                    prop_onKeyDown.setShortDescription(resources
0572:                            .getString("Upload_onKeyDown_Description"));
0573:                    prop_onKeyDown
0574:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0575:                    prop_onKeyDown.setExpert(false);
0576:                    prop_onKeyDown.setHidden(false);
0577:                    prop_onKeyDown.setPreferred(false);
0578:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
0579:                            true);
0580:                    prop_onKeyDown.setValue(
0581:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0582:                            attrib);
0583:                    prop_onKeyDown
0584:                            .setValue(
0585:                                    Constants.PropertyDescriptor.CATEGORY,
0586:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0587:
0588:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0589:                            "onKeyPress", beanClass, "getOnKeyPress",
0590:                            "setOnKeyPress");
0591:                    prop_onKeyPress.setDisplayName(resources
0592:                            .getString("Upload_onKeyPress_DisplayName"));
0593:                    prop_onKeyPress.setShortDescription(resources
0594:                            .getString("Upload_onKeyPress_Description"));
0595:                    prop_onKeyPress
0596:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0597:                    prop_onKeyPress.setExpert(false);
0598:                    prop_onKeyPress.setHidden(false);
0599:                    prop_onKeyPress.setPreferred(false);
0600:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
0601:                            true);
0602:                    prop_onKeyPress.setValue(
0603:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0604:                            attrib);
0605:                    prop_onKeyPress
0606:                            .setValue(
0607:                                    Constants.PropertyDescriptor.CATEGORY,
0608:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0609:
0610:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0611:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0612:                    prop_onKeyUp.setDisplayName(resources
0613:                            .getString("Upload_onKeyUp_DisplayName"));
0614:                    prop_onKeyUp.setShortDescription(resources
0615:                            .getString("Upload_onKeyUp_Description"));
0616:                    prop_onKeyUp
0617:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0618:                    prop_onKeyUp.setExpert(false);
0619:                    prop_onKeyUp.setHidden(false);
0620:                    prop_onKeyUp.setPreferred(false);
0621:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
0622:                            true);
0623:                    prop_onKeyUp.setValue(
0624:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0625:                            attrib);
0626:                    prop_onKeyUp
0627:                            .setValue(
0628:                                    Constants.PropertyDescriptor.CATEGORY,
0629:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0630:
0631:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0632:                            "onMouseDown", beanClass, "getOnMouseDown",
0633:                            "setOnMouseDown");
0634:                    prop_onMouseDown.setDisplayName(resources
0635:                            .getString("Upload_onMouseDown_DisplayName"));
0636:                    prop_onMouseDown.setShortDescription(resources
0637:                            .getString("Upload_onMouseDown_Description"));
0638:                    prop_onMouseDown
0639:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0640:                    prop_onMouseDown.setExpert(false);
0641:                    prop_onMouseDown.setHidden(false);
0642:                    prop_onMouseDown.setPreferred(false);
0643:                    attrib = new AttributeDescriptor("onMouseDown", false,
0644:                            null, true);
0645:                    prop_onMouseDown.setValue(
0646:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0647:                            attrib);
0648:                    prop_onMouseDown
0649:                            .setValue(
0650:                                    Constants.PropertyDescriptor.CATEGORY,
0651:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0652:
0653:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0654:                            "onMouseMove", beanClass, "getOnMouseMove",
0655:                            "setOnMouseMove");
0656:                    prop_onMouseMove.setDisplayName(resources
0657:                            .getString("Upload_onMouseMove_DisplayName"));
0658:                    prop_onMouseMove.setShortDescription(resources
0659:                            .getString("Upload_onMouseMove_Description"));
0660:                    prop_onMouseMove
0661:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0662:                    prop_onMouseMove.setExpert(false);
0663:                    prop_onMouseMove.setHidden(false);
0664:                    prop_onMouseMove.setPreferred(false);
0665:                    attrib = new AttributeDescriptor("onMouseMove", false,
0666:                            null, true);
0667:                    prop_onMouseMove.setValue(
0668:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0669:                            attrib);
0670:                    prop_onMouseMove
0671:                            .setValue(
0672:                                    Constants.PropertyDescriptor.CATEGORY,
0673:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0674:
0675:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0676:                            "onMouseOut", beanClass, "getOnMouseOut",
0677:                            "setOnMouseOut");
0678:                    prop_onMouseOut.setDisplayName(resources
0679:                            .getString("Upload_onMouseOut_DisplayName"));
0680:                    prop_onMouseOut.setShortDescription(resources
0681:                            .getString("Upload_onMouseOut_Description"));
0682:                    prop_onMouseOut
0683:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0684:                    prop_onMouseOut.setExpert(false);
0685:                    prop_onMouseOut.setHidden(false);
0686:                    prop_onMouseOut.setPreferred(false);
0687:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
0688:                            true);
0689:                    prop_onMouseOut.setValue(
0690:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0691:                            attrib);
0692:                    prop_onMouseOut
0693:                            .setValue(
0694:                                    Constants.PropertyDescriptor.CATEGORY,
0695:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0696:
0697:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0698:                            "onMouseOver", beanClass, "getOnMouseOver",
0699:                            "setOnMouseOver");
0700:                    prop_onMouseOver.setDisplayName(resources
0701:                            .getString("Upload_onMouseOver_DisplayName"));
0702:                    prop_onMouseOver.setShortDescription(resources
0703:                            .getString("Upload_onMouseOver_Description"));
0704:                    prop_onMouseOver
0705:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0706:                    prop_onMouseOver.setExpert(false);
0707:                    prop_onMouseOver.setHidden(false);
0708:                    prop_onMouseOver.setPreferred(false);
0709:                    attrib = new AttributeDescriptor("onMouseOver", false,
0710:                            null, true);
0711:                    prop_onMouseOver.setValue(
0712:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0713:                            attrib);
0714:                    prop_onMouseOver
0715:                            .setValue(
0716:                                    Constants.PropertyDescriptor.CATEGORY,
0717:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0718:
0719:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0720:                            "onMouseUp", beanClass, "getOnMouseUp",
0721:                            "setOnMouseUp");
0722:                    prop_onMouseUp.setDisplayName(resources
0723:                            .getString("Upload_onMouseUp_DisplayName"));
0724:                    prop_onMouseUp.setShortDescription(resources
0725:                            .getString("Upload_onMouseUp_Description"));
0726:                    prop_onMouseUp
0727:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0728:                    prop_onMouseUp.setExpert(false);
0729:                    prop_onMouseUp.setHidden(false);
0730:                    prop_onMouseUp.setPreferred(false);
0731:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
0732:                            true);
0733:                    prop_onMouseUp.setValue(
0734:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0735:                            attrib);
0736:                    prop_onMouseUp
0737:                            .setValue(
0738:                                    Constants.PropertyDescriptor.CATEGORY,
0739:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0740:
0741:                    PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0742:                            "onSelect", beanClass, "getOnSelect", "setOnSelect");
0743:                    prop_onSelect.setDisplayName(resources
0744:                            .getString("Upload_onSelect_DisplayName"));
0745:                    prop_onSelect.setShortDescription(resources
0746:                            .getString("Upload_onSelect_Description"));
0747:                    prop_onSelect
0748:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0749:                    prop_onSelect.setExpert(false);
0750:                    prop_onSelect.setHidden(false);
0751:                    prop_onSelect.setPreferred(false);
0752:                    attrib = new AttributeDescriptor("onSelect", false, null,
0753:                            true);
0754:                    prop_onSelect.setValue(
0755:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0756:                            attrib);
0757:                    prop_onSelect
0758:                            .setValue(
0759:                                    Constants.PropertyDescriptor.CATEGORY,
0760:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0761:
0762:                    PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0763:                            "readOnly", beanClass, "isReadOnly", "setReadOnly");
0764:                    prop_readOnly.setDisplayName(resources
0765:                            .getString("Upload_readOnly_DisplayName"));
0766:                    prop_readOnly.setShortDescription(resources
0767:                            .getString("Upload_readOnly_Description"));
0768:                    prop_readOnly.setExpert(false);
0769:                    prop_readOnly.setHidden(false);
0770:                    prop_readOnly.setPreferred(false);
0771:                    attrib = new AttributeDescriptor("readOnly", false, null,
0772:                            true);
0773:                    prop_readOnly.setValue(
0774:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0775:                            attrib);
0776:                    prop_readOnly
0777:                            .setValue(
0778:                                    Constants.PropertyDescriptor.CATEGORY,
0779:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0780:
0781:                    PropertyDescriptor prop_style = new PropertyDescriptor(
0782:                            "style", beanClass, "getStyle", "setStyle");
0783:                    prop_style.setDisplayName(resources
0784:                            .getString("Upload_style_DisplayName"));
0785:                    prop_style.setShortDescription(resources
0786:                            .getString("Upload_style_Description"));
0787:                    prop_style
0788:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0789:                    prop_style.setExpert(false);
0790:                    prop_style.setHidden(false);
0791:                    prop_style.setPreferred(false);
0792:                    attrib = new AttributeDescriptor("style", false, null, true);
0793:                    prop_style.setValue(
0794:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0795:                            attrib);
0796:                    prop_style
0797:                            .setValue(
0798:                                    Constants.PropertyDescriptor.CATEGORY,
0799:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0800:
0801:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0802:                            "styleClass", beanClass, "getStyleClass",
0803:                            "setStyleClass");
0804:                    prop_styleClass.setDisplayName(resources
0805:                            .getString("Upload_styleClass_DisplayName"));
0806:                    prop_styleClass.setShortDescription(resources
0807:                            .getString("Upload_styleClass_Description"));
0808:                    prop_styleClass
0809:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0810:                    prop_styleClass.setExpert(false);
0811:                    prop_styleClass.setHidden(false);
0812:                    prop_styleClass.setPreferred(false);
0813:                    attrib = new AttributeDescriptor("styleClass", false, null,
0814:                            true);
0815:                    prop_styleClass.setValue(
0816:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0817:                            attrib);
0818:                    prop_styleClass
0819:                            .setValue(
0820:                                    Constants.PropertyDescriptor.CATEGORY,
0821:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0822:
0823:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0824:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0825:                    prop_tabIndex.setDisplayName(resources
0826:                            .getString("Upload_tabIndex_DisplayName"));
0827:                    prop_tabIndex.setShortDescription(resources
0828:                            .getString("Upload_tabIndex_Description"));
0829:                    prop_tabIndex
0830:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0831:                    prop_tabIndex.setExpert(false);
0832:                    prop_tabIndex.setHidden(false);
0833:                    prop_tabIndex.setPreferred(false);
0834:                    attrib = new AttributeDescriptor("tabIndex", false, null,
0835:                            true);
0836:                    prop_tabIndex.setValue(
0837:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0838:                            attrib);
0839:                    prop_tabIndex
0840:                            .setValue(
0841:                                    Constants.PropertyDescriptor.CATEGORY,
0842:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0843:                    prop_tabIndex.setValue(
0844:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0845:
0846:                    PropertyDescriptor prop_text = new PropertyDescriptor(
0847:                            "text", beanClass, "getText", "setText");
0848:                    prop_text.setDisplayName(resources
0849:                            .getString("Upload_text_DisplayName"));
0850:                    prop_text.setShortDescription(resources
0851:                            .getString("Upload_text_Description"));
0852:                    prop_text
0853:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0854:                    prop_text.setExpert(false);
0855:                    prop_text.setHidden(true);
0856:                    prop_text.setPreferred(false);
0857:                    prop_text
0858:                            .setValue(
0859:                                    Constants.PropertyDescriptor.CATEGORY,
0860:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0861:
0862:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0863:                            "toolTip", beanClass, "getToolTip", "setToolTip");
0864:                    prop_toolTip.setDisplayName(resources
0865:                            .getString("Upload_toolTip_DisplayName"));
0866:                    prop_toolTip.setShortDescription(resources
0867:                            .getString("Upload_toolTip_Description"));
0868:                    prop_toolTip
0869:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0870:                    prop_toolTip.setExpert(false);
0871:                    prop_toolTip.setHidden(false);
0872:                    prop_toolTip.setPreferred(false);
0873:                    attrib = new AttributeDescriptor("toolTip", false, null,
0874:                            true);
0875:                    prop_toolTip.setValue(
0876:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0877:                            attrib);
0878:                    prop_toolTip
0879:                            .setValue(
0880:                                    Constants.PropertyDescriptor.CATEGORY,
0881:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0882:
0883:                    PropertyDescriptor prop_trim = new PropertyDescriptor(
0884:                            "trim", beanClass, "isTrim", "setTrim");
0885:                    prop_trim.setDisplayName(resources
0886:                            .getString("Upload_trim_DisplayName"));
0887:                    prop_trim.setShortDescription(resources
0888:                            .getString("Upload_trim_Description"));
0889:                    prop_trim.setExpert(false);
0890:                    prop_trim.setHidden(true);
0891:                    prop_trim.setPreferred(false);
0892:                    prop_trim
0893:                            .setValue(
0894:                                    Constants.PropertyDescriptor.CATEGORY,
0895:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0896:
0897:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
0898:                            "visible", beanClass, "isVisible", "setVisible");
0899:                    prop_visible.setDisplayName(resources
0900:                            .getString("Upload_visible_DisplayName"));
0901:                    prop_visible.setShortDescription(resources
0902:                            .getString("Upload_visible_Description"));
0903:                    prop_visible.setExpert(false);
0904:                    prop_visible.setHidden(false);
0905:                    prop_visible.setPreferred(false);
0906:                    attrib = new AttributeDescriptor("visible", false, "true",
0907:                            true);
0908:                    prop_visible.setValue(
0909:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0910:                            attrib);
0911:                    prop_visible
0912:                            .setValue(
0913:                                    Constants.PropertyDescriptor.CATEGORY,
0914:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0915:
0916:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
0917:                            "attributes", beanClass, "getAttributes", null);
0918:                    prop_attributes.setDisplayName(resources
0919:                            .getString("Upload_attributes_DisplayName"));
0920:                    prop_attributes.setShortDescription(resources
0921:                            .getString("Upload_attributes_Description"));
0922:                    prop_attributes.setExpert(false);
0923:                    prop_attributes.setHidden(true);
0924:                    prop_attributes.setPreferred(false);
0925:                    prop_attributes
0926:                            .setValue(
0927:                                    Constants.PropertyDescriptor.CATEGORY,
0928:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0929:
0930:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
0931:                            "childCount", beanClass, "getChildCount", null);
0932:                    prop_childCount.setDisplayName(resources
0933:                            .getString("Upload_childCount_DisplayName"));
0934:                    prop_childCount.setShortDescription(resources
0935:                            .getString("Upload_childCount_Description"));
0936:                    prop_childCount.setExpert(false);
0937:                    prop_childCount.setHidden(true);
0938:                    prop_childCount.setPreferred(false);
0939:                    prop_childCount
0940:                            .setValue(
0941:                                    Constants.PropertyDescriptor.CATEGORY,
0942:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0943:
0944:                    PropertyDescriptor prop_children = new PropertyDescriptor(
0945:                            "children", beanClass, "getChildren", null);
0946:                    prop_children.setDisplayName(resources
0947:                            .getString("Upload_children_DisplayName"));
0948:                    prop_children.setShortDescription(resources
0949:                            .getString("Upload_children_Description"));
0950:                    prop_children.setExpert(false);
0951:                    prop_children.setHidden(true);
0952:                    prop_children.setPreferred(false);
0953:                    prop_children
0954:                            .setValue(
0955:                                    Constants.PropertyDescriptor.CATEGORY,
0956:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0957:
0958:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
0959:                            "facets", beanClass, "getFacets", null);
0960:                    prop_facets.setDisplayName(resources
0961:                            .getString("Upload_facets_DisplayName"));
0962:                    prop_facets.setShortDescription(resources
0963:                            .getString("Upload_facets_Description"));
0964:                    prop_facets.setExpert(false);
0965:                    prop_facets.setHidden(true);
0966:                    prop_facets.setPreferred(false);
0967:                    prop_facets
0968:                            .setValue(
0969:                                    Constants.PropertyDescriptor.CATEGORY,
0970:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0971:
0972:                    PropertyDescriptor prop_family = new PropertyDescriptor(
0973:                            "family", beanClass, "getFamily", null);
0974:                    prop_family.setDisplayName(resources
0975:                            .getString("Upload_family_DisplayName"));
0976:                    prop_family.setShortDescription(resources
0977:                            .getString("Upload_family_Description"));
0978:                    prop_family.setExpert(false);
0979:                    prop_family.setHidden(true);
0980:                    prop_family.setPreferred(false);
0981:                    prop_family
0982:                            .setValue(
0983:                                    Constants.PropertyDescriptor.CATEGORY,
0984:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0985:
0986:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
0987:                            beanClass, "getId", "setId");
0988:                    prop_id.setDisplayName(resources
0989:                            .getString("Upload_id_DisplayName"));
0990:                    prop_id.setShortDescription(resources
0991:                            .getString("Upload_id_Description"));
0992:                    prop_id.setExpert(false);
0993:                    prop_id.setHidden(true);
0994:                    prop_id.setPreferred(false);
0995:                    attrib = new AttributeDescriptor("id", false, null, true);
0996:                    prop_id.setValue(
0997:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0998:                            attrib);
0999:                    prop_id
1000:                            .setValue(
1001:                                    Constants.PropertyDescriptor.CATEGORY,
1002:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1003:
1004:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
1005:                            "immediate", beanClass, "isImmediate",
1006:                            "setImmediate");
1007:                    prop_immediate.setDisplayName(resources
1008:                            .getString("Upload_immediate_DisplayName"));
1009:                    prop_immediate.setShortDescription(resources
1010:                            .getString("Upload_immediate_Description"));
1011:                    prop_immediate.setExpert(false);
1012:                    prop_immediate.setHidden(false);
1013:                    prop_immediate.setPreferred(false);
1014:                    attrib = new AttributeDescriptor("immediate", false, null,
1015:                            true);
1016:                    prop_immediate.setValue(
1017:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1018:                            attrib);
1019:                    prop_immediate
1020:                            .setValue(
1021:                                    Constants.PropertyDescriptor.CATEGORY,
1022:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1023:
1024:                    PropertyDescriptor prop_localValue = new PropertyDescriptor(
1025:                            "localValue", beanClass, "getLocalValue", null);
1026:                    prop_localValue.setDisplayName(resources
1027:                            .getString("Upload_localValue_DisplayName"));
1028:                    prop_localValue.setShortDescription(resources
1029:                            .getString("Upload_localValue_Description"));
1030:                    prop_localValue.setExpert(false);
1031:                    prop_localValue.setHidden(true);
1032:                    prop_localValue.setPreferred(false);
1033:                    prop_localValue
1034:                            .setValue(
1035:                                    Constants.PropertyDescriptor.CATEGORY,
1036:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1037:
1038:                    PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1039:                            "localValueSet", beanClass, "isLocalValueSet",
1040:                            "setLocalValueSet");
1041:                    prop_localValueSet.setDisplayName(resources
1042:                            .getString("Upload_localValueSet_DisplayName"));
1043:                    prop_localValueSet.setShortDescription(resources
1044:                            .getString("Upload_localValueSet_Description"));
1045:                    prop_localValueSet.setExpert(false);
1046:                    prop_localValueSet.setHidden(true);
1047:                    prop_localValueSet.setPreferred(false);
1048:                    prop_localValueSet
1049:                            .setValue(
1050:                                    Constants.PropertyDescriptor.CATEGORY,
1051:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1052:
1053:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
1054:                            "parent", beanClass, "getParent", null);
1055:                    prop_parent.setDisplayName(resources
1056:                            .getString("Upload_parent_DisplayName"));
1057:                    prop_parent.setShortDescription(resources
1058:                            .getString("Upload_parent_Description"));
1059:                    prop_parent.setExpert(false);
1060:                    prop_parent.setHidden(true);
1061:                    prop_parent.setPreferred(false);
1062:                    prop_parent
1063:                            .setValue(
1064:                                    Constants.PropertyDescriptor.CATEGORY,
1065:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1066:
1067:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
1068:                            "rendered", beanClass, "isRendered", "setRendered");
1069:                    prop_rendered.setDisplayName(resources
1070:                            .getString("Upload_rendered_DisplayName"));
1071:                    prop_rendered.setShortDescription(resources
1072:                            .getString("Upload_rendered_Description"));
1073:                    prop_rendered.setExpert(false);
1074:                    prop_rendered.setHidden(false);
1075:                    prop_rendered.setPreferred(false);
1076:                    attrib = new AttributeDescriptor("rendered", false, null,
1077:                            true);
1078:                    prop_rendered.setValue(
1079:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1080:                            attrib);
1081:                    prop_rendered
1082:                            .setValue(
1083:                                    Constants.PropertyDescriptor.CATEGORY,
1084:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1085:
1086:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1087:                            "rendererType", beanClass, "getRendererType",
1088:                            "setRendererType");
1089:                    prop_rendererType.setDisplayName(resources
1090:                            .getString("Upload_rendererType_DisplayName"));
1091:                    prop_rendererType.setShortDescription(resources
1092:                            .getString("Upload_rendererType_Description"));
1093:                    prop_rendererType.setExpert(false);
1094:                    prop_rendererType.setHidden(true);
1095:                    prop_rendererType.setPreferred(false);
1096:                    prop_rendererType
1097:                            .setValue(
1098:                                    Constants.PropertyDescriptor.CATEGORY,
1099:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1100:
1101:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1102:                            "rendersChildren", beanClass, "getRendersChildren",
1103:                            null);
1104:                    prop_rendersChildren.setDisplayName(resources
1105:                            .getString("Upload_rendersChildren_DisplayName"));
1106:                    prop_rendersChildren.setShortDescription(resources
1107:                            .getString("Upload_rendersChildren_Description"));
1108:                    prop_rendersChildren.setExpert(false);
1109:                    prop_rendersChildren.setHidden(true);
1110:                    prop_rendersChildren.setPreferred(false);
1111:                    prop_rendersChildren
1112:                            .setValue(
1113:                                    Constants.PropertyDescriptor.CATEGORY,
1114:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1115:
1116:                    PropertyDescriptor prop_required = new PropertyDescriptor(
1117:                            "required", beanClass, "isRequired", "setRequired");
1118:                    prop_required.setDisplayName(resources
1119:                            .getString("Upload_required_DisplayName"));
1120:                    prop_required.setShortDescription(resources
1121:                            .getString("Upload_required_Description"));
1122:                    prop_required.setExpert(false);
1123:                    prop_required.setHidden(false);
1124:                    prop_required.setPreferred(false);
1125:                    attrib = new AttributeDescriptor("required", false, null,
1126:                            true);
1127:                    prop_required.setValue(
1128:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1129:                            attrib);
1130:                    prop_required
1131:                            .setValue(
1132:                                    Constants.PropertyDescriptor.CATEGORY,
1133:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1134:
1135:                    PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1136:                            "submittedValue", beanClass, "getSubmittedValue",
1137:                            "setSubmittedValue");
1138:                    prop_submittedValue.setDisplayName(resources
1139:                            .getString("Upload_submittedValue_DisplayName"));
1140:                    prop_submittedValue.setShortDescription(resources
1141:                            .getString("Upload_submittedValue_Description"));
1142:                    prop_submittedValue.setExpert(false);
1143:                    prop_submittedValue.setHidden(true);
1144:                    prop_submittedValue.setPreferred(false);
1145:                    prop_submittedValue
1146:                            .setValue(
1147:                                    Constants.PropertyDescriptor.CATEGORY,
1148:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1149:
1150:                    PropertyDescriptor prop_validator = new PropertyDescriptor(
1151:                            "validator", beanClass, "getValidator",
1152:                            "setValidator");
1153:                    prop_validator.setDisplayName(resources
1154:                            .getString("Upload_validator_DisplayName"));
1155:                    prop_validator.setShortDescription(resources
1156:                            .getString("Upload_validator_Description"));
1157:                    prop_validator
1158:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1159:                    prop_validator.setExpert(false);
1160:                    prop_validator.setHidden(false);
1161:                    prop_validator.setPreferred(false);
1162:                    attrib = new AttributeDescriptor("validator", false, null,
1163:                            true);
1164:                    prop_validator.setValue(
1165:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1166:                            attrib);
1167:                    prop_validator
1168:                            .setValue(
1169:                                    Constants.PropertyDescriptor.CATEGORY,
1170:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1171:
1172:                    PropertyDescriptor prop_value = new PropertyDescriptor(
1173:                            "value", beanClass, "getValue", "setValue");
1174:                    prop_value.setDisplayName(resources
1175:                            .getString("Upload_value_DisplayName"));
1176:                    prop_value.setShortDescription(resources
1177:                            .getString("Upload_value_Description"));
1178:                    prop_value.setExpert(false);
1179:                    prop_value.setHidden(true);
1180:                    prop_value.setPreferred(false);
1181:                    prop_value
1182:                            .setValue(
1183:                                    Constants.PropertyDescriptor.CATEGORY,
1184:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1185:
1186:                    PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1187:                            "valueChangeListener", beanClass,
1188:                            "getValueChangeListener", "setValueChangeListener");
1189:                    prop_valueChangeListener
1190:                            .setDisplayName(resources
1191:                                    .getString("Upload_valueChangeListener_DisplayName"));
1192:                    prop_valueChangeListener
1193:                            .setShortDescription(resources
1194:                                    .getString("Upload_valueChangeListener_Description"));
1195:                    prop_valueChangeListener
1196:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1197:                    prop_valueChangeListener.setExpert(false);
1198:                    prop_valueChangeListener.setHidden(false);
1199:                    prop_valueChangeListener.setPreferred(false);
1200:                    attrib = new AttributeDescriptor("valueChangeListener",
1201:                            false, null, true);
1202:                    prop_valueChangeListener.setValue(
1203:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1204:                            attrib);
1205:                    prop_valueChangeListener
1206:                            .setValue(
1207:                                    Constants.PropertyDescriptor.CATEGORY,
1208:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1209:
1210:                    propDescriptors = new PropertyDescriptor[] {
1211:                            prop_attributes, prop_childCount, prop_children,
1212:                            prop_columns, prop_converter, prop_disabled,
1213:                            prop_facets, prop_family, prop_id, prop_immediate,
1214:                            prop_label, prop_labelLevel, prop_localValue,
1215:                            prop_localValueSet, prop_maxLength, prop_onBlur,
1216:                            prop_onChange, prop_onClick, prop_onDblClick,
1217:                            prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1218:                            prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1219:                            prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1220:                            prop_onSelect, prop_parent, prop_readOnly,
1221:                            prop_rendered, prop_rendererType,
1222:                            prop_rendersChildren, prop_required, prop_style,
1223:                            prop_styleClass, prop_submittedValue,
1224:                            prop_tabIndex, prop_text, prop_toolTip, prop_trim,
1225:                            prop_uploadedFile, prop_validator, prop_value,
1226:                            prop_valueChangeListener, prop_visible, };
1227:                    return propDescriptors;
1228:
1229:                } catch (IntrospectionException e) {
1230:                    e.printStackTrace();
1231:                    return null;
1232:                }
1233:
1234:            }
1235:
1236:        }
1237:        //GEN-END:BeanInfo
www__.___ja_v__a_2_s___._co_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.