Source Code Cross Referenced for UISelectOneBeanInfoBase.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » faces » dt_1_1 » 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.faces.dt_1_1.component 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003:         *
004:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005:         *
006:         * The contents of this file are subject to the terms of either the GNU
007:         * General Public License Version 2 only ("GPL") or the Common
008:         * Development and Distribution License("CDDL") (collectively, the
009:         * "License"). You may not use this file except in compliance with the
010:         * License. You can obtain a copy of the License at
011:         * http://www.netbeans.org/cddl-gplv2.html
012:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013:         * specific language governing permissions and limitations under the
014:         * License.  When distributing the software, include this License Header
015:         * Notice in each file and include the License file at
016:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
017:         * particular file as subject to the "Classpath" exception as provided
018:         * by Sun in the GPL Version 2 section of the License file that
019:         * accompanied this code. If applicable, add the following below the
020:         * License Header, with the fields enclosed by brackets [] replaced by
021:         * your own identifying information:
022:         * "Portions Copyrighted [year] [name of copyright owner]"
023:         *
024:         * Contributor(s):
025:         *
026:         * The Original Software is NetBeans. The Initial Developer of the Original
027:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028:         * Microsystems, Inc. All Rights Reserved.
029:         *
030:         * If you wish your version of this file to be governed by only the CDDL
031:         * or only the GPL Version 2, indicate your decision by adding
032:         * "[Contributor] elects to include this software in this distribution
033:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
034:         * single choice of license, a recipient has the option to distribute
035:         * your version of this file under either the CDDL, the GPL Version 2 or
036:         * to extend the choice of license to its licensees as provided above.
037:         * However, if you add GPL Version 2 code and therefore, elected the GPL
038:         * Version 2 license, then the option applies only if the new code is
039:         * made subject to such option by the copyright holder.
040:         */
041:
042:        package org.netbeans.modules.visualweb.faces.dt_1_1.component;
043:
044:        import java.beans.BeanDescriptor;
045:        import java.beans.IntrospectionException;
046:        import java.beans.PropertyDescriptor;
047:        import java.util.Locale;
048:        import java.util.List;
049:        import java.util.ArrayList;
050:        import java.util.Arrays;
051:        import java.util.ResourceBundle;
052:
053:        import com.sun.rave.designtime.CategoryDescriptor;
054:        import com.sun.rave.designtime.Constants;
055:        import com.sun.rave.designtime.faces.FacetDescriptor;
056:        import com.sun.rave.designtime.markup.AttributeDescriptor;
057:
058:        import org.netbeans.modules.visualweb.faces.dt.HtmlBeanInfoBase;
059:        import org.netbeans.modules.visualweb.faces.dt.BeanDescriptorBase;
060:        import org.netbeans.modules.visualweb.faces.dt.PropertyDescriptorBase;
061:        import org.netbeans.modules.visualweb.faces.dt_1_1.propertyeditors.JSF1_1ConverterPropertyEditor;
062:
063:        /**
064:         * <p>Auto-generated design time metadata class.
065:         * Do <strong>NOT</strong> modify; all changes
066:         * <strong>will</strong> be lost!</p>
067:         */
068:
069:        abstract class UISelectOneBeanInfoBase extends HtmlBeanInfoBase {
070:
071:            protected static ResourceBundle resources = ResourceBundle
072:                    .getBundle(
073:                            "org.netbeans.modules.visualweb.faces.dt_1_1.component.Bundle-JSF",
074:                            Locale.getDefault(), UISelectOneBeanInfoBase.class
075:                                    .getClassLoader());
076:
077:            /**
078:             * <p>Construct a new <code>UISelectOneBeanInfoBase</code>.</p>
079:             */
080:            public UISelectOneBeanInfoBase() {
081:
082:                beanClass = javax.faces.component.UISelectOne.class;
083:                iconFileName_C16 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UISelectOne_C16";
084:                iconFileName_C32 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UISelectOne_C32";
085:                iconFileName_M16 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UISelectOne_M16";
086:                iconFileName_M32 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UISelectOne_M32";
087:
088:            }
089:
090:            private BeanDescriptor beanDescriptor;
091:
092:            /**
093:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
094:             */
095:            public BeanDescriptor getBeanDescriptor() {
096:
097:                if (beanDescriptor != null) {
098:                    return beanDescriptor;
099:                }
100:
101:                beanDescriptor = new BeanDescriptorBase(beanClass);
102:                beanDescriptor.setDisplayName(resources
103:                        .getString("UISelectOne_DisplayName"));
104:                beanDescriptor.setShortDescription(resources
105:                        .getString("UISelectOne_Description"));
106:                beanDescriptor.setExpert(false);
107:                beanDescriptor.setHidden(false);
108:                beanDescriptor.setPreferred(false);
109:                beanDescriptor.setValue(
110:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
111:                        getFacetDescriptors());
112:                beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
113:                        "projrave_ui_elements_palette_jsfstd_dropdown_list");
114:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
115:                        "dropdown");
116:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
117:                        Boolean.TRUE);
118:                beanDescriptor
119:                        .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
120:                                "projrave_ui_elements_propsheets_jsfstd_dropdown_list_props");
121:                beanDescriptor.setValue(
122:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
123:                        getCategoryDescriptors());
124:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
125:                        "selectOneMenu");
126:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
127:                        "h");
128:                beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
129:                        "http://java.sun.com/jsf/html");
130:
131:                return beanDescriptor;
132:
133:            }
134:
135:            /**
136:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
137:             */
138:            private CategoryDescriptor[] getCategoryDescriptors() {
139:
140:                return com.sun.rave.designtime.base.CategoryDescriptors
141:                        .getDefaultCategoryDescriptors();
142:
143:            }
144:
145:            /**
146:             * <p>The cached facet descriptors.</p>
147:             */
148:            protected FacetDescriptor[] facetDescriptors;
149:
150:            /**
151:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
152:             */
153:            public FacetDescriptor[] getFacetDescriptors() {
154:
155:                if (facetDescriptors != null) {
156:                    return facetDescriptors;
157:                }
158:                facetDescriptors = new FacetDescriptor[] {};
159:                return facetDescriptors;
160:
161:            }
162:
163:            /**
164:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
165:             */
166:
167:            private PropertyDescriptor[] propertyDescriptors;
168:
169:            /**
170:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
171:             */
172:            public PropertyDescriptor[] getPropertyDescriptors() {
173:
174:                if (propertyDescriptors != null) {
175:                    return propertyDescriptors;
176:                }
177:                AttributeDescriptor attrib = null;
178:
179:                try {
180:
181:                    PropertyDescriptor prop_attributes = new PropertyDescriptorBase(
182:                            "attributes", beanClass, "getAttributes", null);
183:                    prop_attributes.setDisplayName(resources
184:                            .getString("UISelectOne_attributes_DisplayName"));
185:                    prop_attributes.setShortDescription(resources
186:                            .getString("UISelectOne_attributes_Description"));
187:                    prop_attributes.setExpert(false);
188:                    prop_attributes.setHidden(true);
189:                    prop_attributes.setPreferred(false);
190:                    prop_attributes
191:                            .setValue(
192:                                    Constants.PropertyDescriptor.CATEGORY,
193:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
194:
195:                    PropertyDescriptor prop_childCount = new PropertyDescriptorBase(
196:                            "childCount", beanClass, "getChildCount", null);
197:                    prop_childCount.setDisplayName(resources
198:                            .getString("UISelectOne_childCount_DisplayName"));
199:                    prop_childCount.setShortDescription(resources
200:                            .getString("UISelectOne_childCount_Description"));
201:                    prop_childCount.setExpert(false);
202:                    prop_childCount.setHidden(true);
203:                    prop_childCount.setPreferred(false);
204:                    prop_childCount
205:                            .setValue(
206:                                    Constants.PropertyDescriptor.CATEGORY,
207:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
208:
209:                    PropertyDescriptor prop_children = new PropertyDescriptorBase(
210:                            "children", beanClass, "getChildren", null);
211:                    prop_children.setDisplayName(resources
212:                            .getString("UISelectOne_children_DisplayName"));
213:                    prop_children.setShortDescription(resources
214:                            .getString("UISelectOne_children_Description"));
215:                    prop_children.setExpert(false);
216:                    prop_children.setHidden(true);
217:                    prop_children.setPreferred(false);
218:                    prop_children
219:                            .setValue(
220:                                    Constants.PropertyDescriptor.CATEGORY,
221:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
222:
223:                    PropertyDescriptor prop_converter = new PropertyDescriptorBase(
224:                            "converter", beanClass, "getConverter",
225:                            "setConverter");
226:                    prop_converter.setDisplayName(resources
227:                            .getString("UISelectOne_converter_DisplayName"));
228:                    prop_converter.setShortDescription(resources
229:                            .getString("UISelectOne_converter_Description"));
230:                    prop_converter
231:                            .setPropertyEditorClass(JSF1_1ConverterPropertyEditor.class);
232:                    prop_converter.setExpert(false);
233:                    prop_converter.setHidden(false);
234:                    prop_converter.setPreferred(false);
235:                    attrib = new AttributeDescriptor("converter", false, null,
236:                            true);
237:                    prop_converter.setValue(
238:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
239:                            attrib);
240:                    prop_converter
241:                            .setValue(
242:                                    Constants.PropertyDescriptor.CATEGORY,
243:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
244:
245:                    PropertyDescriptor prop_disabledClass = new PropertyDescriptorBase(
246:                            "disabledClass", beanClass, "getDisabledClass",
247:                            "setDisabledClass");
248:                    prop_disabledClass
249:                            .setDisplayName(resources
250:                                    .getString("UISelectOne_disabledClass_DisplayName"));
251:                    prop_disabledClass
252:                            .setShortDescription(resources
253:                                    .getString("UISelectOne_disabledClass_Description"));
254:                    prop_disabledClass.setExpert(false);
255:                    prop_disabledClass.setHidden(false);
256:                    prop_disabledClass.setPreferred(false);
257:                    attrib = new AttributeDescriptor("disabledClass", false,
258:                            null, true);
259:                    prop_disabledClass.setValue(
260:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
261:                            attrib);
262:                    prop_disabledClass
263:                            .setValue(
264:                                    Constants.PropertyDescriptor.CATEGORY,
265:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
266:
267:                    PropertyDescriptor prop_enabledClass = new PropertyDescriptorBase(
268:                            "enabledClass", beanClass, "getEnabledClass",
269:                            "setEnabledClass");
270:                    prop_enabledClass.setDisplayName(resources
271:                            .getString("UISelectOne_enabledClass_DisplayName"));
272:                    prop_enabledClass.setShortDescription(resources
273:                            .getString("UISelectOne_enabledClass_Description"));
274:                    prop_enabledClass.setExpert(false);
275:                    prop_enabledClass.setHidden(false);
276:                    prop_enabledClass.setPreferred(false);
277:                    attrib = new AttributeDescriptor("enabledClass", false,
278:                            null, true);
279:                    prop_enabledClass.setValue(
280:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
281:                            attrib);
282:                    prop_enabledClass
283:                            .setValue(
284:                                    Constants.PropertyDescriptor.CATEGORY,
285:                                    com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
286:
287:                    PropertyDescriptor prop_facets = new PropertyDescriptorBase(
288:                            "facets", beanClass, "getFacets", null);
289:                    prop_facets.setDisplayName(resources
290:                            .getString("UISelectOne_facets_DisplayName"));
291:                    prop_facets.setShortDescription(resources
292:                            .getString("UISelectOne_facets_Description"));
293:                    prop_facets.setExpert(false);
294:                    prop_facets.setHidden(true);
295:                    prop_facets.setPreferred(false);
296:                    prop_facets
297:                            .setValue(
298:                                    Constants.PropertyDescriptor.CATEGORY,
299:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
300:
301:                    PropertyDescriptor prop_family = new PropertyDescriptorBase(
302:                            "family", beanClass, "getFamily", null);
303:                    prop_family.setDisplayName(resources
304:                            .getString("UISelectOne_family_DisplayName"));
305:                    prop_family.setShortDescription(resources
306:                            .getString("UISelectOne_family_Description"));
307:                    prop_family.setExpert(false);
308:                    prop_family.setHidden(true);
309:                    prop_family.setPreferred(false);
310:                    prop_family
311:                            .setValue(
312:                                    Constants.PropertyDescriptor.CATEGORY,
313:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
314:
315:                    PropertyDescriptor prop_id = new PropertyDescriptorBase(
316:                            "id", beanClass, "getId", "setId");
317:                    prop_id.setDisplayName(resources
318:                            .getString("UISelectOne_id_DisplayName"));
319:                    prop_id.setShortDescription(resources
320:                            .getString("UISelectOne_id_Description"));
321:                    prop_id.setExpert(false);
322:                    prop_id.setHidden(true);
323:                    prop_id.setPreferred(false);
324:                    attrib = new AttributeDescriptor("id", false, null, true);
325:                    prop_id.setValue(
326:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
327:                            attrib);
328:                    prop_id
329:                            .setValue(
330:                                    Constants.PropertyDescriptor.CATEGORY,
331:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
332:
333:                    PropertyDescriptor prop_immediate = new PropertyDescriptorBase(
334:                            "immediate", beanClass, "isImmediate",
335:                            "setImmediate");
336:                    prop_immediate.setDisplayName(resources
337:                            .getString("UISelectOne_immediate_DisplayName"));
338:                    prop_immediate.setShortDescription(resources
339:                            .getString("UISelectOne_immediate_Description"));
340:                    prop_immediate.setExpert(false);
341:                    prop_immediate.setHidden(false);
342:                    prop_immediate.setPreferred(false);
343:                    attrib = new AttributeDescriptor("immediate", false, null,
344:                            true);
345:                    prop_immediate.setValue(
346:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
347:                            attrib);
348:                    prop_immediate
349:                            .setValue(
350:                                    Constants.PropertyDescriptor.CATEGORY,
351:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
352:
353:                    PropertyDescriptor prop_localValue = new PropertyDescriptorBase(
354:                            "localValue", beanClass, "getLocalValue", null);
355:                    prop_localValue.setDisplayName(resources
356:                            .getString("UISelectOne_localValue_DisplayName"));
357:                    prop_localValue.setShortDescription(resources
358:                            .getString("UISelectOne_localValue_Description"));
359:                    prop_localValue.setExpert(false);
360:                    prop_localValue.setHidden(true);
361:                    prop_localValue.setPreferred(false);
362:                    prop_localValue
363:                            .setValue(
364:                                    Constants.PropertyDescriptor.CATEGORY,
365:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
366:
367:                    PropertyDescriptor prop_localValueSet = new PropertyDescriptorBase(
368:                            "localValueSet", beanClass, "isLocalValueSet",
369:                            "setLocalValueSet");
370:                    prop_localValueSet
371:                            .setDisplayName(resources
372:                                    .getString("UISelectOne_localValueSet_DisplayName"));
373:                    prop_localValueSet
374:                            .setShortDescription(resources
375:                                    .getString("UISelectOne_localValueSet_Description"));
376:                    prop_localValueSet.setExpert(false);
377:                    prop_localValueSet.setHidden(true);
378:                    prop_localValueSet.setPreferred(false);
379:                    prop_localValueSet
380:                            .setValue(
381:                                    Constants.PropertyDescriptor.CATEGORY,
382:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
383:
384:                    PropertyDescriptor prop_parent = new PropertyDescriptorBase(
385:                            "parent", beanClass, "getParent", null);
386:                    prop_parent.setDisplayName(resources
387:                            .getString("UISelectOne_parent_DisplayName"));
388:                    prop_parent.setShortDescription(resources
389:                            .getString("UISelectOne_parent_Description"));
390:                    prop_parent.setExpert(false);
391:                    prop_parent.setHidden(true);
392:                    prop_parent.setPreferred(false);
393:                    prop_parent
394:                            .setValue(
395:                                    Constants.PropertyDescriptor.CATEGORY,
396:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
397:
398:                    PropertyDescriptor prop_rendered = new PropertyDescriptorBase(
399:                            "rendered", beanClass, "isRendered", "setRendered");
400:                    prop_rendered.setDisplayName(resources
401:                            .getString("UISelectOne_rendered_DisplayName"));
402:                    prop_rendered.setShortDescription(resources
403:                            .getString("UISelectOne_rendered_Description"));
404:                    prop_rendered.setExpert(false);
405:                    prop_rendered.setHidden(false);
406:                    prop_rendered.setPreferred(false);
407:                    attrib = new AttributeDescriptor("rendered", false, null,
408:                            true);
409:                    prop_rendered.setValue(
410:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
411:                            attrib);
412:                    prop_rendered
413:                            .setValue(
414:                                    Constants.PropertyDescriptor.CATEGORY,
415:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
416:
417:                    PropertyDescriptor prop_rendererType = new PropertyDescriptorBase(
418:                            "rendererType", beanClass, "getRendererType",
419:                            "setRendererType");
420:                    prop_rendererType.setDisplayName(resources
421:                            .getString("UISelectOne_rendererType_DisplayName"));
422:                    prop_rendererType.setShortDescription(resources
423:                            .getString("UISelectOne_rendererType_Description"));
424:                    prop_rendererType.setExpert(false);
425:                    prop_rendererType.setHidden(true);
426:                    prop_rendererType.setPreferred(false);
427:                    prop_rendererType
428:                            .setValue(
429:                                    Constants.PropertyDescriptor.CATEGORY,
430:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
431:
432:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptorBase(
433:                            "rendersChildren", beanClass, "getRendersChildren",
434:                            null);
435:                    prop_rendersChildren
436:                            .setDisplayName(resources
437:                                    .getString("UISelectOne_rendersChildren_DisplayName"));
438:                    prop_rendersChildren
439:                            .setShortDescription(resources
440:                                    .getString("UISelectOne_rendersChildren_Description"));
441:                    prop_rendersChildren.setExpert(false);
442:                    prop_rendersChildren.setHidden(true);
443:                    prop_rendersChildren.setPreferred(false);
444:                    prop_rendersChildren
445:                            .setValue(
446:                                    Constants.PropertyDescriptor.CATEGORY,
447:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
448:
449:                    PropertyDescriptor prop_required = new PropertyDescriptorBase(
450:                            "required", beanClass, "isRequired", "setRequired");
451:                    prop_required.setDisplayName(resources
452:                            .getString("UISelectOne_required_DisplayName"));
453:                    prop_required.setShortDescription(resources
454:                            .getString("UISelectOne_required_Description"));
455:                    prop_required.setExpert(false);
456:                    prop_required.setHidden(false);
457:                    prop_required.setPreferred(false);
458:                    attrib = new AttributeDescriptor("required", false, null,
459:                            true);
460:                    prop_required.setValue(
461:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
462:                            attrib);
463:                    prop_required
464:                            .setValue(
465:                                    Constants.PropertyDescriptor.CATEGORY,
466:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
467:
468:                    PropertyDescriptor prop_submittedValue = new PropertyDescriptorBase(
469:                            "submittedValue", beanClass, "getSubmittedValue",
470:                            "setSubmittedValue");
471:                    prop_submittedValue
472:                            .setDisplayName(resources
473:                                    .getString("UISelectOne_submittedValue_DisplayName"));
474:                    prop_submittedValue
475:                            .setShortDescription(resources
476:                                    .getString("UISelectOne_submittedValue_Description"));
477:                    prop_submittedValue.setExpert(false);
478:                    prop_submittedValue.setHidden(true);
479:                    prop_submittedValue.setPreferred(false);
480:                    prop_submittedValue
481:                            .setValue(
482:                                    Constants.PropertyDescriptor.CATEGORY,
483:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
484:
485:                    PropertyDescriptor prop_validator = new PropertyDescriptorBase(
486:                            "validator", beanClass, "getValidator",
487:                            "setValidator");
488:                    prop_validator.setDisplayName(resources
489:                            .getString("UISelectOne_validator_DisplayName"));
490:                    prop_validator.setShortDescription(resources
491:                            .getString("UISelectOne_validator_Description"));
492:                    prop_validator
493:                            .setPropertyEditorClass(com.sun.rave.propertyeditors.ValidatorPropertyEditor.class);
494:                    prop_validator.setExpert(false);
495:                    prop_validator.setHidden(false);
496:                    prop_validator.setPreferred(false);
497:                    attrib = new AttributeDescriptor("validator", false, null,
498:                            true);
499:                    prop_validator.setValue(
500:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
501:                            attrib);
502:                    prop_validator
503:                            .setValue(
504:                                    Constants.PropertyDescriptor.CATEGORY,
505:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
506:
507:                    PropertyDescriptor prop_value = new PropertyDescriptorBase(
508:                            "value", beanClass, "getValue", "setValue");
509:                    prop_value.setDisplayName(resources
510:                            .getString("UISelectOne_value_DisplayName"));
511:                    prop_value.setShortDescription(resources
512:                            .getString("UISelectOne_value_Description"));
513:                    prop_value
514:                            .setPropertyEditorClass(org.netbeans.modules.visualweb.faces.dt.std.ValueBindingPropertyEditor.class);
515:                    prop_value.setExpert(false);
516:                    prop_value.setHidden(false);
517:                    prop_value.setPreferred(false);
518:                    attrib = new AttributeDescriptor("value", false, null, true);
519:                    prop_value.setValue(
520:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
521:                            attrib);
522:                    prop_value
523:                            .setValue(
524:                                    Constants.PropertyDescriptor.CATEGORY,
525:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
526:                    prop_value.setValue("ignoreIsBound", "true");
527:
528:                    PropertyDescriptor prop_valueChangeListener = new PropertyDescriptorBase(
529:                            "valueChangeListener", beanClass,
530:                            "getValueChangeListener", "setValueChangeListener");
531:                    prop_valueChangeListener
532:                            .setDisplayName(resources
533:                                    .getString("UISelectOne_valueChangeListener_DisplayName"));
534:                    prop_valueChangeListener
535:                            .setShortDescription(resources
536:                                    .getString("UISelectOne_valueChangeListener_Description"));
537:                    prop_valueChangeListener
538:                            .setPropertyEditorClass(com.sun.rave.propertyeditors.MethodBindingPropertyEditor.class);
539:                    prop_valueChangeListener.setExpert(false);
540:                    prop_valueChangeListener.setHidden(false);
541:                    prop_valueChangeListener.setPreferred(false);
542:                    attrib = new AttributeDescriptor("valueChangeListener",
543:                            false, null, true);
544:                    prop_valueChangeListener.setValue(
545:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
546:                            attrib);
547:                    prop_valueChangeListener
548:                            .setValue(
549:                                    Constants.PropertyDescriptor.CATEGORY,
550:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
551:
552:                    List<PropertyDescriptor> propertyDescriptorList = new ArrayList<PropertyDescriptor>();
553:                    propertyDescriptorList.add(prop_attributes);
554:                    propertyDescriptorList.add(prop_childCount);
555:                    propertyDescriptorList.add(prop_children);
556:                    propertyDescriptorList.add(prop_converter);
557:                    propertyDescriptorList.add(prop_disabledClass);
558:                    propertyDescriptorList.add(prop_enabledClass);
559:                    propertyDescriptorList.add(prop_facets);
560:                    propertyDescriptorList.add(prop_family);
561:                    propertyDescriptorList.add(prop_id);
562:                    propertyDescriptorList.add(prop_immediate);
563:                    propertyDescriptorList.add(prop_localValue);
564:                    propertyDescriptorList.add(prop_localValueSet);
565:                    propertyDescriptorList.add(prop_parent);
566:                    propertyDescriptorList.add(prop_rendered);
567:                    propertyDescriptorList.add(prop_rendererType);
568:                    propertyDescriptorList.add(prop_rendersChildren);
569:                    propertyDescriptorList.add(prop_required);
570:                    propertyDescriptorList.add(prop_submittedValue);
571:                    propertyDescriptorList.add(prop_validator);
572:                    propertyDescriptorList.add(prop_value);
573:                    propertyDescriptorList.add(prop_valueChangeListener);
574:
575:                    propertyDescriptorList.addAll(Arrays.asList(super 
576:                            .getPropertyDescriptors()));
577:                    propertyDescriptors = propertyDescriptorList
578:                            .toArray(new PropertyDescriptor[propertyDescriptorList
579:                                    .size()]);
580:                    return propertyDescriptors;
581:
582:                } catch (IntrospectionException e) {
583:                    e.printStackTrace();
584:                    return null;
585:                }
586:
587:            }
588:
589:        }
www.__j_av__a2__s.com___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.