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


001:        //GEN-BEGIN:BeanInfo
002:        /*
003:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
004:         *
005:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
006:         *
007:         * The contents of this file are subject to the terms of either the GNU
008:         * General Public License Version 2 only ("GPL") or the Common
009:         * Development and Distribution License("CDDL") (collectively, the
010:         * "License"). You may not use this file except in compliance with the
011:         * License. You can obtain a copy of the License at
012:         * http://www.netbeans.org/cddl-gplv2.html
013:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
014:         * specific language governing permissions and limitations under the
015:         * License.  When distributing the software, include this License Header
016:         * Notice in each file and include the License file at
017:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
018:         * particular file as subject to the "Classpath" exception as provided
019:         * by Sun in the GPL Version 2 section of the License file that
020:         * accompanied this code. If applicable, add the following below the
021:         * License Header, with the fields enclosed by brackets [] replaced by
022:         * your own identifying information:
023:         * "Portions Copyrighted [year] [name of copyright owner]"
024:         *
025:         * Contributor(s):
026:         *
027:         * The Original Software is NetBeans. The Initial Developer of the Original
028:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
029:         * Microsystems, Inc. All Rights Reserved.
030:         *
031:         * If you wish your version of this file to be governed by only the CDDL
032:         * or only the GPL Version 2, indicate your decision by adding
033:         * "[Contributor] elects to include this software in this distribution
034:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
035:         * single choice of license, a recipient has the option to distribute
036:         * your version of this file under either the CDDL, the GPL Version 2 or
037:         * to extend the choice of license to its licensees as provided above.
038:         * However, if you add GPL Version 2 code and therefore, elected the GPL
039:         * Version 2 license, then the option applies only if the new code is
040:         * made subject to such option by the copyright holder.
041:         */
042:        package org.netbeans.modules.visualweb.web.ui.dt.component;
043:
044:        import java.awt.Image;
045:        import java.beans.BeanDescriptor;
046:        import java.beans.BeanInfo;
047:        import java.beans.IntrospectionException;
048:        import java.beans.PropertyDescriptor;
049:        import java.util.Locale;
050:        import java.util.ResourceBundle;
051:
052:        import com.sun.rave.designtime.CategoryDescriptor;
053:        import com.sun.rave.designtime.Constants;
054:        import com.sun.rave.designtime.faces.FacetDescriptor;
055:        import com.sun.rave.designtime.markup.AttributeDescriptor;
056:
057:        import java.beans.SimpleBeanInfo;
058:
059:        /**
060:         * <p>Auto-generated design time metadata class.
061:         * Do <strong>NOT</strong> modify; all changes
062:         * <strong>will</strong> be lost!</p>
063:         */
064:
065:        abstract class LabelBeanInfoBase extends SimpleBeanInfo {
066:
067:            protected static ResourceBundle resources = ResourceBundle
068:                    .getBundle(
069:                            "org.netbeans.modules.visualweb.web.ui.dt.component.Bundle-JSF",
070:                            Locale.getDefault(), LabelBeanInfoBase.class
071:                                    .getClassLoader());
072:
073:            /**
074:             * <p>Construct a new <code>LabelBeanInfoBase</code>.</p>
075:             */
076:            public LabelBeanInfoBase() {
077:
078:                beanClass = com.sun.rave.web.ui.component.Label.class;
079:                defaultPropertyName = "text";
080:                iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Label_C16";
081:                iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Label_C32";
082:                iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Label_M16";
083:                iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Label_M32";
084:
085:            }
086:
087:            /**
088:             * <p>The bean class that this BeanInfo represents.
089:             */
090:            protected Class beanClass;
091:
092:            /**
093:             * <p>The cached BeanDescriptor.</p>
094:             */
095:            protected BeanDescriptor beanDescriptor;
096:
097:            /**
098:             * <p>The index of the default property.</p>
099:             */
100:            protected int defaultPropertyIndex = -2;
101:
102:            /**
103:             * <p>The name of the default property.</p>
104:             */
105:            protected String defaultPropertyName;
106:
107:            /**
108:             * <p>The 16x16 color icon.</p>
109:             */
110:            protected String iconFileName_C16;
111:
112:            /**
113:             * <p>The 32x32 color icon.</p>
114:             */
115:            protected String iconFileName_C32;
116:
117:            /**
118:             * <p>The 16x16 monochrome icon.</p>
119:             */
120:            protected String iconFileName_M16;
121:
122:            /**
123:             * <p>The 32x32 monochrome icon.</p>
124:             */
125:            protected String iconFileName_M32;
126:
127:            /**
128:             * <p>The cached property descriptors.</p>
129:             */
130:            protected PropertyDescriptor[] propDescriptors;
131:
132:            /**
133:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
134:             */
135:            public BeanDescriptor getBeanDescriptor() {
136:
137:                if (beanDescriptor != null) {
138:                    return beanDescriptor;
139:                }
140:
141:                beanDescriptor = new BeanDescriptor(beanClass);
142:                beanDescriptor.setDisplayName(resources
143:                        .getString("Label_DisplayName"));
144:                beanDescriptor.setShortDescription(resources
145:                        .getString("Label_Description"));
146:                beanDescriptor.setExpert(false);
147:                beanDescriptor.setHidden(false);
148:                beanDescriptor.setPreferred(false);
149:                beanDescriptor.setValue(
150:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
151:                        getFacetDescriptors());
152:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
153:                        "projrave_ui_elements_palette_bh_label");
154:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155:                        "label");
156:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
157:                        Boolean.TRUE);
158:                beanDescriptor
159:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
160:                                "projrave_ui_elements_palette_bh_propsheets_bh_label_props");
161:                beanDescriptor.setValue(
162:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
163:                        getCategoryDescriptors());
164:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
165:                        "label");
166:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
167:                        "ui");
168:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
169:                        "http://www.sun.com/web/ui");
170:
171:                return beanDescriptor;
172:
173:            }
174:
175:            /**
176:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
177:             */
178:            private CategoryDescriptor[] getCategoryDescriptors() {
179:
180:                return com.sun.rave.designtime.base.CategoryDescriptors
181:                        .getDefaultCategoryDescriptors();
182:
183:            }
184:
185:            /**
186:             * <p>Return the index of the default property, or
187:             * -1 if there is no default property.</p>
188:             */
189:            public int getDefaultPropertyIndex() {
190:
191:                if (defaultPropertyIndex > -2) {
192:                    return defaultPropertyIndex;
193:                } else {
194:                    if (defaultPropertyName == null) {
195:                        defaultPropertyIndex = -1;
196:                    } else {
197:                        PropertyDescriptor pd[] = getPropertyDescriptors();
198:                        for (int i = 0; i < pd.length; i++) {
199:                            if (defaultPropertyName.equals(pd[i].getName())) {
200:                                defaultPropertyIndex = i;
201:                                break;
202:                            }
203:                        }
204:                    }
205:                }
206:                return defaultPropertyIndex;
207:            }
208:
209:            /**
210:             * <p>The cached facet descriptors.</p>
211:             */
212:            protected FacetDescriptor[] facetDescriptors;
213:
214:            /**
215:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
216:             */
217:            public FacetDescriptor[] getFacetDescriptors() {
218:
219:                if (facetDescriptors != null) {
220:                    return facetDescriptors;
221:                }
222:                facetDescriptors = new FacetDescriptor[] {};
223:                return facetDescriptors;
224:
225:            }
226:
227:            /**
228:             * <p>Return the specified image (if any)
229:             * for this component class.</p>
230:             */
231:            public Image getIcon(int kind) {
232:
233:                String name;
234:                switch (kind) {
235:                case ICON_COLOR_16x16:
236:                    name = iconFileName_C16;
237:                    break;
238:                case ICON_COLOR_32x32:
239:                    name = iconFileName_C32;
240:                    break;
241:                case ICON_MONO_16x16:
242:                    name = iconFileName_M16;
243:                    break;
244:                case ICON_MONO_32x32:
245:                    name = iconFileName_M32;
246:                    break;
247:                default:
248:                    name = null;
249:                    break;
250:                }
251:                if (name == null) {
252:                    return null;
253:                }
254:
255:                Image image = loadImage(name + ".png");
256:                if (image == null) {
257:                    image = loadImage(name + ".gif");
258:                }
259:                return image;
260:
261:            }
262:
263:            /**
264:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
265:             */
266:            private java.lang.Class loadClass(java.lang.String name) {
267:
268:                try {
269:                    return Class.forName(name);
270:                } catch (ClassNotFoundException e) {
271:                    throw new RuntimeException(e);
272:                }
273:
274:            }
275:
276:            /**
277:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
278:             */
279:            public PropertyDescriptor[] getPropertyDescriptors() {
280:
281:                if (propDescriptors != null) {
282:                    return propDescriptors;
283:                }
284:                AttributeDescriptor attrib = null;
285:
286:                try {
287:
288:                    PropertyDescriptor prop_for = new PropertyDescriptor("for",
289:                            beanClass, "getFor", "setFor");
290:                    prop_for.setDisplayName(resources
291:                            .getString("Label_for_DisplayName"));
292:                    prop_for.setShortDescription(resources
293:                            .getString("Label_for_Description"));
294:                    prop_for
295:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
296:                    prop_for.setExpert(false);
297:                    prop_for.setHidden(false);
298:                    prop_for.setPreferred(false);
299:                    attrib = new AttributeDescriptor("for", false, null, true);
300:                    prop_for.setValue(
301:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
302:                            attrib);
303:                    prop_for
304:                            .setValue(
305:                                    Constants.PropertyDescriptor.CATEGORY,
306:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
307:                    prop_for
308:                            .setValue(
309:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
310:                                    com.sun.rave.propertyeditors.domains.InputComponentIdsDomain.class);
311:
312:                    PropertyDescriptor prop_hideIndicators = new PropertyDescriptor(
313:                            "hideIndicators", beanClass, "isHideIndicators",
314:                            "setHideIndicators");
315:                    prop_hideIndicators.setDisplayName(resources
316:                            .getString("Label_hideIndicators_DisplayName"));
317:                    prop_hideIndicators.setShortDescription(resources
318:                            .getString("Label_hideIndicators_Description"));
319:                    prop_hideIndicators.setExpert(false);
320:                    prop_hideIndicators.setHidden(false);
321:                    prop_hideIndicators.setPreferred(false);
322:                    attrib = new AttributeDescriptor("hideIndicators", false,
323:                            null, true);
324:                    prop_hideIndicators.setValue(
325:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
326:                            attrib);
327:                    prop_hideIndicators
328:                            .setValue(
329:                                    Constants.PropertyDescriptor.CATEGORY,
330:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
331:
332:                    PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
333:                            "labelLevel", beanClass, "getLabelLevel",
334:                            "setLabelLevel");
335:                    prop_labelLevel.setDisplayName(resources
336:                            .getString("Label_labelLevel_DisplayName"));
337:                    prop_labelLevel.setShortDescription(resources
338:                            .getString("Label_labelLevel_Description"));
339:                    prop_labelLevel
340:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
341:                    prop_labelLevel.setExpert(false);
342:                    prop_labelLevel.setHidden(false);
343:                    prop_labelLevel.setPreferred(false);
344:                    attrib = new AttributeDescriptor("labelLevel", false, "2",
345:                            true);
346:                    prop_labelLevel.setValue(
347:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
348:                            attrib);
349:                    prop_labelLevel
350:                            .setValue(
351:                                    Constants.PropertyDescriptor.CATEGORY,
352:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
353:                    prop_labelLevel
354:                            .setValue(
355:                                    "com.sun.rave.propertyeditors.DOMAIN_CLASS",
356:                                    org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
357:
358:                    PropertyDescriptor prop_onClick = new PropertyDescriptor(
359:                            "onClick", beanClass, "getOnClick", "setOnClick");
360:                    prop_onClick.setDisplayName(resources
361:                            .getString("Label_onClick_DisplayName"));
362:                    prop_onClick.setShortDescription(resources
363:                            .getString("Label_onClick_Description"));
364:                    prop_onClick
365:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
366:                    prop_onClick.setExpert(false);
367:                    prop_onClick.setHidden(false);
368:                    prop_onClick.setPreferred(false);
369:                    attrib = new AttributeDescriptor("onClick", false, null,
370:                            true);
371:                    prop_onClick.setValue(
372:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
373:                            attrib);
374:                    prop_onClick
375:                            .setValue(
376:                                    Constants.PropertyDescriptor.CATEGORY,
377:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
378:
379:                    PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
380:                            "onMouseDown", beanClass, "getOnMouseDown",
381:                            "setOnMouseDown");
382:                    prop_onMouseDown.setDisplayName(resources
383:                            .getString("Label_onMouseDown_DisplayName"));
384:                    prop_onMouseDown.setShortDescription(resources
385:                            .getString("Label_onMouseDown_Description"));
386:                    prop_onMouseDown
387:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
388:                    prop_onMouseDown.setExpert(false);
389:                    prop_onMouseDown.setHidden(false);
390:                    prop_onMouseDown.setPreferred(false);
391:                    attrib = new AttributeDescriptor("onMouseDown", false,
392:                            null, true);
393:                    prop_onMouseDown.setValue(
394:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
395:                            attrib);
396:                    prop_onMouseDown
397:                            .setValue(
398:                                    Constants.PropertyDescriptor.CATEGORY,
399:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
400:
401:                    PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
402:                            "onMouseMove", beanClass, "getOnMouseMove",
403:                            "setOnMouseMove");
404:                    prop_onMouseMove.setDisplayName(resources
405:                            .getString("Label_onMouseMove_DisplayName"));
406:                    prop_onMouseMove.setShortDescription(resources
407:                            .getString("Label_onMouseMove_Description"));
408:                    prop_onMouseMove
409:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
410:                    prop_onMouseMove.setExpert(false);
411:                    prop_onMouseMove.setHidden(false);
412:                    prop_onMouseMove.setPreferred(false);
413:                    attrib = new AttributeDescriptor("onMouseMove", false,
414:                            null, true);
415:                    prop_onMouseMove.setValue(
416:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
417:                            attrib);
418:                    prop_onMouseMove
419:                            .setValue(
420:                                    Constants.PropertyDescriptor.CATEGORY,
421:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
422:
423:                    PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
424:                            "onMouseOut", beanClass, "getOnMouseOut",
425:                            "setOnMouseOut");
426:                    prop_onMouseOut.setDisplayName(resources
427:                            .getString("Label_onMouseOut_DisplayName"));
428:                    prop_onMouseOut.setShortDescription(resources
429:                            .getString("Label_onMouseOut_Description"));
430:                    prop_onMouseOut
431:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
432:                    prop_onMouseOut.setExpert(false);
433:                    prop_onMouseOut.setHidden(false);
434:                    prop_onMouseOut.setPreferred(false);
435:                    attrib = new AttributeDescriptor("onMouseOut", false, null,
436:                            true);
437:                    prop_onMouseOut.setValue(
438:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
439:                            attrib);
440:                    prop_onMouseOut
441:                            .setValue(
442:                                    Constants.PropertyDescriptor.CATEGORY,
443:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
444:
445:                    PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
446:                            "onMouseOver", beanClass, "getOnMouseOver",
447:                            "setOnMouseOver");
448:                    prop_onMouseOver.setDisplayName(resources
449:                            .getString("Label_onMouseOver_DisplayName"));
450:                    prop_onMouseOver.setShortDescription(resources
451:                            .getString("Label_onMouseOver_Description"));
452:                    prop_onMouseOver
453:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
454:                    prop_onMouseOver.setExpert(false);
455:                    prop_onMouseOver.setHidden(false);
456:                    prop_onMouseOver.setPreferred(false);
457:                    attrib = new AttributeDescriptor("onMouseOver", false,
458:                            null, true);
459:                    prop_onMouseOver.setValue(
460:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
461:                            attrib);
462:                    prop_onMouseOver
463:                            .setValue(
464:                                    Constants.PropertyDescriptor.CATEGORY,
465:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
466:
467:                    PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
468:                            "onMouseUp", beanClass, "getOnMouseUp",
469:                            "setOnMouseUp");
470:                    prop_onMouseUp.setDisplayName(resources
471:                            .getString("Label_onMouseUp_DisplayName"));
472:                    prop_onMouseUp.setShortDescription(resources
473:                            .getString("Label_onMouseUp_Description"));
474:                    prop_onMouseUp
475:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
476:                    prop_onMouseUp.setExpert(false);
477:                    prop_onMouseUp.setHidden(false);
478:                    prop_onMouseUp.setPreferred(false);
479:                    attrib = new AttributeDescriptor("onMouseUp", false, null,
480:                            true);
481:                    prop_onMouseUp.setValue(
482:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
483:                            attrib);
484:                    prop_onMouseUp
485:                            .setValue(
486:                                    Constants.PropertyDescriptor.CATEGORY,
487:                                    com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
488:
489:                    PropertyDescriptor prop_requiredIndicator = new PropertyDescriptor(
490:                            "requiredIndicator", beanClass,
491:                            "isRequiredIndicator", "setRequiredIndicator");
492:                    prop_requiredIndicator.setDisplayName(resources
493:                            .getString("Label_requiredIndicator_DisplayName"));
494:                    prop_requiredIndicator.setShortDescription(resources
495:                            .getString("Label_requiredIndicator_Description"));
496:                    prop_requiredIndicator.setExpert(false);
497:                    prop_requiredIndicator.setHidden(false);
498:                    prop_requiredIndicator.setPreferred(false);
499:                    attrib = new AttributeDescriptor("requiredIndicator",
500:                            false, null, true);
501:                    prop_requiredIndicator.setValue(
502:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
503:                            attrib);
504:                    prop_requiredIndicator
505:                            .setValue(
506:                                    Constants.PropertyDescriptor.CATEGORY,
507:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
508:
509:                    PropertyDescriptor prop_style = new PropertyDescriptor(
510:                            "style", beanClass, "getStyle", "setStyle");
511:                    prop_style.setDisplayName(resources
512:                            .getString("Label_style_DisplayName"));
513:                    prop_style.setShortDescription(resources
514:                            .getString("Label_style_Description"));
515:                    prop_style
516:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
517:                    prop_style.setExpert(false);
518:                    prop_style.setHidden(false);
519:                    prop_style.setPreferred(false);
520:                    attrib = new AttributeDescriptor("style", false, null, true);
521:                    prop_style.setValue(
522:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
523:                            attrib);
524:                    prop_style
525:                            .setValue(
526:                                    Constants.PropertyDescriptor.CATEGORY,
527:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
528:
529:                    PropertyDescriptor prop_styleClass = new PropertyDescriptor(
530:                            "styleClass", beanClass, "getStyleClass",
531:                            "setStyleClass");
532:                    prop_styleClass.setDisplayName(resources
533:                            .getString("Label_styleClass_DisplayName"));
534:                    prop_styleClass.setShortDescription(resources
535:                            .getString("Label_styleClass_Description"));
536:                    prop_styleClass
537:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
538:                    prop_styleClass.setExpert(false);
539:                    prop_styleClass.setHidden(false);
540:                    prop_styleClass.setPreferred(false);
541:                    attrib = new AttributeDescriptor("styleClass", false, null,
542:                            true);
543:                    prop_styleClass.setValue(
544:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
545:                            attrib);
546:                    prop_styleClass
547:                            .setValue(
548:                                    Constants.PropertyDescriptor.CATEGORY,
549:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
550:
551:                    PropertyDescriptor prop_text = new PropertyDescriptor(
552:                            "text", beanClass, "getText", "setText");
553:                    prop_text.setDisplayName(resources
554:                            .getString("Label_text_DisplayName"));
555:                    prop_text.setShortDescription(resources
556:                            .getString("Label_text_Description"));
557:                    prop_text
558:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
559:                    prop_text.setExpert(false);
560:                    prop_text.setHidden(false);
561:                    prop_text.setPreferred(false);
562:                    attrib = new AttributeDescriptor("text", false, null, true);
563:                    prop_text.setValue(
564:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
565:                            attrib);
566:                    prop_text
567:                            .setValue(
568:                                    Constants.PropertyDescriptor.CATEGORY,
569:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
570:
571:                    PropertyDescriptor prop_toolTip = new PropertyDescriptor(
572:                            "toolTip", beanClass, "getToolTip", "setToolTip");
573:                    prop_toolTip.setDisplayName(resources
574:                            .getString("Label_toolTip_DisplayName"));
575:                    prop_toolTip.setShortDescription(resources
576:                            .getString("Label_toolTip_Description"));
577:                    prop_toolTip
578:                            .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
579:                    prop_toolTip.setExpert(false);
580:                    prop_toolTip.setHidden(false);
581:                    prop_toolTip.setPreferred(false);
582:                    attrib = new AttributeDescriptor("toolTip", false, null,
583:                            true);
584:                    prop_toolTip.setValue(
585:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
586:                            attrib);
587:                    prop_toolTip
588:                            .setValue(
589:                                    Constants.PropertyDescriptor.CATEGORY,
590:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
591:
592:                    PropertyDescriptor prop_visible = new PropertyDescriptor(
593:                            "visible", beanClass, "isVisible", "setVisible");
594:                    prop_visible.setDisplayName(resources
595:                            .getString("Label_visible_DisplayName"));
596:                    prop_visible.setShortDescription(resources
597:                            .getString("Label_visible_Description"));
598:                    prop_visible.setExpert(false);
599:                    prop_visible.setHidden(false);
600:                    prop_visible.setPreferred(false);
601:                    attrib = new AttributeDescriptor("visible", false, "true",
602:                            true);
603:                    prop_visible.setValue(
604:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
605:                            attrib);
606:                    prop_visible
607:                            .setValue(
608:                                    Constants.PropertyDescriptor.CATEGORY,
609:                                    com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
610:
611:                    PropertyDescriptor prop_attributes = new PropertyDescriptor(
612:                            "attributes", beanClass, "getAttributes", null);
613:                    prop_attributes.setDisplayName(resources
614:                            .getString("Label_attributes_DisplayName"));
615:                    prop_attributes.setShortDescription(resources
616:                            .getString("Label_attributes_Description"));
617:                    prop_attributes.setExpert(false);
618:                    prop_attributes.setHidden(true);
619:                    prop_attributes.setPreferred(false);
620:                    prop_attributes
621:                            .setValue(
622:                                    Constants.PropertyDescriptor.CATEGORY,
623:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
624:
625:                    PropertyDescriptor prop_childCount = new PropertyDescriptor(
626:                            "childCount", beanClass, "getChildCount", null);
627:                    prop_childCount.setDisplayName(resources
628:                            .getString("Label_childCount_DisplayName"));
629:                    prop_childCount.setShortDescription(resources
630:                            .getString("Label_childCount_Description"));
631:                    prop_childCount.setExpert(false);
632:                    prop_childCount.setHidden(true);
633:                    prop_childCount.setPreferred(false);
634:                    prop_childCount
635:                            .setValue(
636:                                    Constants.PropertyDescriptor.CATEGORY,
637:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
638:
639:                    PropertyDescriptor prop_children = new PropertyDescriptor(
640:                            "children", beanClass, "getChildren", null);
641:                    prop_children.setDisplayName(resources
642:                            .getString("Label_children_DisplayName"));
643:                    prop_children.setShortDescription(resources
644:                            .getString("Label_children_Description"));
645:                    prop_children.setExpert(false);
646:                    prop_children.setHidden(true);
647:                    prop_children.setPreferred(false);
648:                    prop_children
649:                            .setValue(
650:                                    Constants.PropertyDescriptor.CATEGORY,
651:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
652:
653:                    PropertyDescriptor prop_converter = new PropertyDescriptor(
654:                            "converter", beanClass, "getConverter",
655:                            "setConverter");
656:                    prop_converter.setDisplayName(resources
657:                            .getString("Label_converter_DisplayName"));
658:                    prop_converter.setShortDescription(resources
659:                            .getString("Label_converter_Description"));
660:                    prop_converter
661:                            .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
662:                    prop_converter.setExpert(false);
663:                    prop_converter.setHidden(false);
664:                    prop_converter.setPreferred(false);
665:                    attrib = new AttributeDescriptor("converter", false, null,
666:                            true);
667:                    prop_converter.setValue(
668:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
669:                            attrib);
670:                    prop_converter
671:                            .setValue(
672:                                    Constants.PropertyDescriptor.CATEGORY,
673:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
674:
675:                    PropertyDescriptor prop_facets = new PropertyDescriptor(
676:                            "facets", beanClass, "getFacets", null);
677:                    prop_facets.setDisplayName(resources
678:                            .getString("Label_facets_DisplayName"));
679:                    prop_facets.setShortDescription(resources
680:                            .getString("Label_facets_Description"));
681:                    prop_facets.setExpert(false);
682:                    prop_facets.setHidden(true);
683:                    prop_facets.setPreferred(false);
684:                    prop_facets
685:                            .setValue(
686:                                    Constants.PropertyDescriptor.CATEGORY,
687:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
688:
689:                    PropertyDescriptor prop_family = new PropertyDescriptor(
690:                            "family", beanClass, "getFamily", null);
691:                    prop_family.setDisplayName(resources
692:                            .getString("Label_family_DisplayName"));
693:                    prop_family.setShortDescription(resources
694:                            .getString("Label_family_Description"));
695:                    prop_family.setExpert(false);
696:                    prop_family.setHidden(true);
697:                    prop_family.setPreferred(false);
698:                    prop_family
699:                            .setValue(
700:                                    Constants.PropertyDescriptor.CATEGORY,
701:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
702:
703:                    PropertyDescriptor prop_id = new PropertyDescriptor("id",
704:                            beanClass, "getId", "setId");
705:                    prop_id.setDisplayName(resources
706:                            .getString("Label_id_DisplayName"));
707:                    prop_id.setShortDescription(resources
708:                            .getString("Label_id_Description"));
709:                    prop_id.setExpert(false);
710:                    prop_id.setHidden(true);
711:                    prop_id.setPreferred(false);
712:                    attrib = new AttributeDescriptor("id", false, null, true);
713:                    prop_id.setValue(
714:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
715:                            attrib);
716:                    prop_id
717:                            .setValue(
718:                                    Constants.PropertyDescriptor.CATEGORY,
719:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
720:
721:                    PropertyDescriptor prop_localValue = new PropertyDescriptor(
722:                            "localValue", beanClass, "getLocalValue", null);
723:                    prop_localValue.setDisplayName(resources
724:                            .getString("Label_localValue_DisplayName"));
725:                    prop_localValue.setShortDescription(resources
726:                            .getString("Label_localValue_Description"));
727:                    prop_localValue.setExpert(false);
728:                    prop_localValue.setHidden(true);
729:                    prop_localValue.setPreferred(false);
730:                    prop_localValue
731:                            .setValue(
732:                                    Constants.PropertyDescriptor.CATEGORY,
733:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
734:
735:                    PropertyDescriptor prop_parent = new PropertyDescriptor(
736:                            "parent", beanClass, "getParent", null);
737:                    prop_parent.setDisplayName(resources
738:                            .getString("Label_parent_DisplayName"));
739:                    prop_parent.setShortDescription(resources
740:                            .getString("Label_parent_Description"));
741:                    prop_parent.setExpert(false);
742:                    prop_parent.setHidden(true);
743:                    prop_parent.setPreferred(false);
744:                    prop_parent
745:                            .setValue(
746:                                    Constants.PropertyDescriptor.CATEGORY,
747:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
748:
749:                    PropertyDescriptor prop_rendered = new PropertyDescriptor(
750:                            "rendered", beanClass, "isRendered", "setRendered");
751:                    prop_rendered.setDisplayName(resources
752:                            .getString("Label_rendered_DisplayName"));
753:                    prop_rendered.setShortDescription(resources
754:                            .getString("Label_rendered_Description"));
755:                    prop_rendered.setExpert(false);
756:                    prop_rendered.setHidden(false);
757:                    prop_rendered.setPreferred(false);
758:                    attrib = new AttributeDescriptor("rendered", false, null,
759:                            true);
760:                    prop_rendered.setValue(
761:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
762:                            attrib);
763:                    prop_rendered
764:                            .setValue(
765:                                    Constants.PropertyDescriptor.CATEGORY,
766:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
767:
768:                    PropertyDescriptor prop_rendererType = new PropertyDescriptor(
769:                            "rendererType", beanClass, "getRendererType",
770:                            "setRendererType");
771:                    prop_rendererType.setDisplayName(resources
772:                            .getString("Label_rendererType_DisplayName"));
773:                    prop_rendererType.setShortDescription(resources
774:                            .getString("Label_rendererType_Description"));
775:                    prop_rendererType.setExpert(false);
776:                    prop_rendererType.setHidden(true);
777:                    prop_rendererType.setPreferred(false);
778:                    prop_rendererType
779:                            .setValue(
780:                                    Constants.PropertyDescriptor.CATEGORY,
781:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
782:
783:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
784:                            "rendersChildren", beanClass, "getRendersChildren",
785:                            null);
786:                    prop_rendersChildren.setDisplayName(resources
787:                            .getString("Label_rendersChildren_DisplayName"));
788:                    prop_rendersChildren.setShortDescription(resources
789:                            .getString("Label_rendersChildren_Description"));
790:                    prop_rendersChildren.setExpert(false);
791:                    prop_rendersChildren.setHidden(true);
792:                    prop_rendersChildren.setPreferred(false);
793:                    prop_rendersChildren
794:                            .setValue(
795:                                    Constants.PropertyDescriptor.CATEGORY,
796:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
797:
798:                    PropertyDescriptor prop_value = new PropertyDescriptor(
799:                            "value", beanClass, "getValue", "setValue");
800:                    prop_value.setDisplayName(resources
801:                            .getString("Label_value_DisplayName"));
802:                    prop_value.setShortDescription(resources
803:                            .getString("Label_value_Description"));
804:                    prop_value.setExpert(false);
805:                    prop_value.setHidden(true);
806:                    prop_value.setPreferred(false);
807:                    prop_value
808:                            .setValue(
809:                                    Constants.PropertyDescriptor.CATEGORY,
810:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
811:
812:                    propDescriptors = new PropertyDescriptor[] {
813:                            prop_attributes, prop_childCount, prop_children,
814:                            prop_converter, prop_facets, prop_family, prop_for,
815:                            prop_hideIndicators, prop_id, prop_labelLevel,
816:                            prop_localValue, prop_onClick, prop_onMouseDown,
817:                            prop_onMouseMove, prop_onMouseOut,
818:                            prop_onMouseOver, prop_onMouseUp, prop_parent,
819:                            prop_rendered, prop_rendererType,
820:                            prop_rendersChildren, prop_requiredIndicator,
821:                            prop_style, prop_styleClass, prop_text,
822:                            prop_toolTip, prop_value, prop_visible, };
823:                    return propDescriptors;
824:
825:                } catch (IntrospectionException e) {
826:                    e.printStackTrace();
827:                    return null;
828:                }
829:
830:            }
831:
832:        }
833:        //GEN-END:BeanInfo
www__.___j_a_va___2s_.__com_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.