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 PropertyBeanInfoBase 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(), PropertyBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>PropertyBeanInfoBase</code>.</p>
075: */
076: public PropertyBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.Property.class;
079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Property_C16";
080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Property_C32";
081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Property_M16";
082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Property_M32";
083:
084: }
085:
086: /**
087: * <p>The bean class that this BeanInfo represents.
088: */
089: protected Class beanClass;
090:
091: /**
092: * <p>The cached BeanDescriptor.</p>
093: */
094: protected BeanDescriptor beanDescriptor;
095:
096: /**
097: * <p>The index of the default property.</p>
098: */
099: protected int defaultPropertyIndex = -2;
100:
101: /**
102: * <p>The name of the default property.</p>
103: */
104: protected String defaultPropertyName;
105:
106: /**
107: * <p>The 16x16 color icon.</p>
108: */
109: protected String iconFileName_C16;
110:
111: /**
112: * <p>The 32x32 color icon.</p>
113: */
114: protected String iconFileName_C32;
115:
116: /**
117: * <p>The 16x16 monochrome icon.</p>
118: */
119: protected String iconFileName_M16;
120:
121: /**
122: * <p>The 32x32 monochrome icon.</p>
123: */
124: protected String iconFileName_M32;
125:
126: /**
127: * <p>The cached property descriptors.</p>
128: */
129: protected PropertyDescriptor[] propDescriptors;
130:
131: /**
132: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
133: */
134: public BeanDescriptor getBeanDescriptor() {
135:
136: if (beanDescriptor != null) {
137: return beanDescriptor;
138: }
139:
140: beanDescriptor = new BeanDescriptor(beanClass);
141: beanDescriptor.setDisplayName(resources
142: .getString("Property_DisplayName"));
143: beanDescriptor.setShortDescription(resources
144: .getString("Property_Description"));
145: beanDescriptor.setExpert(false);
146: beanDescriptor.setHidden(false);
147: beanDescriptor.setPreferred(false);
148: beanDescriptor.setValue(
149: Constants.BeanDescriptor.FACET_DESCRIPTORS,
150: getFacetDescriptors());
151: beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
152: "projrave_ui_elements_palette_bh_property");
153: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
154: "property");
155: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
156: Boolean.TRUE);
157: beanDescriptor
158: .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
159: "projrave_ui_elements_palette_bh_propsheets_bh_property_props");
160: beanDescriptor.setValue(
161: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
162: getCategoryDescriptors());
163: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
164: "property");
165: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
166: "ui");
167: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
168: "http://www.sun.com/web/ui");
169:
170: return beanDescriptor;
171:
172: }
173:
174: /**
175: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
176: */
177: private CategoryDescriptor[] getCategoryDescriptors() {
178:
179: return com.sun.rave.designtime.base.CategoryDescriptors
180: .getDefaultCategoryDescriptors();
181:
182: }
183:
184: /**
185: * <p>Return the index of the default property, or
186: * -1 if there is no default property.</p>
187: */
188: public int getDefaultPropertyIndex() {
189:
190: if (defaultPropertyIndex > -2) {
191: return defaultPropertyIndex;
192: } else {
193: if (defaultPropertyName == null) {
194: defaultPropertyIndex = -1;
195: } else {
196: PropertyDescriptor pd[] = getPropertyDescriptors();
197: for (int i = 0; i < pd.length; i++) {
198: if (defaultPropertyName.equals(pd[i].getName())) {
199: defaultPropertyIndex = i;
200: break;
201: }
202: }
203: }
204: }
205: return defaultPropertyIndex;
206: }
207:
208: /**
209: * <p>The cached facet descriptors.</p>
210: */
211: protected FacetDescriptor[] facetDescriptors;
212:
213: /**
214: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
215: */
216: public FacetDescriptor[] getFacetDescriptors() {
217:
218: if (facetDescriptors != null) {
219: return facetDescriptors;
220: }
221: try {
222:
223: FacetDescriptor facet_content = new FacetDescriptor(
224: "content");
225: facet_content.setDisplayName(resources
226: .getString("Property_content_DisplayName"));
227: facet_content.setShortDescription(resources
228: .getString("Property_content_Description"));
229:
230: FacetDescriptor facet_helpText = new FacetDescriptor(
231: "helpText");
232: facet_helpText.setDisplayName(resources
233: .getString("Property_helpText_DisplayName"));
234: facet_helpText.setShortDescription(resources
235: .getString("Property_helpText_Description"));
236:
237: FacetDescriptor facet_label = new FacetDescriptor("label");
238: facet_label.setDisplayName(resources
239: .getString("Property_label_DisplayName"));
240: facet_label.setShortDescription(resources
241: .getString("Property_label_Description"));
242:
243: facetDescriptors = new FacetDescriptor[] { facet_content,
244: facet_helpText, facet_label, };
245: return facetDescriptors;
246:
247: } catch (RuntimeException e) {
248: System.out.println(e.getMessage());
249: e.printStackTrace(System.out);
250: throw e;
251: }
252:
253: }
254:
255: /**
256: * <p>Return the specified image (if any)
257: * for this component class.</p>
258: */
259: public Image getIcon(int kind) {
260:
261: String name;
262: switch (kind) {
263: case ICON_COLOR_16x16:
264: name = iconFileName_C16;
265: break;
266: case ICON_COLOR_32x32:
267: name = iconFileName_C32;
268: break;
269: case ICON_MONO_16x16:
270: name = iconFileName_M16;
271: break;
272: case ICON_MONO_32x32:
273: name = iconFileName_M32;
274: break;
275: default:
276: name = null;
277: break;
278: }
279: if (name == null) {
280: return null;
281: }
282:
283: Image image = loadImage(name + ".png");
284: if (image == null) {
285: image = loadImage(name + ".gif");
286: }
287: return image;
288:
289: }
290:
291: /**
292: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
293: */
294: private java.lang.Class loadClass(java.lang.String name) {
295:
296: try {
297: return Class.forName(name);
298: } catch (ClassNotFoundException e) {
299: throw new RuntimeException(e);
300: }
301:
302: }
303:
304: /**
305: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
306: */
307: public PropertyDescriptor[] getPropertyDescriptors() {
308:
309: if (propDescriptors != null) {
310: return propDescriptors;
311: }
312: AttributeDescriptor attrib = null;
313:
314: try {
315:
316: PropertyDescriptor prop_disabled = new PropertyDescriptor(
317: "disabled", beanClass, "isDisabled", "setDisabled");
318: prop_disabled.setDisplayName(resources
319: .getString("Property_disabled_DisplayName"));
320: prop_disabled.setShortDescription(resources
321: .getString("Property_disabled_Description"));
322: prop_disabled.setExpert(false);
323: prop_disabled.setHidden(false);
324: prop_disabled.setPreferred(false);
325: attrib = new AttributeDescriptor("disabled", false, null,
326: true);
327: prop_disabled.setValue(
328: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
329: attrib);
330: prop_disabled
331: .setValue(
332: Constants.PropertyDescriptor.CATEGORY,
333: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
334:
335: PropertyDescriptor prop_helpText = new PropertyDescriptor(
336: "helpText", beanClass, "getHelpText", "setHelpText");
337: prop_helpText.setDisplayName(resources
338: .getString("Property_helpText_DisplayName"));
339: prop_helpText.setShortDescription(resources
340: .getString("Property_helpText_Description"));
341: prop_helpText
342: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
343: prop_helpText.setExpert(false);
344: prop_helpText.setHidden(false);
345: prop_helpText.setPreferred(false);
346: attrib = new AttributeDescriptor("helpText", false, null,
347: true);
348: prop_helpText.setValue(
349: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
350: attrib);
351: prop_helpText
352: .setValue(
353: Constants.PropertyDescriptor.CATEGORY,
354: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
355:
356: PropertyDescriptor prop_label = new PropertyDescriptor(
357: "label", beanClass, "getLabel", "setLabel");
358: prop_label.setDisplayName(resources
359: .getString("Property_label_DisplayName"));
360: prop_label.setShortDescription(resources
361: .getString("Property_label_Description"));
362: prop_label
363: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
364: prop_label.setExpert(false);
365: prop_label.setHidden(false);
366: prop_label.setPreferred(false);
367: attrib = new AttributeDescriptor("label", false, null, true);
368: prop_label.setValue(
369: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
370: attrib);
371: prop_label
372: .setValue(
373: Constants.PropertyDescriptor.CATEGORY,
374: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
375:
376: PropertyDescriptor prop_labelAlign = new PropertyDescriptor(
377: "labelAlign", beanClass, "getLabelAlign",
378: "setLabelAlign");
379: prop_labelAlign.setDisplayName(resources
380: .getString("Property_labelAlign_DisplayName"));
381: prop_labelAlign.setShortDescription(resources
382: .getString("Property_labelAlign_Description"));
383: prop_labelAlign
384: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
385: prop_labelAlign.setExpert(false);
386: prop_labelAlign.setHidden(false);
387: prop_labelAlign.setPreferred(false);
388: attrib = new AttributeDescriptor("labelAlign", false, null,
389: true);
390: prop_labelAlign.setValue(
391: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
392: attrib);
393: prop_labelAlign
394: .setValue(
395: Constants.PropertyDescriptor.CATEGORY,
396: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
397: prop_labelAlign
398: .setValue(
399: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
400: com.sun.rave.propertyeditors.domains.HtmlHorizontalAlignDomain.class);
401:
402: PropertyDescriptor prop_noWrap = new PropertyDescriptor(
403: "noWrap", beanClass, "isNoWrap", "setNoWrap");
404: prop_noWrap.setDisplayName(resources
405: .getString("Property_noWrap_DisplayName"));
406: prop_noWrap.setShortDescription(resources
407: .getString("Property_noWrap_Description"));
408: prop_noWrap.setExpert(false);
409: prop_noWrap.setHidden(false);
410: prop_noWrap.setPreferred(false);
411: attrib = new AttributeDescriptor("noWrap", false, null,
412: true);
413: prop_noWrap.setValue(
414: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
415: attrib);
416: prop_noWrap
417: .setValue(
418: Constants.PropertyDescriptor.CATEGORY,
419: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
420:
421: PropertyDescriptor prop_overlapLabel = new PropertyDescriptor(
422: "overlapLabel", beanClass, "isOverlapLabel",
423: "setOverlapLabel");
424: prop_overlapLabel.setDisplayName(resources
425: .getString("Property_overlapLabel_DisplayName"));
426: prop_overlapLabel.setShortDescription(resources
427: .getString("Property_overlapLabel_Description"));
428: prop_overlapLabel.setExpert(false);
429: prop_overlapLabel.setHidden(false);
430: prop_overlapLabel.setPreferred(false);
431: attrib = new AttributeDescriptor("overlapLabel", false,
432: null, true);
433: prop_overlapLabel.setValue(
434: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
435: attrib);
436: prop_overlapLabel
437: .setValue(
438: Constants.PropertyDescriptor.CATEGORY,
439: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
440:
441: PropertyDescriptor prop_style = new PropertyDescriptor(
442: "style", beanClass, "getStyle", "setStyle");
443: prop_style.setDisplayName(resources
444: .getString("Property_style_DisplayName"));
445: prop_style.setShortDescription(resources
446: .getString("Property_style_Description"));
447: prop_style
448: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
449: prop_style.setExpert(false);
450: prop_style.setHidden(false);
451: prop_style.setPreferred(false);
452: attrib = new AttributeDescriptor("style", false, null, true);
453: prop_style.setValue(
454: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
455: attrib);
456: prop_style
457: .setValue(
458: Constants.PropertyDescriptor.CATEGORY,
459: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
460:
461: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
462: "styleClass", beanClass, "getStyleClass",
463: "setStyleClass");
464: prop_styleClass.setDisplayName(resources
465: .getString("Property_styleClass_DisplayName"));
466: prop_styleClass.setShortDescription(resources
467: .getString("Property_styleClass_Description"));
468: prop_styleClass
469: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
470: prop_styleClass.setExpert(false);
471: prop_styleClass.setHidden(false);
472: prop_styleClass.setPreferred(false);
473: attrib = new AttributeDescriptor("styleClass", false, null,
474: true);
475: prop_styleClass.setValue(
476: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
477: attrib);
478: prop_styleClass
479: .setValue(
480: Constants.PropertyDescriptor.CATEGORY,
481: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
482:
483: PropertyDescriptor prop_visible = new PropertyDescriptor(
484: "visible", beanClass, "isVisible", "setVisible");
485: prop_visible.setDisplayName(resources
486: .getString("Property_visible_DisplayName"));
487: prop_visible.setShortDescription(resources
488: .getString("Property_visible_Description"));
489: prop_visible.setExpert(false);
490: prop_visible.setHidden(false);
491: prop_visible.setPreferred(false);
492: attrib = new AttributeDescriptor("visible", false, "true",
493: true);
494: prop_visible.setValue(
495: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
496: attrib);
497: prop_visible
498: .setValue(
499: Constants.PropertyDescriptor.CATEGORY,
500: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
501:
502: PropertyDescriptor prop_attributes = new PropertyDescriptor(
503: "attributes", beanClass, "getAttributes", null);
504: prop_attributes.setDisplayName(resources
505: .getString("Property_attributes_DisplayName"));
506: prop_attributes.setShortDescription(resources
507: .getString("Property_attributes_Description"));
508: prop_attributes.setExpert(false);
509: prop_attributes.setHidden(true);
510: prop_attributes.setPreferred(false);
511: prop_attributes
512: .setValue(
513: Constants.PropertyDescriptor.CATEGORY,
514: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
515:
516: PropertyDescriptor prop_childCount = new PropertyDescriptor(
517: "childCount", beanClass, "getChildCount", null);
518: prop_childCount.setDisplayName(resources
519: .getString("Property_childCount_DisplayName"));
520: prop_childCount.setShortDescription(resources
521: .getString("Property_childCount_Description"));
522: prop_childCount.setExpert(false);
523: prop_childCount.setHidden(true);
524: prop_childCount.setPreferred(false);
525: prop_childCount
526: .setValue(
527: Constants.PropertyDescriptor.CATEGORY,
528: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
529:
530: PropertyDescriptor prop_children = new PropertyDescriptor(
531: "children", beanClass, "getChildren", null);
532: prop_children.setDisplayName(resources
533: .getString("Property_children_DisplayName"));
534: prop_children.setShortDescription(resources
535: .getString("Property_children_Description"));
536: prop_children.setExpert(false);
537: prop_children.setHidden(true);
538: prop_children.setPreferred(false);
539: prop_children
540: .setValue(
541: Constants.PropertyDescriptor.CATEGORY,
542: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
543:
544: PropertyDescriptor prop_facets = new PropertyDescriptor(
545: "facets", beanClass, "getFacets", null);
546: prop_facets.setDisplayName(resources
547: .getString("Property_facets_DisplayName"));
548: prop_facets.setShortDescription(resources
549: .getString("Property_facets_Description"));
550: prop_facets.setExpert(false);
551: prop_facets.setHidden(true);
552: prop_facets.setPreferred(false);
553: prop_facets
554: .setValue(
555: Constants.PropertyDescriptor.CATEGORY,
556: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
557:
558: PropertyDescriptor prop_family = new PropertyDescriptor(
559: "family", beanClass, "getFamily", null);
560: prop_family.setDisplayName(resources
561: .getString("Property_family_DisplayName"));
562: prop_family.setShortDescription(resources
563: .getString("Property_family_Description"));
564: prop_family.setExpert(false);
565: prop_family.setHidden(true);
566: prop_family.setPreferred(false);
567: prop_family
568: .setValue(
569: Constants.PropertyDescriptor.CATEGORY,
570: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
571:
572: PropertyDescriptor prop_id = new PropertyDescriptor("id",
573: beanClass, "getId", "setId");
574: prop_id.setDisplayName(resources
575: .getString("Property_id_DisplayName"));
576: prop_id.setShortDescription(resources
577: .getString("Property_id_Description"));
578: prop_id.setExpert(false);
579: prop_id.setHidden(true);
580: prop_id.setPreferred(false);
581: attrib = new AttributeDescriptor("id", false, null, false);
582: prop_id.setValue(
583: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
584: attrib);
585: prop_id
586: .setValue(
587: Constants.PropertyDescriptor.CATEGORY,
588: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
589:
590: PropertyDescriptor prop_parent = new PropertyDescriptor(
591: "parent", beanClass, "getParent", "setParent");
592: prop_parent.setDisplayName(resources
593: .getString("Property_parent_DisplayName"));
594: prop_parent.setShortDescription(resources
595: .getString("Property_parent_Description"));
596: prop_parent.setExpert(false);
597: prop_parent.setHidden(true);
598: prop_parent.setPreferred(false);
599: prop_parent
600: .setValue(
601: Constants.PropertyDescriptor.CATEGORY,
602: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
603:
604: PropertyDescriptor prop_rendered = new PropertyDescriptor(
605: "rendered", beanClass, "isRendered", "setRendered");
606: prop_rendered.setDisplayName(resources
607: .getString("Property_rendered_DisplayName"));
608: prop_rendered.setShortDescription(resources
609: .getString("Property_rendered_Description"));
610: prop_rendered.setExpert(false);
611: prop_rendered.setHidden(false);
612: prop_rendered.setPreferred(false);
613: attrib = new AttributeDescriptor("rendered", false, null,
614: true);
615: prop_rendered.setValue(
616: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
617: attrib);
618: prop_rendered
619: .setValue(
620: Constants.PropertyDescriptor.CATEGORY,
621: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
622:
623: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
624: "rendererType", beanClass, "getRendererType",
625: "setRendererType");
626: prop_rendererType.setDisplayName(resources
627: .getString("Property_rendererType_DisplayName"));
628: prop_rendererType.setShortDescription(resources
629: .getString("Property_rendererType_Description"));
630: prop_rendererType.setExpert(false);
631: prop_rendererType.setHidden(true);
632: prop_rendererType.setPreferred(false);
633: prop_rendererType
634: .setValue(
635: Constants.PropertyDescriptor.CATEGORY,
636: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
637:
638: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
639: "rendersChildren", beanClass, "getRendersChildren",
640: null);
641: prop_rendersChildren.setDisplayName(resources
642: .getString("Property_rendersChildren_DisplayName"));
643: prop_rendersChildren.setShortDescription(resources
644: .getString("Property_rendersChildren_Description"));
645: prop_rendersChildren.setExpert(false);
646: prop_rendersChildren.setHidden(true);
647: prop_rendersChildren.setPreferred(false);
648: prop_rendersChildren
649: .setValue(
650: Constants.PropertyDescriptor.CATEGORY,
651: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
652:
653: propDescriptors = new PropertyDescriptor[] {
654: prop_attributes, prop_childCount, prop_children,
655: prop_disabled, prop_facets, prop_family,
656: prop_helpText, prop_id, prop_label,
657: prop_labelAlign, prop_noWrap, prop_overlapLabel,
658: prop_parent, prop_rendered, prop_rendererType,
659: prop_rendersChildren, prop_style, prop_styleClass,
660: prop_visible, };
661: return propDescriptors;
662:
663: } catch (IntrospectionException e) {
664: e.printStackTrace();
665: return null;
666: }
667:
668: }
669:
670: }
671: //GEN-END:BeanInfo
|