Source Code Cross Referenced for CalendarBeanInfoBase.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 CalendarBeanInfoBase 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(), CalendarBeanInfoBase.class
0071:                                    .getClassLoader());
0072:
0073:            /**
0074:             * <p>Construct a new <code>CalendarBeanInfoBase</code>.</p>
0075:             */
0076:            public CalendarBeanInfoBase() {
0077:
0078:                beanClass = com.sun.rave.web.ui.component.Calendar.class;
0079:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Calendar_C16";
0080:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Calendar_C32";
0081:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Calendar_M16";
0082:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Calendar_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("Calendar_DisplayName"));
0143:                beanDescriptor.setShortDescription(resources
0144:                        .getString("Calendar_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_calendar");
0153:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0154:                        "calendar");
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_calendar_props");
0160:                beanDescriptor.setValue(
0161:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0162:                        getCategoryDescriptors());
0163:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0164:                        "calendar");
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:                try {
0222:
0223:                    FacetDescriptor facet_label = new FacetDescriptor("label");
0224:                    facet_label.setDisplayName(resources
0225:                            .getString("Calendar_label_DisplayName"));
0226:                    facet_label.setShortDescription(resources
0227:                            .getString("Calendar_label_Description"));
0228:
0229:                    FacetDescriptor facet_readOnly = new FacetDescriptor(
0230:                            "readOnly");
0231:                    facet_readOnly.setDisplayName(resources
0232:                            .getString("Calendar_readOnly_DisplayName"));
0233:                    facet_readOnly.setShortDescription(resources
0234:                            .getString("Calendar_readOnly_Description"));
0235:
0236:                    facetDescriptors = new FacetDescriptor[] { facet_label,
0237:                            facet_readOnly, };
0238:                    return facetDescriptors;
0239:
0240:                } catch (RuntimeException e) {
0241:                    System.out.println(e.getMessage());
0242:                    e.printStackTrace(System.out);
0243:                    throw e;
0244:                }
0245:
0246:            }
0247:
0248:            /**
0249:             * <p>Return the specified image (if any)
0250:             * for this component class.</p>
0251:             */
0252:            public Image getIcon(int kind) {
0253:
0254:                String name;
0255:                switch (kind) {
0256:                case ICON_COLOR_16x16:
0257:                    name = iconFileName_C16;
0258:                    break;
0259:                case ICON_COLOR_32x32:
0260:                    name = iconFileName_C32;
0261:                    break;
0262:                case ICON_MONO_16x16:
0263:                    name = iconFileName_M16;
0264:                    break;
0265:                case ICON_MONO_32x32:
0266:                    name = iconFileName_M32;
0267:                    break;
0268:                default:
0269:                    name = null;
0270:                    break;
0271:                }
0272:                if (name == null) {
0273:                    return null;
0274:                }
0275:
0276:                Image image = loadImage(name + ".png");
0277:                if (image == null) {
0278:                    image = loadImage(name + ".gif");
0279:                }
0280:                return image;
0281:
0282:            }
0283:
0284:            /**
0285:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0286:             */
0287:            private java.lang.Class loadClass(java.lang.String name) {
0288:
0289:                try {
0290:                    return Class.forName(name);
0291:                } catch (ClassNotFoundException e) {
0292:                    throw new RuntimeException(e);
0293:                }
0294:
0295:            }
0296:
0297:            /**
0298:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0299:             */
0300:            public PropertyDescriptor[] getPropertyDescriptors() {
0301:
0302:                if (propDescriptors != null) {
0303:                    return propDescriptors;
0304:                }
0305:                AttributeDescriptor attrib = null;
0306:
0307:                try {
0308:
0309:                    PropertyDescriptor prop_converter = new PropertyDescriptor(
0310:                            "converter", beanClass, "getConverter",
0311:                            "setConverter");
0312:                    prop_converter.setDisplayName(resources
0313:                            .getString("Calendar_converter_DisplayName"));
0314:                    prop_converter.setShortDescription(resources
0315:                            .getString("Calendar_converter_Description"));
0316:                    prop_converter.setExpert(false);
0317:                    prop_converter.setHidden(true);
0318:                    prop_converter.setPreferred(false);
0319:                    attrib = new AttributeDescriptor("converter", false, null,
0320:                            true);
0321:                    prop_converter.setValue(
0322:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0323:                            attrib);
0324:                    prop_converter
0325:                            .setValue(
0326:                                    Constants.PropertyDescriptor.CATEGORY,
0327:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0328:
0329:                    PropertyDescriptor prop_dateFormatPattern = new PropertyDescriptor(
0330:                            "dateFormatPattern", beanClass,
0331:                            "getDateFormatPattern", "setDateFormatPattern");
0332:                    prop_dateFormatPattern
0333:                            .setDisplayName(resources
0334:                                    .getString("Calendar_dateFormatPattern_DisplayName"));
0335:                    prop_dateFormatPattern
0336:                            .setShortDescription(resources
0337:                                    .getString("Calendar_dateFormatPattern_Description"));
0338:                    prop_dateFormatPattern
0339:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0340:                    prop_dateFormatPattern.setExpert(false);
0341:                    prop_dateFormatPattern.setHidden(false);
0342:                    prop_dateFormatPattern.setPreferred(false);
0343:                    attrib = new AttributeDescriptor("dateFormatPattern",
0344:                            false, null, true);
0345:                    prop_dateFormatPattern.setValue(
0346:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0347:                            attrib);
0348:                    prop_dateFormatPattern
0349:                            .setValue(
0350:                                    Constants.PropertyDescriptor.CATEGORY,
0351:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0352:                    prop_dateFormatPattern
0353:                            .setValue(
0354:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0355:                                    com.sun.rave.propertyeditors.domains.DateFormatPatternsDomain.class);
0356:
0357:                    PropertyDescriptor prop_dateFormatPatternHelp = new PropertyDescriptor(
0358:                            "dateFormatPatternHelp", beanClass,
0359:                            "getDateFormatPatternHelp",
0360:                            "setDateFormatPatternHelp");
0361:                    prop_dateFormatPatternHelp
0362:                            .setDisplayName(resources
0363:                                    .getString("Calendar_dateFormatPatternHelp_DisplayName"));
0364:                    prop_dateFormatPatternHelp
0365:                            .setShortDescription(resources
0366:                                    .getString("Calendar_dateFormatPatternHelp_Description"));
0367:                    prop_dateFormatPatternHelp
0368:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0369:                    prop_dateFormatPatternHelp.setExpert(false);
0370:                    prop_dateFormatPatternHelp.setHidden(false);
0371:                    prop_dateFormatPatternHelp.setPreferred(false);
0372:                    attrib = new AttributeDescriptor("dateFormatPatternHelp",
0373:                            false, null, true);
0374:                    prop_dateFormatPatternHelp.setValue(
0375:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0376:                            attrib);
0377:                    prop_dateFormatPatternHelp
0378:                            .setValue(
0379:                                    Constants.PropertyDescriptor.CATEGORY,
0380:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0381:
0382:                    PropertyDescriptor prop_maxDate = new PropertyDescriptor(
0383:                            "maxDate", beanClass, "getMaxDate", "setMaxDate");
0384:                    prop_maxDate.setDisplayName(resources
0385:                            .getString("Calendar_maxDate_DisplayName"));
0386:                    prop_maxDate.setShortDescription(resources
0387:                            .getString("Calendar_maxDate_Description"));
0388:                    prop_maxDate
0389:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0390:                    prop_maxDate.setExpert(false);
0391:                    prop_maxDate.setHidden(false);
0392:                    prop_maxDate.setPreferred(false);
0393:                    attrib = new AttributeDescriptor("maxDate", false, null,
0394:                            true);
0395:                    prop_maxDate.setValue(
0396:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0397:                            attrib);
0398:                    prop_maxDate
0399:                            .setValue(
0400:                                    Constants.PropertyDescriptor.CATEGORY,
0401:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0402:
0403:                    PropertyDescriptor prop_maxLength = new PropertyDescriptor(
0404:                            "maxLength", beanClass, "getMaxLength",
0405:                            "setMaxLength");
0406:                    prop_maxLength.setDisplayName(resources
0407:                            .getString("Calendar_maxLength_DisplayName"));
0408:                    prop_maxLength.setShortDescription(resources
0409:                            .getString("Calendar_maxLength_Description"));
0410:                    prop_maxLength.setExpert(false);
0411:                    prop_maxLength.setHidden(true);
0412:                    prop_maxLength.setPreferred(false);
0413:                    prop_maxLength
0414:                            .setValue(
0415:                                    Constants.PropertyDescriptor.CATEGORY,
0416:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0417:
0418:                    PropertyDescriptor prop_minDate = new PropertyDescriptor(
0419:                            "minDate", beanClass, "getMinDate", "setMinDate");
0420:                    prop_minDate.setDisplayName(resources
0421:                            .getString("Calendar_minDate_DisplayName"));
0422:                    prop_minDate.setShortDescription(resources
0423:                            .getString("Calendar_minDate_Description"));
0424:                    prop_minDate
0425:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0426:                    prop_minDate.setExpert(false);
0427:                    prop_minDate.setHidden(false);
0428:                    prop_minDate.setPreferred(false);
0429:                    attrib = new AttributeDescriptor("minDate", false, null,
0430:                            true);
0431:                    prop_minDate.setValue(
0432:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0433:                            attrib);
0434:                    prop_minDate
0435:                            .setValue(
0436:                                    Constants.PropertyDescriptor.CATEGORY,
0437:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0438:
0439:                    PropertyDescriptor prop_required = new PropertyDescriptor(
0440:                            "required", beanClass, "isRequired", "setRequired");
0441:                    prop_required.setDisplayName(resources
0442:                            .getString("Calendar_required_DisplayName"));
0443:                    prop_required.setShortDescription(resources
0444:                            .getString("Calendar_required_Description"));
0445:                    prop_required.setExpert(false);
0446:                    prop_required.setHidden(false);
0447:                    prop_required.setPreferred(false);
0448:                    attrib = new AttributeDescriptor("required", false, null,
0449:                            true);
0450:                    prop_required.setValue(
0451:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0452:                            attrib);
0453:                    prop_required
0454:                            .setValue(
0455:                                    Constants.PropertyDescriptor.CATEGORY,
0456:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0457:
0458:                    PropertyDescriptor prop_selectedDate = new PropertyDescriptor(
0459:                            "selectedDate", beanClass, "getSelectedDate",
0460:                            "setSelectedDate");
0461:                    prop_selectedDate.setDisplayName(resources
0462:                            .getString("Calendar_selectedDate_DisplayName"));
0463:                    prop_selectedDate.setShortDescription(resources
0464:                            .getString("Calendar_selectedDate_Description"));
0465:                    prop_selectedDate
0466:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0467:                    prop_selectedDate.setExpert(false);
0468:                    prop_selectedDate.setHidden(false);
0469:                    prop_selectedDate.setPreferred(false);
0470:                    attrib = new AttributeDescriptor("selectedDate", false,
0471:                            null, true);
0472:                    prop_selectedDate.setValue(
0473:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0474:                            attrib);
0475:                    prop_selectedDate
0476:                            .setValue(
0477:                                    Constants.PropertyDescriptor.CATEGORY,
0478:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0479:
0480:                    PropertyDescriptor prop_timeZone = new PropertyDescriptor(
0481:                            "timeZone", beanClass, "getTimeZone", "setTimeZone");
0482:                    prop_timeZone.setDisplayName(resources
0483:                            .getString("Calendar_timeZone_DisplayName"));
0484:                    prop_timeZone.setShortDescription(resources
0485:                            .getString("Calendar_timeZone_Description"));
0486:                    prop_timeZone.setExpert(false);
0487:                    prop_timeZone.setHidden(true);
0488:                    prop_timeZone.setPreferred(false);
0489:                    prop_timeZone
0490:                            .setValue(
0491:                                    Constants.PropertyDescriptor.CATEGORY,
0492:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0493:
0494:                    PropertyDescriptor prop_trim = new PropertyDescriptor(
0495:                            "trim", beanClass, "isTrim", "setTrim");
0496:                    prop_trim.setDisplayName(resources
0497:                            .getString("Calendar_trim_DisplayName"));
0498:                    prop_trim.setShortDescription(resources
0499:                            .getString("Calendar_trim_Description"));
0500:                    prop_trim.setExpert(false);
0501:                    prop_trim.setHidden(true);
0502:                    prop_trim.setPreferred(false);
0503:                    prop_trim
0504:                            .setValue(
0505:                                    Constants.PropertyDescriptor.CATEGORY,
0506:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0507:
0508:                    PropertyDescriptor prop_columns = new PropertyDescriptor(
0509:                            "columns", beanClass, "getColumns", "setColumns");
0510:                    prop_columns.setDisplayName(resources
0511:                            .getString("Calendar_columns_DisplayName"));
0512:                    prop_columns.setShortDescription(resources
0513:                            .getString("Calendar_columns_Description"));
0514:                    prop_columns
0515:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0516:                    prop_columns.setExpert(false);
0517:                    prop_columns.setHidden(false);
0518:                    prop_columns.setPreferred(false);
0519:                    attrib = new AttributeDescriptor("columns", false, "20",
0520:                            true);
0521:                    prop_columns.setValue(
0522:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0523:                            attrib);
0524:                    prop_columns
0525:                            .setValue(
0526:                                    Constants.PropertyDescriptor.CATEGORY,
0527:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0528:                    prop_columns.setValue(
0529:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0530:
0531:                    PropertyDescriptor prop_disabled = new PropertyDescriptor(
0532:                            "disabled", beanClass, "isDisabled", "setDisabled");
0533:                    prop_disabled.setDisplayName(resources
0534:                            .getString("Calendar_disabled_DisplayName"));
0535:                    prop_disabled.setShortDescription(resources
0536:                            .getString("Calendar_disabled_Description"));
0537:                    prop_disabled.setExpert(false);
0538:                    prop_disabled.setHidden(false);
0539:                    prop_disabled.setPreferred(false);
0540:                    attrib = new AttributeDescriptor("disabled", false, null,
0541:                            true);
0542:                    prop_disabled.setValue(
0543:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0544:                            attrib);
0545:                    prop_disabled
0546:                            .setValue(
0547:                                    Constants.PropertyDescriptor.CATEGORY,
0548:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0549:
0550:                    PropertyDescriptor prop_label = new PropertyDescriptor(
0551:                            "label", beanClass, "getLabel", "setLabel");
0552:                    prop_label.setDisplayName(resources
0553:                            .getString("Calendar_label_DisplayName"));
0554:                    prop_label.setShortDescription(resources
0555:                            .getString("Calendar_label_Description"));
0556:                    prop_label
0557:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0558:                    prop_label.setExpert(false);
0559:                    prop_label.setHidden(false);
0560:                    prop_label.setPreferred(false);
0561:                    attrib = new AttributeDescriptor("label", false, null, true);
0562:                    prop_label.setValue(
0563:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0564:                            attrib);
0565:                    prop_label
0566:                            .setValue(
0567:                                    Constants.PropertyDescriptor.CATEGORY,
0568:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0569:
0570:                    PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0571:                            "labelLevel", beanClass, "getLabelLevel",
0572:                            "setLabelLevel");
0573:                    prop_labelLevel.setDisplayName(resources
0574:                            .getString("Calendar_labelLevel_DisplayName"));
0575:                    prop_labelLevel.setShortDescription(resources
0576:                            .getString("Calendar_labelLevel_Description"));
0577:                    prop_labelLevel
0578:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0579:                    prop_labelLevel.setExpert(false);
0580:                    prop_labelLevel.setHidden(false);
0581:                    prop_labelLevel.setPreferred(false);
0582:                    attrib = new AttributeDescriptor("labelLevel", false, "2",
0583:                            true);
0584:                    prop_labelLevel.setValue(
0585:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0586:                            attrib);
0587:                    prop_labelLevel
0588:                            .setValue(
0589:                                    Constants.PropertyDescriptor.CATEGORY,
0590:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0591:                    prop_labelLevel
0592:                            .setValue(
0593:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0594:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0595:
0596:                    PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0597:                            "onBlur", beanClass, "getOnBlur", "setOnBlur");
0598:                    prop_onBlur.setDisplayName(resources
0599:                            .getString("Calendar_onBlur_DisplayName"));
0600:                    prop_onBlur.setShortDescription(resources
0601:                            .getString("Calendar_onBlur_Description"));
0602:                    prop_onBlur
0603:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0604:                    prop_onBlur.setExpert(false);
0605:                    prop_onBlur.setHidden(false);
0606:                    prop_onBlur.setPreferred(false);
0607:                    attrib = new AttributeDescriptor("onBlur", false, null,
0608:                            true);
0609:                    prop_onBlur.setValue(
0610:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0611:                            attrib);
0612:                    prop_onBlur
0613:                            .setValue(
0614:                                    Constants.PropertyDescriptor.CATEGORY,
0615:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0616:
0617:                    PropertyDescriptor prop_onChange = new PropertyDescriptor(
0618:                            "onChange", beanClass, "getOnChange", "setOnChange");
0619:                    prop_onChange.setDisplayName(resources
0620:                            .getString("Calendar_onChange_DisplayName"));
0621:                    prop_onChange.setShortDescription(resources
0622:                            .getString("Calendar_onChange_Description"));
0623:                    prop_onChange
0624:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0625:                    prop_onChange.setExpert(false);
0626:                    prop_onChange.setHidden(false);
0627:                    prop_onChange.setPreferred(false);
0628:                    attrib = new AttributeDescriptor("onChange", false, null,
0629:                            true);
0630:                    prop_onChange.setValue(
0631:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0632:                            attrib);
0633:                    prop_onChange
0634:                            .setValue(
0635:                                    Constants.PropertyDescriptor.CATEGORY,
0636:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0637:
0638:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
0639:                            "onClick", beanClass, "getOnClick", "setOnClick");
0640:                    prop_onClick.setDisplayName(resources
0641:                            .getString("Calendar_onClick_DisplayName"));
0642:                    prop_onClick.setShortDescription(resources
0643:                            .getString("Calendar_onClick_Description"));
0644:                    prop_onClick
0645:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0646:                    prop_onClick.setExpert(false);
0647:                    prop_onClick.setHidden(false);
0648:                    prop_onClick.setPreferred(false);
0649:                    attrib = new AttributeDescriptor("onClick", false, null,
0650:                            true);
0651:                    prop_onClick.setValue(
0652:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0653:                            attrib);
0654:                    prop_onClick
0655:                            .setValue(
0656:                                    Constants.PropertyDescriptor.CATEGORY,
0657:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0658:
0659:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0660:                            "onDblClick", beanClass, "getOnDblClick",
0661:                            "setOnDblClick");
0662:                    prop_onDblClick.setDisplayName(resources
0663:                            .getString("Calendar_onDblClick_DisplayName"));
0664:                    prop_onDblClick.setShortDescription(resources
0665:                            .getString("Calendar_onDblClick_Description"));
0666:                    prop_onDblClick
0667:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0668:                    prop_onDblClick.setExpert(false);
0669:                    prop_onDblClick.setHidden(false);
0670:                    prop_onDblClick.setPreferred(false);
0671:                    attrib = new AttributeDescriptor("onDblClick", false, null,
0672:                            true);
0673:                    prop_onDblClick.setValue(
0674:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0675:                            attrib);
0676:                    prop_onDblClick
0677:                            .setValue(
0678:                                    Constants.PropertyDescriptor.CATEGORY,
0679:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0680:
0681:                    PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0682:                            "onFocus", beanClass, "getOnFocus", "setOnFocus");
0683:                    prop_onFocus.setDisplayName(resources
0684:                            .getString("Calendar_onFocus_DisplayName"));
0685:                    prop_onFocus.setShortDescription(resources
0686:                            .getString("Calendar_onFocus_Description"));
0687:                    prop_onFocus
0688:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0689:                    prop_onFocus.setExpert(false);
0690:                    prop_onFocus.setHidden(false);
0691:                    prop_onFocus.setPreferred(false);
0692:                    attrib = new AttributeDescriptor("onFocus", false, null,
0693:                            true);
0694:                    prop_onFocus.setValue(
0695:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0696:                            attrib);
0697:                    prop_onFocus
0698:                            .setValue(
0699:                                    Constants.PropertyDescriptor.CATEGORY,
0700:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0701:
0702:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0703:                            "onKeyDown", beanClass, "getOnKeyDown",
0704:                            "setOnKeyDown");
0705:                    prop_onKeyDown.setDisplayName(resources
0706:                            .getString("Calendar_onKeyDown_DisplayName"));
0707:                    prop_onKeyDown.setShortDescription(resources
0708:                            .getString("Calendar_onKeyDown_Description"));
0709:                    prop_onKeyDown
0710:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0711:                    prop_onKeyDown.setExpert(false);
0712:                    prop_onKeyDown.setHidden(false);
0713:                    prop_onKeyDown.setPreferred(false);
0714:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
0715:                            true);
0716:                    prop_onKeyDown.setValue(
0717:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0718:                            attrib);
0719:                    prop_onKeyDown
0720:                            .setValue(
0721:                                    Constants.PropertyDescriptor.CATEGORY,
0722:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0723:
0724:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0725:                            "onKeyPress", beanClass, "getOnKeyPress",
0726:                            "setOnKeyPress");
0727:                    prop_onKeyPress.setDisplayName(resources
0728:                            .getString("Calendar_onKeyPress_DisplayName"));
0729:                    prop_onKeyPress.setShortDescription(resources
0730:                            .getString("Calendar_onKeyPress_Description"));
0731:                    prop_onKeyPress
0732:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0733:                    prop_onKeyPress.setExpert(false);
0734:                    prop_onKeyPress.setHidden(false);
0735:                    prop_onKeyPress.setPreferred(false);
0736:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
0737:                            true);
0738:                    prop_onKeyPress.setValue(
0739:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0740:                            attrib);
0741:                    prop_onKeyPress
0742:                            .setValue(
0743:                                    Constants.PropertyDescriptor.CATEGORY,
0744:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0745:
0746:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0747:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0748:                    prop_onKeyUp.setDisplayName(resources
0749:                            .getString("Calendar_onKeyUp_DisplayName"));
0750:                    prop_onKeyUp.setShortDescription(resources
0751:                            .getString("Calendar_onKeyUp_Description"));
0752:                    prop_onKeyUp
0753:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0754:                    prop_onKeyUp.setExpert(false);
0755:                    prop_onKeyUp.setHidden(false);
0756:                    prop_onKeyUp.setPreferred(false);
0757:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
0758:                            true);
0759:                    prop_onKeyUp.setValue(
0760:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0761:                            attrib);
0762:                    prop_onKeyUp
0763:                            .setValue(
0764:                                    Constants.PropertyDescriptor.CATEGORY,
0765:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0766:
0767:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0768:                            "onMouseDown", beanClass, "getOnMouseDown",
0769:                            "setOnMouseDown");
0770:                    prop_onMouseDown.setDisplayName(resources
0771:                            .getString("Calendar_onMouseDown_DisplayName"));
0772:                    prop_onMouseDown.setShortDescription(resources
0773:                            .getString("Calendar_onMouseDown_Description"));
0774:                    prop_onMouseDown
0775:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0776:                    prop_onMouseDown.setExpert(false);
0777:                    prop_onMouseDown.setHidden(false);
0778:                    prop_onMouseDown.setPreferred(false);
0779:                    attrib = new AttributeDescriptor("onMouseDown", false,
0780:                            null, true);
0781:                    prop_onMouseDown.setValue(
0782:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0783:                            attrib);
0784:                    prop_onMouseDown
0785:                            .setValue(
0786:                                    Constants.PropertyDescriptor.CATEGORY,
0787:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0788:
0789:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0790:                            "onMouseMove", beanClass, "getOnMouseMove",
0791:                            "setOnMouseMove");
0792:                    prop_onMouseMove.setDisplayName(resources
0793:                            .getString("Calendar_onMouseMove_DisplayName"));
0794:                    prop_onMouseMove.setShortDescription(resources
0795:                            .getString("Calendar_onMouseMove_Description"));
0796:                    prop_onMouseMove
0797:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0798:                    prop_onMouseMove.setExpert(false);
0799:                    prop_onMouseMove.setHidden(false);
0800:                    prop_onMouseMove.setPreferred(false);
0801:                    attrib = new AttributeDescriptor("onMouseMove", false,
0802:                            null, true);
0803:                    prop_onMouseMove.setValue(
0804:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0805:                            attrib);
0806:                    prop_onMouseMove
0807:                            .setValue(
0808:                                    Constants.PropertyDescriptor.CATEGORY,
0809:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0810:
0811:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0812:                            "onMouseOut", beanClass, "getOnMouseOut",
0813:                            "setOnMouseOut");
0814:                    prop_onMouseOut.setDisplayName(resources
0815:                            .getString("Calendar_onMouseOut_DisplayName"));
0816:                    prop_onMouseOut.setShortDescription(resources
0817:                            .getString("Calendar_onMouseOut_Description"));
0818:                    prop_onMouseOut
0819:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0820:                    prop_onMouseOut.setExpert(false);
0821:                    prop_onMouseOut.setHidden(false);
0822:                    prop_onMouseOut.setPreferred(false);
0823:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
0824:                            true);
0825:                    prop_onMouseOut.setValue(
0826:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0827:                            attrib);
0828:                    prop_onMouseOut
0829:                            .setValue(
0830:                                    Constants.PropertyDescriptor.CATEGORY,
0831:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0832:
0833:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0834:                            "onMouseOver", beanClass, "getOnMouseOver",
0835:                            "setOnMouseOver");
0836:                    prop_onMouseOver.setDisplayName(resources
0837:                            .getString("Calendar_onMouseOver_DisplayName"));
0838:                    prop_onMouseOver.setShortDescription(resources
0839:                            .getString("Calendar_onMouseOver_Description"));
0840:                    prop_onMouseOver
0841:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0842:                    prop_onMouseOver.setExpert(false);
0843:                    prop_onMouseOver.setHidden(false);
0844:                    prop_onMouseOver.setPreferred(false);
0845:                    attrib = new AttributeDescriptor("onMouseOver", false,
0846:                            null, true);
0847:                    prop_onMouseOver.setValue(
0848:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0849:                            attrib);
0850:                    prop_onMouseOver
0851:                            .setValue(
0852:                                    Constants.PropertyDescriptor.CATEGORY,
0853:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0854:
0855:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0856:                            "onMouseUp", beanClass, "getOnMouseUp",
0857:                            "setOnMouseUp");
0858:                    prop_onMouseUp.setDisplayName(resources
0859:                            .getString("Calendar_onMouseUp_DisplayName"));
0860:                    prop_onMouseUp.setShortDescription(resources
0861:                            .getString("Calendar_onMouseUp_Description"));
0862:                    prop_onMouseUp
0863:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0864:                    prop_onMouseUp.setExpert(false);
0865:                    prop_onMouseUp.setHidden(false);
0866:                    prop_onMouseUp.setPreferred(false);
0867:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
0868:                            true);
0869:                    prop_onMouseUp.setValue(
0870:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0871:                            attrib);
0872:                    prop_onMouseUp
0873:                            .setValue(
0874:                                    Constants.PropertyDescriptor.CATEGORY,
0875:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0876:
0877:                    PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0878:                            "onSelect", beanClass, "getOnSelect", "setOnSelect");
0879:                    prop_onSelect.setDisplayName(resources
0880:                            .getString("Calendar_onSelect_DisplayName"));
0881:                    prop_onSelect.setShortDescription(resources
0882:                            .getString("Calendar_onSelect_Description"));
0883:                    prop_onSelect
0884:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0885:                    prop_onSelect.setExpert(false);
0886:                    prop_onSelect.setHidden(false);
0887:                    prop_onSelect.setPreferred(false);
0888:                    attrib = new AttributeDescriptor("onSelect", false, null,
0889:                            true);
0890:                    prop_onSelect.setValue(
0891:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0892:                            attrib);
0893:                    prop_onSelect
0894:                            .setValue(
0895:                                    Constants.PropertyDescriptor.CATEGORY,
0896:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0897:
0898:                    PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0899:                            "readOnly", beanClass, "isReadOnly", "setReadOnly");
0900:                    prop_readOnly.setDisplayName(resources
0901:                            .getString("Calendar_readOnly_DisplayName"));
0902:                    prop_readOnly.setShortDescription(resources
0903:                            .getString("Calendar_readOnly_Description"));
0904:                    prop_readOnly.setExpert(false);
0905:                    prop_readOnly.setHidden(false);
0906:                    prop_readOnly.setPreferred(false);
0907:                    attrib = new AttributeDescriptor("readOnly", false, null,
0908:                            true);
0909:                    prop_readOnly.setValue(
0910:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0911:                            attrib);
0912:                    prop_readOnly
0913:                            .setValue(
0914:                                    Constants.PropertyDescriptor.CATEGORY,
0915:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0916:
0917:                    PropertyDescriptor prop_style = new PropertyDescriptor(
0918:                            "style", beanClass, "getStyle", "setStyle");
0919:                    prop_style.setDisplayName(resources
0920:                            .getString("Calendar_style_DisplayName"));
0921:                    prop_style.setShortDescription(resources
0922:                            .getString("Calendar_style_Description"));
0923:                    prop_style
0924:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0925:                    prop_style.setExpert(false);
0926:                    prop_style.setHidden(false);
0927:                    prop_style.setPreferred(false);
0928:                    attrib = new AttributeDescriptor("style", false, null, true);
0929:                    prop_style.setValue(
0930:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0931:                            attrib);
0932:                    prop_style
0933:                            .setValue(
0934:                                    Constants.PropertyDescriptor.CATEGORY,
0935:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0936:
0937:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0938:                            "styleClass", beanClass, "getStyleClass",
0939:                            "setStyleClass");
0940:                    prop_styleClass.setDisplayName(resources
0941:                            .getString("Calendar_styleClass_DisplayName"));
0942:                    prop_styleClass.setShortDescription(resources
0943:                            .getString("Calendar_styleClass_Description"));
0944:                    prop_styleClass
0945:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0946:                    prop_styleClass.setExpert(false);
0947:                    prop_styleClass.setHidden(false);
0948:                    prop_styleClass.setPreferred(false);
0949:                    attrib = new AttributeDescriptor("styleClass", false, null,
0950:                            true);
0951:                    prop_styleClass.setValue(
0952:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0953:                            attrib);
0954:                    prop_styleClass
0955:                            .setValue(
0956:                                    Constants.PropertyDescriptor.CATEGORY,
0957:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0958:
0959:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0960:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0961:                    prop_tabIndex.setDisplayName(resources
0962:                            .getString("Calendar_tabIndex_DisplayName"));
0963:                    prop_tabIndex.setShortDescription(resources
0964:                            .getString("Calendar_tabIndex_Description"));
0965:                    prop_tabIndex
0966:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0967:                    prop_tabIndex.setExpert(false);
0968:                    prop_tabIndex.setHidden(false);
0969:                    prop_tabIndex.setPreferred(false);
0970:                    attrib = new AttributeDescriptor("tabIndex", false, null,
0971:                            true);
0972:                    prop_tabIndex.setValue(
0973:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0974:                            attrib);
0975:                    prop_tabIndex
0976:                            .setValue(
0977:                                    Constants.PropertyDescriptor.CATEGORY,
0978:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0979:                    prop_tabIndex.setValue(
0980:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0981:
0982:                    PropertyDescriptor prop_text = new PropertyDescriptor(
0983:                            "text", beanClass, "getText", "setText");
0984:                    prop_text.setDisplayName(resources
0985:                            .getString("Calendar_text_DisplayName"));
0986:                    prop_text.setShortDescription(resources
0987:                            .getString("Calendar_text_Description"));
0988:                    prop_text
0989:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0990:                    prop_text.setExpert(false);
0991:                    prop_text.setHidden(true);
0992:                    prop_text.setPreferred(false);
0993:                    prop_text
0994:                            .setValue(
0995:                                    Constants.PropertyDescriptor.CATEGORY,
0996:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0997:
0998:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0999:                            "toolTip", beanClass, "getToolTip", "setToolTip");
1000:                    prop_toolTip.setDisplayName(resources
1001:                            .getString("Calendar_toolTip_DisplayName"));
1002:                    prop_toolTip.setShortDescription(resources
1003:                            .getString("Calendar_toolTip_Description"));
1004:                    prop_toolTip
1005:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
1006:                    prop_toolTip.setExpert(false);
1007:                    prop_toolTip.setHidden(false);
1008:                    prop_toolTip.setPreferred(false);
1009:                    attrib = new AttributeDescriptor("toolTip", false, null,
1010:                            true);
1011:                    prop_toolTip.setValue(
1012:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1013:                            attrib);
1014:                    prop_toolTip
1015:                            .setValue(
1016:                                    Constants.PropertyDescriptor.CATEGORY,
1017:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
1018:
1019:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
1020:                            "visible", beanClass, "isVisible", "setVisible");
1021:                    prop_visible.setDisplayName(resources
1022:                            .getString("Calendar_visible_DisplayName"));
1023:                    prop_visible.setShortDescription(resources
1024:                            .getString("Calendar_visible_Description"));
1025:                    prop_visible.setExpert(false);
1026:                    prop_visible.setHidden(false);
1027:                    prop_visible.setPreferred(false);
1028:                    attrib = new AttributeDescriptor("visible", false, "true",
1029:                            true);
1030:                    prop_visible.setValue(
1031:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1032:                            attrib);
1033:                    prop_visible
1034:                            .setValue(
1035:                                    Constants.PropertyDescriptor.CATEGORY,
1036:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
1037:
1038:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
1039:                            "attributes", beanClass, "getAttributes", null);
1040:                    prop_attributes.setDisplayName(resources
1041:                            .getString("Calendar_attributes_DisplayName"));
1042:                    prop_attributes.setShortDescription(resources
1043:                            .getString("Calendar_attributes_Description"));
1044:                    prop_attributes.setExpert(false);
1045:                    prop_attributes.setHidden(true);
1046:                    prop_attributes.setPreferred(false);
1047:                    prop_attributes
1048:                            .setValue(
1049:                                    Constants.PropertyDescriptor.CATEGORY,
1050:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1051:
1052:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
1053:                            "childCount", beanClass, "getChildCount", null);
1054:                    prop_childCount.setDisplayName(resources
1055:                            .getString("Calendar_childCount_DisplayName"));
1056:                    prop_childCount.setShortDescription(resources
1057:                            .getString("Calendar_childCount_Description"));
1058:                    prop_childCount.setExpert(false);
1059:                    prop_childCount.setHidden(true);
1060:                    prop_childCount.setPreferred(false);
1061:                    prop_childCount
1062:                            .setValue(
1063:                                    Constants.PropertyDescriptor.CATEGORY,
1064:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1065:
1066:                    PropertyDescriptor prop_children = new PropertyDescriptor(
1067:                            "children", beanClass, "getChildren", null);
1068:                    prop_children.setDisplayName(resources
1069:                            .getString("Calendar_children_DisplayName"));
1070:                    prop_children.setShortDescription(resources
1071:                            .getString("Calendar_children_Description"));
1072:                    prop_children.setExpert(false);
1073:                    prop_children.setHidden(true);
1074:                    prop_children.setPreferred(false);
1075:                    prop_children
1076:                            .setValue(
1077:                                    Constants.PropertyDescriptor.CATEGORY,
1078:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1079:
1080:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
1081:                            "facets", beanClass, "getFacets", null);
1082:                    prop_facets.setDisplayName(resources
1083:                            .getString("Calendar_facets_DisplayName"));
1084:                    prop_facets.setShortDescription(resources
1085:                            .getString("Calendar_facets_Description"));
1086:                    prop_facets.setExpert(false);
1087:                    prop_facets.setHidden(true);
1088:                    prop_facets.setPreferred(false);
1089:                    prop_facets
1090:                            .setValue(
1091:                                    Constants.PropertyDescriptor.CATEGORY,
1092:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1093:
1094:                    PropertyDescriptor prop_family = new PropertyDescriptor(
1095:                            "family", beanClass, "getFamily", null);
1096:                    prop_family.setDisplayName(resources
1097:                            .getString("Calendar_family_DisplayName"));
1098:                    prop_family.setShortDescription(resources
1099:                            .getString("Calendar_family_Description"));
1100:                    prop_family.setExpert(false);
1101:                    prop_family.setHidden(true);
1102:                    prop_family.setPreferred(false);
1103:                    prop_family
1104:                            .setValue(
1105:                                    Constants.PropertyDescriptor.CATEGORY,
1106:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1107:
1108:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
1109:                            beanClass, "getId", "setId");
1110:                    prop_id.setDisplayName(resources
1111:                            .getString("Calendar_id_DisplayName"));
1112:                    prop_id.setShortDescription(resources
1113:                            .getString("Calendar_id_Description"));
1114:                    prop_id.setExpert(false);
1115:                    prop_id.setHidden(true);
1116:                    prop_id.setPreferred(false);
1117:                    attrib = new AttributeDescriptor("id", false, null, true);
1118:                    prop_id.setValue(
1119:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1120:                            attrib);
1121:                    prop_id
1122:                            .setValue(
1123:                                    Constants.PropertyDescriptor.CATEGORY,
1124:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1125:
1126:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
1127:                            "immediate", beanClass, "isImmediate",
1128:                            "setImmediate");
1129:                    prop_immediate.setDisplayName(resources
1130:                            .getString("Calendar_immediate_DisplayName"));
1131:                    prop_immediate.setShortDescription(resources
1132:                            .getString("Calendar_immediate_Description"));
1133:                    prop_immediate.setExpert(false);
1134:                    prop_immediate.setHidden(false);
1135:                    prop_immediate.setPreferred(false);
1136:                    attrib = new AttributeDescriptor("immediate", false, null,
1137:                            true);
1138:                    prop_immediate.setValue(
1139:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1140:                            attrib);
1141:                    prop_immediate
1142:                            .setValue(
1143:                                    Constants.PropertyDescriptor.CATEGORY,
1144:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1145:
1146:                    PropertyDescriptor prop_localValue = new PropertyDescriptor(
1147:                            "localValue", beanClass, "getLocalValue", null);
1148:                    prop_localValue.setDisplayName(resources
1149:                            .getString("Calendar_localValue_DisplayName"));
1150:                    prop_localValue.setShortDescription(resources
1151:                            .getString("Calendar_localValue_Description"));
1152:                    prop_localValue.setExpert(false);
1153:                    prop_localValue.setHidden(true);
1154:                    prop_localValue.setPreferred(false);
1155:                    prop_localValue
1156:                            .setValue(
1157:                                    Constants.PropertyDescriptor.CATEGORY,
1158:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1159:
1160:                    PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1161:                            "localValueSet", beanClass, "isLocalValueSet",
1162:                            "setLocalValueSet");
1163:                    prop_localValueSet.setDisplayName(resources
1164:                            .getString("Calendar_localValueSet_DisplayName"));
1165:                    prop_localValueSet.setShortDescription(resources
1166:                            .getString("Calendar_localValueSet_Description"));
1167:                    prop_localValueSet.setExpert(false);
1168:                    prop_localValueSet.setHidden(true);
1169:                    prop_localValueSet.setPreferred(false);
1170:                    prop_localValueSet
1171:                            .setValue(
1172:                                    Constants.PropertyDescriptor.CATEGORY,
1173:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1174:
1175:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
1176:                            "parent", beanClass, "getParent", null);
1177:                    prop_parent.setDisplayName(resources
1178:                            .getString("Calendar_parent_DisplayName"));
1179:                    prop_parent.setShortDescription(resources
1180:                            .getString("Calendar_parent_Description"));
1181:                    prop_parent.setExpert(false);
1182:                    prop_parent.setHidden(true);
1183:                    prop_parent.setPreferred(false);
1184:                    prop_parent
1185:                            .setValue(
1186:                                    Constants.PropertyDescriptor.CATEGORY,
1187:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1188:
1189:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
1190:                            "rendered", beanClass, "isRendered", "setRendered");
1191:                    prop_rendered.setDisplayName(resources
1192:                            .getString("Calendar_rendered_DisplayName"));
1193:                    prop_rendered.setShortDescription(resources
1194:                            .getString("Calendar_rendered_Description"));
1195:                    prop_rendered.setExpert(false);
1196:                    prop_rendered.setHidden(false);
1197:                    prop_rendered.setPreferred(false);
1198:                    attrib = new AttributeDescriptor("rendered", false, null,
1199:                            true);
1200:                    prop_rendered.setValue(
1201:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1202:                            attrib);
1203:                    prop_rendered
1204:                            .setValue(
1205:                                    Constants.PropertyDescriptor.CATEGORY,
1206:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1207:
1208:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1209:                            "rendererType", beanClass, "getRendererType",
1210:                            "setRendererType");
1211:                    prop_rendererType.setDisplayName(resources
1212:                            .getString("Calendar_rendererType_DisplayName"));
1213:                    prop_rendererType.setShortDescription(resources
1214:                            .getString("Calendar_rendererType_Description"));
1215:                    prop_rendererType.setExpert(false);
1216:                    prop_rendererType.setHidden(true);
1217:                    prop_rendererType.setPreferred(false);
1218:                    prop_rendererType
1219:                            .setValue(
1220:                                    Constants.PropertyDescriptor.CATEGORY,
1221:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1222:
1223:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1224:                            "rendersChildren", beanClass, "getRendersChildren",
1225:                            null);
1226:                    prop_rendersChildren.setDisplayName(resources
1227:                            .getString("Calendar_rendersChildren_DisplayName"));
1228:                    prop_rendersChildren.setShortDescription(resources
1229:                            .getString("Calendar_rendersChildren_Description"));
1230:                    prop_rendersChildren.setExpert(false);
1231:                    prop_rendersChildren.setHidden(true);
1232:                    prop_rendersChildren.setPreferred(false);
1233:                    prop_rendersChildren
1234:                            .setValue(
1235:                                    Constants.PropertyDescriptor.CATEGORY,
1236:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1237:
1238:                    PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1239:                            "submittedValue", beanClass, "getSubmittedValue",
1240:                            "setSubmittedValue");
1241:                    prop_submittedValue.setDisplayName(resources
1242:                            .getString("Calendar_submittedValue_DisplayName"));
1243:                    prop_submittedValue.setShortDescription(resources
1244:                            .getString("Calendar_submittedValue_Description"));
1245:                    prop_submittedValue.setExpert(false);
1246:                    prop_submittedValue.setHidden(true);
1247:                    prop_submittedValue.setPreferred(false);
1248:                    prop_submittedValue
1249:                            .setValue(
1250:                                    Constants.PropertyDescriptor.CATEGORY,
1251:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1252:
1253:                    PropertyDescriptor prop_validator = new PropertyDescriptor(
1254:                            "validator", beanClass, "getValidator",
1255:                            "setValidator");
1256:                    prop_validator.setDisplayName(resources
1257:                            .getString("Calendar_validator_DisplayName"));
1258:                    prop_validator.setShortDescription(resources
1259:                            .getString("Calendar_validator_Description"));
1260:                    prop_validator
1261:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1262:                    prop_validator.setExpert(false);
1263:                    prop_validator.setHidden(false);
1264:                    prop_validator.setPreferred(false);
1265:                    attrib = new AttributeDescriptor("validator", false, null,
1266:                            true);
1267:                    prop_validator.setValue(
1268:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1269:                            attrib);
1270:                    prop_validator
1271:                            .setValue(
1272:                                    Constants.PropertyDescriptor.CATEGORY,
1273:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1274:
1275:                    PropertyDescriptor prop_value = new PropertyDescriptor(
1276:                            "value", beanClass, "getValue", "setValue");
1277:                    prop_value.setDisplayName(resources
1278:                            .getString("Calendar_value_DisplayName"));
1279:                    prop_value.setShortDescription(resources
1280:                            .getString("Calendar_value_Description"));
1281:                    prop_value.setExpert(false);
1282:                    prop_value.setHidden(true);
1283:                    prop_value.setPreferred(false);
1284:                    prop_value
1285:                            .setValue(
1286:                                    Constants.PropertyDescriptor.CATEGORY,
1287:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1288:
1289:                    PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1290:                            "valueChangeListener", beanClass,
1291:                            "getValueChangeListener", "setValueChangeListener");
1292:                    prop_valueChangeListener
1293:                            .setDisplayName(resources
1294:                                    .getString("Calendar_valueChangeListener_DisplayName"));
1295:                    prop_valueChangeListener
1296:                            .setShortDescription(resources
1297:                                    .getString("Calendar_valueChangeListener_Description"));
1298:                    prop_valueChangeListener
1299:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1300:                    prop_valueChangeListener.setExpert(false);
1301:                    prop_valueChangeListener.setHidden(false);
1302:                    prop_valueChangeListener.setPreferred(false);
1303:                    attrib = new AttributeDescriptor("valueChangeListener",
1304:                            false, null, true);
1305:                    prop_valueChangeListener.setValue(
1306:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1307:                            attrib);
1308:                    prop_valueChangeListener
1309:                            .setValue(
1310:                                    Constants.PropertyDescriptor.CATEGORY,
1311:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1312:
1313:                    propDescriptors = new PropertyDescriptor[] {
1314:                            prop_attributes, prop_childCount, prop_children,
1315:                            prop_columns, prop_converter,
1316:                            prop_dateFormatPattern, prop_dateFormatPatternHelp,
1317:                            prop_disabled, prop_facets, prop_family, prop_id,
1318:                            prop_immediate, prop_label, prop_labelLevel,
1319:                            prop_localValue, prop_localValueSet, prop_maxDate,
1320:                            prop_maxLength, prop_minDate, prop_onBlur,
1321:                            prop_onChange, prop_onClick, prop_onDblClick,
1322:                            prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1323:                            prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1324:                            prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1325:                            prop_onSelect, prop_parent, prop_readOnly,
1326:                            prop_rendered, prop_rendererType,
1327:                            prop_rendersChildren, prop_required,
1328:                            prop_selectedDate, prop_style, prop_styleClass,
1329:                            prop_submittedValue, prop_tabIndex, prop_text,
1330:                            prop_timeZone, prop_toolTip, prop_trim,
1331:                            prop_validator, prop_value,
1332:                            prop_valueChangeListener, prop_visible, };
1333:                    return propDescriptors;
1334:
1335:                } catch (IntrospectionException e) {
1336:                    e.printStackTrace();
1337:                    return null;
1338:                }
1339:
1340:            }
1341:
1342:        }
1343:        //GEN-END:BeanInfo
w___w___w__.___java___2s._co__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.