Source Code Cross Referenced for ButtonBeanInfoBase.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 ButtonBeanInfoBase 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(), ButtonBeanInfoBase.class
0071:                                    .getClassLoader());
0072:
0073:            /**
0074:             * <p>Construct a new <code>ButtonBeanInfoBase</code>.</p>
0075:             */
0076:            public ButtonBeanInfoBase() {
0077:
0078:                beanClass = com.sun.rave.web.ui.component.Button.class;
0079:                defaultPropertyName = "text";
0080:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Button_C16";
0081:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Button_C32";
0082:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Button_M16";
0083:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Button_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("Button_DisplayName"));
0144:                beanDescriptor.setShortDescription(resources
0145:                        .getString("Button_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_button");
0154:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155:                        "button");
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_button_props");
0161:                beanDescriptor.setValue(
0162:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163:                        getCategoryDescriptors());
0164:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165:                        "button");
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:                facetDescriptors = new FacetDescriptor[] {};
0223:                return facetDescriptors;
0224:
0225:            }
0226:
0227:            /**
0228:             * <p>Return the specified image (if any)
0229:             * for this component class.</p>
0230:             */
0231:            public Image getIcon(int kind) {
0232:
0233:                String name;
0234:                switch (kind) {
0235:                case ICON_COLOR_16x16:
0236:                    name = iconFileName_C16;
0237:                    break;
0238:                case ICON_COLOR_32x32:
0239:                    name = iconFileName_C32;
0240:                    break;
0241:                case ICON_MONO_16x16:
0242:                    name = iconFileName_M16;
0243:                    break;
0244:                case ICON_MONO_32x32:
0245:                    name = iconFileName_M32;
0246:                    break;
0247:                default:
0248:                    name = null;
0249:                    break;
0250:                }
0251:                if (name == null) {
0252:                    return null;
0253:                }
0254:
0255:                Image image = loadImage(name + ".png");
0256:                if (image == null) {
0257:                    image = loadImage(name + ".gif");
0258:                }
0259:                return image;
0260:
0261:            }
0262:
0263:            /**
0264:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0265:             */
0266:            private java.lang.Class loadClass(java.lang.String name) {
0267:
0268:                try {
0269:                    return Class.forName(name);
0270:                } catch (ClassNotFoundException e) {
0271:                    throw new RuntimeException(e);
0272:                }
0273:
0274:            }
0275:
0276:            /**
0277:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0278:             */
0279:            public PropertyDescriptor[] getPropertyDescriptors() {
0280:
0281:                if (propDescriptors != null) {
0282:                    return propDescriptors;
0283:                }
0284:                AttributeDescriptor attrib = null;
0285:
0286:                try {
0287:
0288:                    PropertyDescriptor prop_action = new PropertyDescriptor(
0289:                            "action", beanClass, "getAction", "setAction");
0290:                    prop_action.setDisplayName(resources
0291:                            .getString("Button_action_DisplayName"));
0292:                    prop_action.setShortDescription(resources
0293:                            .getString("Button_action_Description"));
0294:                    prop_action.setExpert(false);
0295:                    prop_action.setHidden(false);
0296:                    prop_action.setPreferred(false);
0297:                    attrib = new AttributeDescriptor("action", false, null,
0298:                            true);
0299:                    prop_action.setValue(
0300:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0301:                            attrib);
0302:                    prop_action
0303:                            .setValue(
0304:                                    Constants.PropertyDescriptor.CATEGORY,
0305:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0306:
0307:                    PropertyDescriptor prop_actionListener = new PropertyDescriptor(
0308:                            "actionListener", beanClass, "getActionListener",
0309:                            "setActionListener");
0310:                    prop_actionListener.setDisplayName(resources
0311:                            .getString("Button_actionListener_DisplayName"));
0312:                    prop_actionListener.setShortDescription(resources
0313:                            .getString("Button_actionListener_Description"));
0314:                    prop_actionListener
0315:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
0316:                    prop_actionListener.setExpert(false);
0317:                    prop_actionListener.setHidden(false);
0318:                    prop_actionListener.setPreferred(false);
0319:                    attrib = new AttributeDescriptor("actionListener", false,
0320:                            null, true);
0321:                    prop_actionListener.setValue(
0322:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0323:                            attrib);
0324:                    prop_actionListener
0325:                            .setValue(
0326:                                    Constants.PropertyDescriptor.CATEGORY,
0327:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0328:
0329:                    PropertyDescriptor prop_alt = new PropertyDescriptor("alt",
0330:                            beanClass, "getAlt", "setAlt");
0331:                    prop_alt.setDisplayName(resources
0332:                            .getString("Button_alt_DisplayName"));
0333:                    prop_alt.setShortDescription(resources
0334:                            .getString("Button_alt_Description"));
0335:                    prop_alt
0336:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0337:                    prop_alt.setExpert(false);
0338:                    prop_alt.setHidden(false);
0339:                    prop_alt.setPreferred(false);
0340:                    attrib = new AttributeDescriptor("alt", false, null, true);
0341:                    prop_alt.setValue(
0342:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0343:                            attrib);
0344:                    prop_alt
0345:                            .setValue(
0346:                                    Constants.PropertyDescriptor.CATEGORY,
0347:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0348:
0349:                    PropertyDescriptor prop_disabled = new PropertyDescriptor(
0350:                            "disabled", beanClass, "isDisabled", "setDisabled");
0351:                    prop_disabled.setDisplayName(resources
0352:                            .getString("Button_disabled_DisplayName"));
0353:                    prop_disabled.setShortDescription(resources
0354:                            .getString("Button_disabled_Description"));
0355:                    prop_disabled.setExpert(false);
0356:                    prop_disabled.setHidden(false);
0357:                    prop_disabled.setPreferred(false);
0358:                    attrib = new AttributeDescriptor("disabled", false, null,
0359:                            true);
0360:                    prop_disabled.setValue(
0361:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0362:                            attrib);
0363:                    prop_disabled
0364:                            .setValue(
0365:                                    Constants.PropertyDescriptor.CATEGORY,
0366:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0367:
0368:                    PropertyDescriptor prop_escape = new PropertyDescriptor(
0369:                            "escape", beanClass, "isEscape", "setEscape");
0370:                    prop_escape.setDisplayName(resources
0371:                            .getString("Button_escape_DisplayName"));
0372:                    prop_escape.setShortDescription(resources
0373:                            .getString("Button_escape_Description"));
0374:                    prop_escape.setExpert(false);
0375:                    prop_escape.setHidden(false);
0376:                    prop_escape.setPreferred(false);
0377:                    attrib = new AttributeDescriptor("escape", false, "true",
0378:                            true);
0379:                    prop_escape.setValue(
0380:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0381:                            attrib);
0382:                    prop_escape
0383:                            .setValue(
0384:                                    Constants.PropertyDescriptor.CATEGORY,
0385:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0386:
0387:                    PropertyDescriptor prop_imageURL = new PropertyDescriptor(
0388:                            "imageURL", beanClass, "getImageURL", "setImageURL");
0389:                    prop_imageURL.setDisplayName(resources
0390:                            .getString("Button_imageURL_DisplayName"));
0391:                    prop_imageURL.setShortDescription(resources
0392:                            .getString("Button_imageURL_Description"));
0393:                    prop_imageURL
0394:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.ImageUrlPropertyEditor"));
0395:                    prop_imageURL.setExpert(false);
0396:                    prop_imageURL.setHidden(false);
0397:                    prop_imageURL.setPreferred(false);
0398:                    attrib = new AttributeDescriptor("imageURL", false, null,
0399:                            true);
0400:                    prop_imageURL.setValue(
0401:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0402:                            attrib);
0403:                    prop_imageURL
0404:                            .setValue(
0405:                                    Constants.PropertyDescriptor.CATEGORY,
0406:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0407:
0408:                    PropertyDescriptor prop_mini = new PropertyDescriptor(
0409:                            "mini", beanClass, "isMini", "setMini");
0410:                    prop_mini.setDisplayName(resources
0411:                            .getString("Button_mini_DisplayName"));
0412:                    prop_mini.setShortDescription(resources
0413:                            .getString("Button_mini_Description"));
0414:                    prop_mini.setExpert(false);
0415:                    prop_mini.setHidden(false);
0416:                    prop_mini.setPreferred(false);
0417:                    attrib = new AttributeDescriptor("mini", false, null, true);
0418:                    prop_mini.setValue(
0419:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0420:                            attrib);
0421:                    prop_mini
0422:                            .setValue(
0423:                                    Constants.PropertyDescriptor.CATEGORY,
0424:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0425:
0426:                    PropertyDescriptor prop_noTextPadding = new PropertyDescriptor(
0427:                            "noTextPadding", beanClass, "isNoTextPadding",
0428:                            "setNoTextPadding");
0429:                    prop_noTextPadding.setDisplayName(resources
0430:                            .getString("Button_noTextPadding_DisplayName"));
0431:                    prop_noTextPadding.setShortDescription(resources
0432:                            .getString("Button_noTextPadding_Description"));
0433:                    prop_noTextPadding.setExpert(false);
0434:                    prop_noTextPadding.setHidden(false);
0435:                    prop_noTextPadding.setPreferred(false);
0436:                    attrib = new AttributeDescriptor("noTextPadding", false,
0437:                            null, true);
0438:                    prop_noTextPadding.setValue(
0439:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0440:                            attrib);
0441:                    prop_noTextPadding
0442:                            .setValue(
0443:                                    Constants.PropertyDescriptor.CATEGORY,
0444:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0445:
0446:                    PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0447:                            "onBlur", beanClass, "getOnBlur", "setOnBlur");
0448:                    prop_onBlur.setDisplayName(resources
0449:                            .getString("Button_onBlur_DisplayName"));
0450:                    prop_onBlur.setShortDescription(resources
0451:                            .getString("Button_onBlur_Description"));
0452:                    prop_onBlur
0453:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0454:                    prop_onBlur.setExpert(false);
0455:                    prop_onBlur.setHidden(false);
0456:                    prop_onBlur.setPreferred(false);
0457:                    attrib = new AttributeDescriptor("onBlur", false, null,
0458:                            true);
0459:                    prop_onBlur.setValue(
0460:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0461:                            attrib);
0462:                    prop_onBlur
0463:                            .setValue(
0464:                                    Constants.PropertyDescriptor.CATEGORY,
0465:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0466:
0467:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
0468:                            "onClick", beanClass, "getOnClick", "setOnClick");
0469:                    prop_onClick.setDisplayName(resources
0470:                            .getString("Button_onClick_DisplayName"));
0471:                    prop_onClick.setShortDescription(resources
0472:                            .getString("Button_onClick_Description"));
0473:                    prop_onClick
0474:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0475:                    prop_onClick.setExpert(false);
0476:                    prop_onClick.setHidden(false);
0477:                    prop_onClick.setPreferred(false);
0478:                    attrib = new AttributeDescriptor("onClick", false, null,
0479:                            true);
0480:                    prop_onClick.setValue(
0481:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0482:                            attrib);
0483:                    prop_onClick
0484:                            .setValue(
0485:                                    Constants.PropertyDescriptor.CATEGORY,
0486:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0487:
0488:                    PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0489:                            "onDblClick", beanClass, "getOnDblClick",
0490:                            "setOnDblClick");
0491:                    prop_onDblClick.setDisplayName(resources
0492:                            .getString("Button_onDblClick_DisplayName"));
0493:                    prop_onDblClick.setShortDescription(resources
0494:                            .getString("Button_onDblClick_Description"));
0495:                    prop_onDblClick
0496:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0497:                    prop_onDblClick.setExpert(false);
0498:                    prop_onDblClick.setHidden(false);
0499:                    prop_onDblClick.setPreferred(false);
0500:                    attrib = new AttributeDescriptor("onDblClick", false, null,
0501:                            true);
0502:                    prop_onDblClick.setValue(
0503:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0504:                            attrib);
0505:                    prop_onDblClick
0506:                            .setValue(
0507:                                    Constants.PropertyDescriptor.CATEGORY,
0508:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0509:
0510:                    PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0511:                            "onFocus", beanClass, "getOnFocus", "setOnFocus");
0512:                    prop_onFocus.setDisplayName(resources
0513:                            .getString("Button_onFocus_DisplayName"));
0514:                    prop_onFocus.setShortDescription(resources
0515:                            .getString("Button_onFocus_Description"));
0516:                    prop_onFocus
0517:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0518:                    prop_onFocus.setExpert(false);
0519:                    prop_onFocus.setHidden(false);
0520:                    prop_onFocus.setPreferred(false);
0521:                    attrib = new AttributeDescriptor("onFocus", false, null,
0522:                            true);
0523:                    prop_onFocus.setValue(
0524:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0525:                            attrib);
0526:                    prop_onFocus
0527:                            .setValue(
0528:                                    Constants.PropertyDescriptor.CATEGORY,
0529:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0530:
0531:                    PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0532:                            "onKeyDown", beanClass, "getOnKeyDown",
0533:                            "setOnKeyDown");
0534:                    prop_onKeyDown.setDisplayName(resources
0535:                            .getString("Button_onKeyDown_DisplayName"));
0536:                    prop_onKeyDown.setShortDescription(resources
0537:                            .getString("Button_onKeyDown_Description"));
0538:                    prop_onKeyDown
0539:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0540:                    prop_onKeyDown.setExpert(false);
0541:                    prop_onKeyDown.setHidden(false);
0542:                    prop_onKeyDown.setPreferred(false);
0543:                    attrib = new AttributeDescriptor("onKeyDown", false, null,
0544:                            true);
0545:                    prop_onKeyDown.setValue(
0546:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0547:                            attrib);
0548:                    prop_onKeyDown
0549:                            .setValue(
0550:                                    Constants.PropertyDescriptor.CATEGORY,
0551:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0552:
0553:                    PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0554:                            "onKeyPress", beanClass, "getOnKeyPress",
0555:                            "setOnKeyPress");
0556:                    prop_onKeyPress.setDisplayName(resources
0557:                            .getString("Button_onKeyPress_DisplayName"));
0558:                    prop_onKeyPress.setShortDescription(resources
0559:                            .getString("Button_onKeyPress_Description"));
0560:                    prop_onKeyPress
0561:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0562:                    prop_onKeyPress.setExpert(false);
0563:                    prop_onKeyPress.setHidden(false);
0564:                    prop_onKeyPress.setPreferred(false);
0565:                    attrib = new AttributeDescriptor("onKeyPress", false, null,
0566:                            true);
0567:                    prop_onKeyPress.setValue(
0568:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0569:                            attrib);
0570:                    prop_onKeyPress
0571:                            .setValue(
0572:                                    Constants.PropertyDescriptor.CATEGORY,
0573:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0574:
0575:                    PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0576:                            "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0577:                    prop_onKeyUp.setDisplayName(resources
0578:                            .getString("Button_onKeyUp_DisplayName"));
0579:                    prop_onKeyUp.setShortDescription(resources
0580:                            .getString("Button_onKeyUp_Description"));
0581:                    prop_onKeyUp
0582:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0583:                    prop_onKeyUp.setExpert(false);
0584:                    prop_onKeyUp.setHidden(false);
0585:                    prop_onKeyUp.setPreferred(false);
0586:                    attrib = new AttributeDescriptor("onKeyUp", false, null,
0587:                            true);
0588:                    prop_onKeyUp.setValue(
0589:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0590:                            attrib);
0591:                    prop_onKeyUp
0592:                            .setValue(
0593:                                    Constants.PropertyDescriptor.CATEGORY,
0594:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0595:
0596:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0597:                            "onMouseDown", beanClass, "getOnMouseDown",
0598:                            "setOnMouseDown");
0599:                    prop_onMouseDown.setDisplayName(resources
0600:                            .getString("Button_onMouseDown_DisplayName"));
0601:                    prop_onMouseDown.setShortDescription(resources
0602:                            .getString("Button_onMouseDown_Description"));
0603:                    prop_onMouseDown
0604:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0605:                    prop_onMouseDown.setExpert(false);
0606:                    prop_onMouseDown.setHidden(false);
0607:                    prop_onMouseDown.setPreferred(false);
0608:                    attrib = new AttributeDescriptor("onMouseDown", false,
0609:                            null, true);
0610:                    prop_onMouseDown.setValue(
0611:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0612:                            attrib);
0613:                    prop_onMouseDown
0614:                            .setValue(
0615:                                    Constants.PropertyDescriptor.CATEGORY,
0616:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0617:
0618:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0619:                            "onMouseMove", beanClass, "getOnMouseMove",
0620:                            "setOnMouseMove");
0621:                    prop_onMouseMove.setDisplayName(resources
0622:                            .getString("Button_onMouseMove_DisplayName"));
0623:                    prop_onMouseMove.setShortDescription(resources
0624:                            .getString("Button_onMouseMove_Description"));
0625:                    prop_onMouseMove
0626:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0627:                    prop_onMouseMove.setExpert(false);
0628:                    prop_onMouseMove.setHidden(false);
0629:                    prop_onMouseMove.setPreferred(false);
0630:                    attrib = new AttributeDescriptor("onMouseMove", false,
0631:                            null, true);
0632:                    prop_onMouseMove.setValue(
0633:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0634:                            attrib);
0635:                    prop_onMouseMove
0636:                            .setValue(
0637:                                    Constants.PropertyDescriptor.CATEGORY,
0638:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0639:
0640:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0641:                            "onMouseOut", beanClass, "getOnMouseOut",
0642:                            "setOnMouseOut");
0643:                    prop_onMouseOut.setDisplayName(resources
0644:                            .getString("Button_onMouseOut_DisplayName"));
0645:                    prop_onMouseOut.setShortDescription(resources
0646:                            .getString("Button_onMouseOut_Description"));
0647:                    prop_onMouseOut
0648:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0649:                    prop_onMouseOut.setExpert(false);
0650:                    prop_onMouseOut.setHidden(false);
0651:                    prop_onMouseOut.setPreferred(false);
0652:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
0653:                            true);
0654:                    prop_onMouseOut.setValue(
0655:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0656:                            attrib);
0657:                    prop_onMouseOut
0658:                            .setValue(
0659:                                    Constants.PropertyDescriptor.CATEGORY,
0660:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0661:
0662:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0663:                            "onMouseOver", beanClass, "getOnMouseOver",
0664:                            "setOnMouseOver");
0665:                    prop_onMouseOver.setDisplayName(resources
0666:                            .getString("Button_onMouseOver_DisplayName"));
0667:                    prop_onMouseOver.setShortDescription(resources
0668:                            .getString("Button_onMouseOver_Description"));
0669:                    prop_onMouseOver
0670:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0671:                    prop_onMouseOver.setExpert(false);
0672:                    prop_onMouseOver.setHidden(false);
0673:                    prop_onMouseOver.setPreferred(false);
0674:                    attrib = new AttributeDescriptor("onMouseOver", false,
0675:                            null, true);
0676:                    prop_onMouseOver.setValue(
0677:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0678:                            attrib);
0679:                    prop_onMouseOver
0680:                            .setValue(
0681:                                    Constants.PropertyDescriptor.CATEGORY,
0682:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0683:
0684:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0685:                            "onMouseUp", beanClass, "getOnMouseUp",
0686:                            "setOnMouseUp");
0687:                    prop_onMouseUp.setDisplayName(resources
0688:                            .getString("Button_onMouseUp_DisplayName"));
0689:                    prop_onMouseUp.setShortDescription(resources
0690:                            .getString("Button_onMouseUp_Description"));
0691:                    prop_onMouseUp
0692:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0693:                    prop_onMouseUp.setExpert(false);
0694:                    prop_onMouseUp.setHidden(false);
0695:                    prop_onMouseUp.setPreferred(false);
0696:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
0697:                            true);
0698:                    prop_onMouseUp.setValue(
0699:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0700:                            attrib);
0701:                    prop_onMouseUp
0702:                            .setValue(
0703:                                    Constants.PropertyDescriptor.CATEGORY,
0704:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0705:
0706:                    PropertyDescriptor prop_primary = new PropertyDescriptor(
0707:                            "primary", beanClass, "isPrimary", "setPrimary");
0708:                    prop_primary.setDisplayName(resources
0709:                            .getString("Button_primary_DisplayName"));
0710:                    prop_primary.setShortDescription(resources
0711:                            .getString("Button_primary_Description"));
0712:                    prop_primary.setExpert(false);
0713:                    prop_primary.setHidden(false);
0714:                    prop_primary.setPreferred(false);
0715:                    attrib = new AttributeDescriptor("primary", false, null,
0716:                            true);
0717:                    prop_primary.setValue(
0718:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0719:                            attrib);
0720:                    prop_primary
0721:                            .setValue(
0722:                                    Constants.PropertyDescriptor.CATEGORY,
0723:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0724:
0725:                    PropertyDescriptor prop_reset = new PropertyDescriptor(
0726:                            "reset", beanClass, "isReset", "setReset");
0727:                    prop_reset.setDisplayName(resources
0728:                            .getString("Button_reset_DisplayName"));
0729:                    prop_reset.setShortDescription(resources
0730:                            .getString("Button_reset_Description"));
0731:                    prop_reset.setExpert(false);
0732:                    prop_reset.setHidden(false);
0733:                    prop_reset.setPreferred(false);
0734:                    attrib = new AttributeDescriptor("reset", false, null, true);
0735:                    prop_reset.setValue(
0736:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0737:                            attrib);
0738:                    prop_reset
0739:                            .setValue(
0740:                                    Constants.PropertyDescriptor.CATEGORY,
0741:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0742:
0743:                    PropertyDescriptor prop_style = new PropertyDescriptor(
0744:                            "style", beanClass, "getStyle", "setStyle");
0745:                    prop_style.setDisplayName(resources
0746:                            .getString("Button_style_DisplayName"));
0747:                    prop_style.setShortDescription(resources
0748:                            .getString("Button_style_Description"));
0749:                    prop_style
0750:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0751:                    prop_style.setExpert(false);
0752:                    prop_style.setHidden(false);
0753:                    prop_style.setPreferred(false);
0754:                    attrib = new AttributeDescriptor("style", false, null, true);
0755:                    prop_style.setValue(
0756:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0757:                            attrib);
0758:                    prop_style
0759:                            .setValue(
0760:                                    Constants.PropertyDescriptor.CATEGORY,
0761:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0762:
0763:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0764:                            "styleClass", beanClass, "getStyleClass",
0765:                            "setStyleClass");
0766:                    prop_styleClass.setDisplayName(resources
0767:                            .getString("Button_styleClass_DisplayName"));
0768:                    prop_styleClass.setShortDescription(resources
0769:                            .getString("Button_styleClass_Description"));
0770:                    prop_styleClass
0771:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0772:                    prop_styleClass.setExpert(false);
0773:                    prop_styleClass.setHidden(false);
0774:                    prop_styleClass.setPreferred(false);
0775:                    attrib = new AttributeDescriptor("styleClass", false, null,
0776:                            true);
0777:                    prop_styleClass.setValue(
0778:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0779:                            attrib);
0780:                    prop_styleClass
0781:                            .setValue(
0782:                                    Constants.PropertyDescriptor.CATEGORY,
0783:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0784:
0785:                    PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0786:                            "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0787:                    prop_tabIndex.setDisplayName(resources
0788:                            .getString("Button_tabIndex_DisplayName"));
0789:                    prop_tabIndex.setShortDescription(resources
0790:                            .getString("Button_tabIndex_Description"));
0791:                    prop_tabIndex
0792:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0793:                    prop_tabIndex.setExpert(false);
0794:                    prop_tabIndex.setHidden(false);
0795:                    prop_tabIndex.setPreferred(false);
0796:                    attrib = new AttributeDescriptor("tabIndex", false, null,
0797:                            true);
0798:                    prop_tabIndex.setValue(
0799:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0800:                            attrib);
0801:                    prop_tabIndex
0802:                            .setValue(
0803:                                    Constants.PropertyDescriptor.CATEGORY,
0804:                                    com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0805:                    prop_tabIndex.setValue(
0806:                            "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0807:
0808:                    PropertyDescriptor prop_text = new PropertyDescriptor(
0809:                            "text", beanClass, "getText", "setText");
0810:                    prop_text.setDisplayName(resources
0811:                            .getString("Button_text_DisplayName"));
0812:                    prop_text.setShortDescription(resources
0813:                            .getString("Button_text_Description"));
0814:                    prop_text
0815:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0816:                    prop_text.setExpert(false);
0817:                    prop_text.setHidden(false);
0818:                    prop_text.setPreferred(false);
0819:                    attrib = new AttributeDescriptor("text", false, null, true);
0820:                    prop_text.setValue(
0821:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0822:                            attrib);
0823:                    prop_text
0824:                            .setValue(
0825:                                    Constants.PropertyDescriptor.CATEGORY,
0826:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0827:
0828:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0829:                            "toolTip", beanClass, "getToolTip", "setToolTip");
0830:                    prop_toolTip.setDisplayName(resources
0831:                            .getString("Button_toolTip_DisplayName"));
0832:                    prop_toolTip.setShortDescription(resources
0833:                            .getString("Button_toolTip_Description"));
0834:                    prop_toolTip
0835:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0836:                    prop_toolTip.setExpert(false);
0837:                    prop_toolTip.setHidden(false);
0838:                    prop_toolTip.setPreferred(false);
0839:                    attrib = new AttributeDescriptor("toolTip", false, null,
0840:                            true);
0841:                    prop_toolTip.setValue(
0842:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0843:                            attrib);
0844:                    prop_toolTip
0845:                            .setValue(
0846:                                    Constants.PropertyDescriptor.CATEGORY,
0847:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0848:
0849:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
0850:                            "visible", beanClass, "isVisible", "setVisible");
0851:                    prop_visible.setDisplayName(resources
0852:                            .getString("Button_visible_DisplayName"));
0853:                    prop_visible.setShortDescription(resources
0854:                            .getString("Button_visible_Description"));
0855:                    prop_visible.setExpert(false);
0856:                    prop_visible.setHidden(false);
0857:                    prop_visible.setPreferred(false);
0858:                    attrib = new AttributeDescriptor("visible", false, "true",
0859:                            true);
0860:                    prop_visible.setValue(
0861:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0862:                            attrib);
0863:                    prop_visible
0864:                            .setValue(
0865:                                    Constants.PropertyDescriptor.CATEGORY,
0866:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0867:
0868:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
0869:                            "attributes", beanClass, "getAttributes", null);
0870:                    prop_attributes.setDisplayName(resources
0871:                            .getString("Button_attributes_DisplayName"));
0872:                    prop_attributes.setShortDescription(resources
0873:                            .getString("Button_attributes_Description"));
0874:                    prop_attributes.setExpert(false);
0875:                    prop_attributes.setHidden(true);
0876:                    prop_attributes.setPreferred(false);
0877:                    prop_attributes
0878:                            .setValue(
0879:                                    Constants.PropertyDescriptor.CATEGORY,
0880:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0881:
0882:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
0883:                            "childCount", beanClass, "getChildCount", null);
0884:                    prop_childCount.setDisplayName(resources
0885:                            .getString("Button_childCount_DisplayName"));
0886:                    prop_childCount.setShortDescription(resources
0887:                            .getString("Button_childCount_Description"));
0888:                    prop_childCount.setExpert(false);
0889:                    prop_childCount.setHidden(true);
0890:                    prop_childCount.setPreferred(false);
0891:                    prop_childCount
0892:                            .setValue(
0893:                                    Constants.PropertyDescriptor.CATEGORY,
0894:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0895:
0896:                    PropertyDescriptor prop_children = new PropertyDescriptor(
0897:                            "children", beanClass, "getChildren", null);
0898:                    prop_children.setDisplayName(resources
0899:                            .getString("Button_children_DisplayName"));
0900:                    prop_children.setShortDescription(resources
0901:                            .getString("Button_children_Description"));
0902:                    prop_children.setExpert(false);
0903:                    prop_children.setHidden(true);
0904:                    prop_children.setPreferred(false);
0905:                    prop_children
0906:                            .setValue(
0907:                                    Constants.PropertyDescriptor.CATEGORY,
0908:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0909:
0910:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
0911:                            "facets", beanClass, "getFacets", null);
0912:                    prop_facets.setDisplayName(resources
0913:                            .getString("Button_facets_DisplayName"));
0914:                    prop_facets.setShortDescription(resources
0915:                            .getString("Button_facets_Description"));
0916:                    prop_facets.setExpert(false);
0917:                    prop_facets.setHidden(true);
0918:                    prop_facets.setPreferred(false);
0919:                    prop_facets
0920:                            .setValue(
0921:                                    Constants.PropertyDescriptor.CATEGORY,
0922:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0923:
0924:                    PropertyDescriptor prop_family = new PropertyDescriptor(
0925:                            "family", beanClass, "getFamily", null);
0926:                    prop_family.setDisplayName(resources
0927:                            .getString("Button_family_DisplayName"));
0928:                    prop_family.setShortDescription(resources
0929:                            .getString("Button_family_Description"));
0930:                    prop_family.setExpert(false);
0931:                    prop_family.setHidden(true);
0932:                    prop_family.setPreferred(false);
0933:                    prop_family
0934:                            .setValue(
0935:                                    Constants.PropertyDescriptor.CATEGORY,
0936:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0937:
0938:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
0939:                            beanClass, "getId", "setId");
0940:                    prop_id.setDisplayName(resources
0941:                            .getString("Button_id_DisplayName"));
0942:                    prop_id.setShortDescription(resources
0943:                            .getString("Button_id_Description"));
0944:                    prop_id.setExpert(false);
0945:                    prop_id.setHidden(true);
0946:                    prop_id.setPreferred(false);
0947:                    attrib = new AttributeDescriptor("id", false, null, true);
0948:                    prop_id.setValue(
0949:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0950:                            attrib);
0951:                    prop_id
0952:                            .setValue(
0953:                                    Constants.PropertyDescriptor.CATEGORY,
0954:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0955:
0956:                    PropertyDescriptor prop_immediate = new PropertyDescriptor(
0957:                            "immediate", beanClass, "isImmediate",
0958:                            "setImmediate");
0959:                    prop_immediate.setDisplayName(resources
0960:                            .getString("Button_immediate_DisplayName"));
0961:                    prop_immediate.setShortDescription(resources
0962:                            .getString("Button_immediate_Description"));
0963:                    prop_immediate.setExpert(false);
0964:                    prop_immediate.setHidden(false);
0965:                    prop_immediate.setPreferred(false);
0966:                    attrib = new AttributeDescriptor("immediate", false, null,
0967:                            true);
0968:                    prop_immediate.setValue(
0969:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0970:                            attrib);
0971:                    prop_immediate
0972:                            .setValue(
0973:                                    Constants.PropertyDescriptor.CATEGORY,
0974:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0975:
0976:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
0977:                            "parent", beanClass, "getParent", null);
0978:                    prop_parent.setDisplayName(resources
0979:                            .getString("Button_parent_DisplayName"));
0980:                    prop_parent.setShortDescription(resources
0981:                            .getString("Button_parent_Description"));
0982:                    prop_parent.setExpert(false);
0983:                    prop_parent.setHidden(true);
0984:                    prop_parent.setPreferred(false);
0985:                    prop_parent
0986:                            .setValue(
0987:                                    Constants.PropertyDescriptor.CATEGORY,
0988:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0989:
0990:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
0991:                            "rendered", beanClass, "isRendered", "setRendered");
0992:                    prop_rendered.setDisplayName(resources
0993:                            .getString("Button_rendered_DisplayName"));
0994:                    prop_rendered.setShortDescription(resources
0995:                            .getString("Button_rendered_Description"));
0996:                    prop_rendered.setExpert(false);
0997:                    prop_rendered.setHidden(false);
0998:                    prop_rendered.setPreferred(false);
0999:                    attrib = new AttributeDescriptor("rendered", false, null,
1000:                            true);
1001:                    prop_rendered.setValue(
1002:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1003:                            attrib);
1004:                    prop_rendered
1005:                            .setValue(
1006:                                    Constants.PropertyDescriptor.CATEGORY,
1007:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1008:
1009:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1010:                            "rendererType", beanClass, "getRendererType",
1011:                            "setRendererType");
1012:                    prop_rendererType.setDisplayName(resources
1013:                            .getString("Button_rendererType_DisplayName"));
1014:                    prop_rendererType.setShortDescription(resources
1015:                            .getString("Button_rendererType_Description"));
1016:                    prop_rendererType.setExpert(false);
1017:                    prop_rendererType.setHidden(true);
1018:                    prop_rendererType.setPreferred(false);
1019:                    prop_rendererType
1020:                            .setValue(
1021:                                    Constants.PropertyDescriptor.CATEGORY,
1022:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1023:
1024:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1025:                            "rendersChildren", beanClass, "getRendersChildren",
1026:                            null);
1027:                    prop_rendersChildren.setDisplayName(resources
1028:                            .getString("Button_rendersChildren_DisplayName"));
1029:                    prop_rendersChildren.setShortDescription(resources
1030:                            .getString("Button_rendersChildren_Description"));
1031:                    prop_rendersChildren.setExpert(false);
1032:                    prop_rendersChildren.setHidden(true);
1033:                    prop_rendersChildren.setPreferred(false);
1034:                    prop_rendersChildren
1035:                            .setValue(
1036:                                    Constants.PropertyDescriptor.CATEGORY,
1037:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1038:
1039:                    PropertyDescriptor prop_value = new PropertyDescriptor(
1040:                            "value", beanClass, "getValue", "setValue");
1041:                    prop_value.setDisplayName(resources
1042:                            .getString("Button_value_DisplayName"));
1043:                    prop_value.setShortDescription(resources
1044:                            .getString("Button_value_Description"));
1045:                    prop_value
1046:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
1047:                    prop_value.setExpert(false);
1048:                    prop_value.setHidden(true);
1049:                    prop_value.setPreferred(false);
1050:                    prop_value
1051:                            .setValue(
1052:                                    Constants.PropertyDescriptor.CATEGORY,
1053:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1054:                    prop_value.setValue("ignoreIsBound", "true");
1055:
1056:                    propDescriptors = new PropertyDescriptor[] { prop_action,
1057:                            prop_actionListener, prop_alt, prop_attributes,
1058:                            prop_childCount, prop_children, prop_disabled,
1059:                            prop_escape, prop_facets, prop_family, prop_id,
1060:                            prop_imageURL, prop_immediate, prop_mini,
1061:                            prop_noTextPadding, prop_onBlur, prop_onClick,
1062:                            prop_onDblClick, prop_onFocus, prop_onKeyDown,
1063:                            prop_onKeyPress, prop_onKeyUp, prop_onMouseDown,
1064:                            prop_onMouseMove, prop_onMouseOut,
1065:                            prop_onMouseOver, prop_onMouseUp, prop_parent,
1066:                            prop_primary, prop_rendered, prop_rendererType,
1067:                            prop_rendersChildren, prop_reset, prop_style,
1068:                            prop_styleClass, prop_tabIndex, prop_text,
1069:                            prop_toolTip, prop_value, prop_visible, };
1070:                    return propDescriptors;
1071:
1072:                } catch (IntrospectionException e) {
1073:                    e.printStackTrace();
1074:                    return null;
1075:                }
1076:
1077:            }
1078:
1079:        }
1080:        //GEN-END:BeanInfo
w_ww.__j___a__va___2s__.___co_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.