Source Code Cross Referenced for UIParameterBeanInfoBase.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.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.List;
051:        import java.util.ArrayList;
052:        import java.util.Arrays;
053:        import java.util.ResourceBundle;
054:
055:        import com.sun.rave.designtime.CategoryDescriptor;
056:        import com.sun.rave.designtime.Constants;
057:        import com.sun.rave.designtime.faces.FacetDescriptor;
058:        import com.sun.rave.designtime.markup.AttributeDescriptor;
059:
060:        import org.netbeans.modules.visualweb.faces.dt.HtmlBeanInfoBase;
061:        import org.netbeans.modules.visualweb.faces.dt.BeanDescriptorBase;
062:        import org.netbeans.modules.visualweb.faces.dt.PropertyDescriptorBase;
063:
064:        /**
065:         * <p>Auto-generated design time metadata class.
066:         * Do <strong>NOT</strong> modify; all changes
067:         * <strong>will</strong> be lost!</p>
068:         */
069:
070:        abstract class UIParameterBeanInfoBase extends HtmlBeanInfoBase {
071:
072:            protected static ResourceBundle resources = ResourceBundle
073:                    .getBundle(
074:                            "org.netbeans.modules.visualweb.faces.dt_1_1.component.Bundle-JSF",
075:                            Locale.getDefault(), UIParameterBeanInfoBase.class
076:                                    .getClassLoader());
077:
078:            /**
079:             * <p>Construct a new <code>UIParameterBeanInfoBase</code>.</p>
080:             */
081:            public UIParameterBeanInfoBase() {
082:
083:                beanClass = javax.faces.component.UIParameter.class;
084:                iconFileName_C16 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UIParameter_C16";
085:                iconFileName_C32 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UIParameter_C32";
086:                iconFileName_M16 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UIParameter_M16";
087:                iconFileName_M32 = "/org/netbeans/modules/visualweb/faces/dt_1_1/component/UIParameter_M32";
088:
089:            }
090:
091:            private BeanDescriptor beanDescriptor;
092:
093:            /**
094:             * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
095:             */
096:            public BeanDescriptor getBeanDescriptor() {
097:
098:                if (beanDescriptor != null) {
099:                    return beanDescriptor;
100:                }
101:
102:                beanDescriptor = new BeanDescriptorBase(beanClass);
103:                beanDescriptor.setDisplayName(resources
104:                        .getString("UIParameter_DisplayName"));
105:                beanDescriptor.setShortDescription(resources
106:                        .getString("UIParameter_Description"));
107:                beanDescriptor.setExpert(false);
108:                beanDescriptor.setHidden(false);
109:                beanDescriptor.setPreferred(false);
110:                beanDescriptor.setValue(
111:                        Constants.BeanDescriptor.FACET_DESCRIPTORS,
112:                        getFacetDescriptors());
113:                beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
114:                        "parameter");
115:                beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
116:                        Boolean.TRUE);
117:                beanDescriptor.setValue(
118:                        Constants.BeanDescriptor.PROPERTY_CATEGORIES,
119:                        getCategoryDescriptors());
120:                beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
121:                        "parameter");
122:
123:                return beanDescriptor;
124:
125:            }
126:
127:            /**
128:             * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
129:             */
130:            private CategoryDescriptor[] getCategoryDescriptors() {
131:
132:                return com.sun.rave.designtime.base.CategoryDescriptors
133:                        .getDefaultCategoryDescriptors();
134:
135:            }
136:
137:            /**
138:             * <p>The cached facet descriptors.</p>
139:             */
140:            protected FacetDescriptor[] facetDescriptors;
141:
142:            /**
143:             * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
144:             */
145:            public FacetDescriptor[] getFacetDescriptors() {
146:
147:                if (facetDescriptors != null) {
148:                    return facetDescriptors;
149:                }
150:                facetDescriptors = new FacetDescriptor[] {};
151:                return facetDescriptors;
152:
153:            }
154:
155:            /**
156:             * <p>Return a class loaded by name via the class loader that loaded this class.</p>
157:             */
158:
159:            private PropertyDescriptor[] propertyDescriptors;
160:
161:            /**
162:             * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
163:             */
164:            public PropertyDescriptor[] getPropertyDescriptors() {
165:
166:                if (propertyDescriptors != null) {
167:                    return propertyDescriptors;
168:                }
169:                AttributeDescriptor attrib = null;
170:
171:                try {
172:
173:                    PropertyDescriptor prop_attributes = new PropertyDescriptorBase(
174:                            "attributes", beanClass, "getAttributes", null);
175:                    prop_attributes.setDisplayName(resources
176:                            .getString("UIParameter_attributes_DisplayName"));
177:                    prop_attributes.setShortDescription(resources
178:                            .getString("UIParameter_attributes_Description"));
179:                    prop_attributes.setExpert(false);
180:                    prop_attributes.setHidden(true);
181:                    prop_attributes.setPreferred(false);
182:                    prop_attributes
183:                            .setValue(
184:                                    Constants.PropertyDescriptor.CATEGORY,
185:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
186:
187:                    PropertyDescriptor prop_childCount = new PropertyDescriptorBase(
188:                            "childCount", beanClass, "getChildCount", null);
189:                    prop_childCount.setDisplayName(resources
190:                            .getString("UIParameter_childCount_DisplayName"));
191:                    prop_childCount.setShortDescription(resources
192:                            .getString("UIParameter_childCount_Description"));
193:                    prop_childCount.setExpert(false);
194:                    prop_childCount.setHidden(true);
195:                    prop_childCount.setPreferred(false);
196:                    prop_childCount
197:                            .setValue(
198:                                    Constants.PropertyDescriptor.CATEGORY,
199:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
200:
201:                    PropertyDescriptor prop_children = new PropertyDescriptorBase(
202:                            "children", beanClass, "getChildren", null);
203:                    prop_children.setDisplayName(resources
204:                            .getString("UIParameter_children_DisplayName"));
205:                    prop_children.setShortDescription(resources
206:                            .getString("UIParameter_children_Description"));
207:                    prop_children.setExpert(false);
208:                    prop_children.setHidden(true);
209:                    prop_children.setPreferred(false);
210:                    prop_children
211:                            .setValue(
212:                                    Constants.PropertyDescriptor.CATEGORY,
213:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
214:
215:                    PropertyDescriptor prop_facets = new PropertyDescriptorBase(
216:                            "facets", beanClass, "getFacets", null);
217:                    prop_facets.setDisplayName(resources
218:                            .getString("UIParameter_facets_DisplayName"));
219:                    prop_facets.setShortDescription(resources
220:                            .getString("UIParameter_facets_Description"));
221:                    prop_facets.setExpert(false);
222:                    prop_facets.setHidden(true);
223:                    prop_facets.setPreferred(false);
224:                    prop_facets
225:                            .setValue(
226:                                    Constants.PropertyDescriptor.CATEGORY,
227:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
228:
229:                    PropertyDescriptor prop_family = new PropertyDescriptorBase(
230:                            "family", beanClass, "getFamily", null);
231:                    prop_family.setDisplayName(resources
232:                            .getString("UIParameter_family_DisplayName"));
233:                    prop_family.setShortDescription(resources
234:                            .getString("UIParameter_family_Description"));
235:                    prop_family.setExpert(false);
236:                    prop_family.setHidden(true);
237:                    prop_family.setPreferred(false);
238:                    prop_family
239:                            .setValue(
240:                                    Constants.PropertyDescriptor.CATEGORY,
241:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
242:
243:                    PropertyDescriptor prop_id = new PropertyDescriptorBase(
244:                            "id", beanClass, "getId", "setId");
245:                    prop_id.setDisplayName(resources
246:                            .getString("UIParameter_id_DisplayName"));
247:                    prop_id.setShortDescription(resources
248:                            .getString("UIParameter_id_Description"));
249:                    prop_id.setExpert(false);
250:                    prop_id.setHidden(true);
251:                    prop_id.setPreferred(false);
252:                    attrib = new AttributeDescriptor("id", false, null, true);
253:                    prop_id.setValue(
254:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
255:                            attrib);
256:                    prop_id
257:                            .setValue(
258:                                    Constants.PropertyDescriptor.CATEGORY,
259:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
260:
261:                    PropertyDescriptor prop_name = new PropertyDescriptorBase(
262:                            "name", beanClass, "getName", "setName");
263:                    prop_name.setDisplayName(resources
264:                            .getString("UIParameter_name_DisplayName"));
265:                    prop_name.setShortDescription(resources
266:                            .getString("UIParameter_name_Description"));
267:                    prop_name.setExpert(false);
268:                    prop_name.setHidden(false);
269:                    prop_name.setPreferred(false);
270:                    attrib = new AttributeDescriptor("name", false, null, true);
271:                    prop_name.setValue(
272:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
273:                            attrib);
274:                    prop_name
275:                            .setValue(
276:                                    Constants.PropertyDescriptor.CATEGORY,
277:                                    com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
278:
279:                    PropertyDescriptor prop_parent = new PropertyDescriptorBase(
280:                            "parent", beanClass, "getParent", null);
281:                    prop_parent.setDisplayName(resources
282:                            .getString("UIParameter_parent_DisplayName"));
283:                    prop_parent.setShortDescription(resources
284:                            .getString("UIParameter_parent_Description"));
285:                    prop_parent.setExpert(false);
286:                    prop_parent.setHidden(true);
287:                    prop_parent.setPreferred(false);
288:                    prop_parent
289:                            .setValue(
290:                                    Constants.PropertyDescriptor.CATEGORY,
291:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
292:
293:                    PropertyDescriptor prop_rendered = new PropertyDescriptorBase(
294:                            "rendered", beanClass, "isRendered", "setRendered");
295:                    prop_rendered.setDisplayName(resources
296:                            .getString("UIParameter_rendered_DisplayName"));
297:                    prop_rendered.setShortDescription(resources
298:                            .getString("UIParameter_rendered_Description"));
299:                    prop_rendered.setExpert(false);
300:                    prop_rendered.setHidden(false);
301:                    prop_rendered.setPreferred(false);
302:                    attrib = new AttributeDescriptor("rendered", false, null,
303:                            true);
304:                    prop_rendered.setValue(
305:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
306:                            attrib);
307:                    prop_rendered
308:                            .setValue(
309:                                    Constants.PropertyDescriptor.CATEGORY,
310:                                    com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
311:
312:                    PropertyDescriptor prop_rendererType = new PropertyDescriptorBase(
313:                            "rendererType", beanClass, "getRendererType",
314:                            "setRendererType");
315:                    prop_rendererType.setDisplayName(resources
316:                            .getString("UIParameter_rendererType_DisplayName"));
317:                    prop_rendererType.setShortDescription(resources
318:                            .getString("UIParameter_rendererType_Description"));
319:                    prop_rendererType.setExpert(false);
320:                    prop_rendererType.setHidden(true);
321:                    prop_rendererType.setPreferred(false);
322:                    prop_rendererType
323:                            .setValue(
324:                                    Constants.PropertyDescriptor.CATEGORY,
325:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
326:
327:                    PropertyDescriptor prop_rendersChildren = new PropertyDescriptorBase(
328:                            "rendersChildren", beanClass, "getRendersChildren",
329:                            null);
330:                    prop_rendersChildren
331:                            .setDisplayName(resources
332:                                    .getString("UIParameter_rendersChildren_DisplayName"));
333:                    prop_rendersChildren
334:                            .setShortDescription(resources
335:                                    .getString("UIParameter_rendersChildren_Description"));
336:                    prop_rendersChildren.setExpert(false);
337:                    prop_rendersChildren.setHidden(true);
338:                    prop_rendersChildren.setPreferred(false);
339:                    prop_rendersChildren
340:                            .setValue(
341:                                    Constants.PropertyDescriptor.CATEGORY,
342:                                    com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
343:
344:                    PropertyDescriptor prop_value = new PropertyDescriptorBase(
345:                            "value", beanClass, "getValue", "setValue");
346:                    prop_value.setDisplayName(resources
347:                            .getString("UIParameter_value_DisplayName"));
348:                    prop_value.setShortDescription(resources
349:                            .getString("UIParameter_value_Description"));
350:                    prop_value
351:                            .setPropertyEditorClass(org.netbeans.modules.visualweb.faces.dt.std.ValueBindingPropertyEditor.class);
352:                    prop_value.setExpert(false);
353:                    prop_value.setHidden(false);
354:                    prop_value.setPreferred(false);
355:                    attrib = new AttributeDescriptor("value", false, null, true);
356:                    prop_value.setValue(
357:                            Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
358:                            attrib);
359:                    prop_value
360:                            .setValue(
361:                                    Constants.PropertyDescriptor.CATEGORY,
362:                                    com.sun.rave.designtime.base.CategoryDescriptors.DATA);
363:                    prop_value.setValue("ignoreIsBound", "true");
364:
365:                    List<PropertyDescriptor> propertyDescriptorList = new ArrayList<PropertyDescriptor>();
366:                    propertyDescriptorList.add(prop_attributes);
367:                    propertyDescriptorList.add(prop_childCount);
368:                    propertyDescriptorList.add(prop_children);
369:                    propertyDescriptorList.add(prop_facets);
370:                    propertyDescriptorList.add(prop_family);
371:                    propertyDescriptorList.add(prop_id);
372:                    propertyDescriptorList.add(prop_name);
373:                    propertyDescriptorList.add(prop_parent);
374:                    propertyDescriptorList.add(prop_rendered);
375:                    propertyDescriptorList.add(prop_rendererType);
376:                    propertyDescriptorList.add(prop_rendersChildren);
377:                    propertyDescriptorList.add(prop_value);
378:
379:                    propertyDescriptorList.addAll(Arrays.asList(super 
380:                            .getPropertyDescriptors()));
381:                    propertyDescriptors = propertyDescriptorList
382:                            .toArray(new PropertyDescriptor[propertyDescriptorList
383:                                    .size()]);
384:                    return propertyDescriptors;
385:
386:                } catch (IntrospectionException e) {
387:                    e.printStackTrace();
388:                    return null;
389:                }
390:
391:            }
392:
393:        }
ww_w_._j_a__v___a___2___s_.c_o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.