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 CalendarMonthBeanInfoBase 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(),
071: CalendarMonthBeanInfoBase.class.getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>CalendarMonthBeanInfoBase</code>.</p>
075: */
076: public CalendarMonthBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.CalendarMonth.class;
079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/CalendarMonth_C16";
080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/CalendarMonth_C32";
081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/CalendarMonth_M16";
082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/CalendarMonth_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("CalendarMonth_DisplayName"));
143: beanDescriptor.setShortDescription(resources
144: .getString("CalendarMonth_Description"));
145: beanDescriptor.setExpert(false);
146: beanDescriptor.setHidden(true);
147: beanDescriptor.setPreferred(false);
148: beanDescriptor.setValue(
149: Constants.BeanDescriptor.FACET_DESCRIPTORS,
150: getFacetDescriptors());
151: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
152: "calendarMonth");
153: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
154: Boolean.TRUE);
155: beanDescriptor.setValue(
156: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
157: getCategoryDescriptors());
158: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
159: "calendarMonth");
160: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
161: "ui");
162: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
163: "http://www.sun.com/web/ui");
164:
165: return beanDescriptor;
166:
167: }
168:
169: /**
170: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
171: */
172: private CategoryDescriptor[] getCategoryDescriptors() {
173:
174: return com.sun.rave.designtime.base.CategoryDescriptors
175: .getDefaultCategoryDescriptors();
176:
177: }
178:
179: /**
180: * <p>Return the index of the default property, or
181: * -1 if there is no default property.</p>
182: */
183: public int getDefaultPropertyIndex() {
184:
185: if (defaultPropertyIndex > -2) {
186: return defaultPropertyIndex;
187: } else {
188: if (defaultPropertyName == null) {
189: defaultPropertyIndex = -1;
190: } else {
191: PropertyDescriptor pd[] = getPropertyDescriptors();
192: for (int i = 0; i < pd.length; i++) {
193: if (defaultPropertyName.equals(pd[i].getName())) {
194: defaultPropertyIndex = i;
195: break;
196: }
197: }
198: }
199: }
200: return defaultPropertyIndex;
201: }
202:
203: /**
204: * <p>The cached facet descriptors.</p>
205: */
206: protected FacetDescriptor[] facetDescriptors;
207:
208: /**
209: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
210: */
211: public FacetDescriptor[] getFacetDescriptors() {
212:
213: if (facetDescriptors != null) {
214: return facetDescriptors;
215: }
216: facetDescriptors = new FacetDescriptor[] {};
217: return facetDescriptors;
218:
219: }
220:
221: /**
222: * <p>Return the specified image (if any)
223: * for this component class.</p>
224: */
225: public Image getIcon(int kind) {
226:
227: String name;
228: switch (kind) {
229: case ICON_COLOR_16x16:
230: name = iconFileName_C16;
231: break;
232: case ICON_COLOR_32x32:
233: name = iconFileName_C32;
234: break;
235: case ICON_MONO_16x16:
236: name = iconFileName_M16;
237: break;
238: case ICON_MONO_32x32:
239: name = iconFileName_M32;
240: break;
241: default:
242: name = null;
243: break;
244: }
245: if (name == null) {
246: return null;
247: }
248:
249: Image image = loadImage(name + ".png");
250: if (image == null) {
251: image = loadImage(name + ".gif");
252: }
253: return image;
254:
255: }
256:
257: /**
258: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
259: */
260: private java.lang.Class loadClass(java.lang.String name) {
261:
262: try {
263: return Class.forName(name);
264: } catch (ClassNotFoundException e) {
265: throw new RuntimeException(e);
266: }
267:
268: }
269:
270: /**
271: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
272: */
273: public PropertyDescriptor[] getPropertyDescriptors() {
274:
275: if (propDescriptors != null) {
276: return propDescriptors;
277: }
278: AttributeDescriptor attrib = null;
279:
280: try {
281:
282: PropertyDescriptor prop_dateFormat = new PropertyDescriptor(
283: "dateFormat", beanClass, "getDateFormat",
284: "setDateFormat");
285: prop_dateFormat.setDisplayName(resources
286: .getString("CalendarMonth_dateFormat_DisplayName"));
287: prop_dateFormat.setShortDescription(resources
288: .getString("CalendarMonth_dateFormat_Description"));
289: prop_dateFormat.setExpert(false);
290: prop_dateFormat.setHidden(false);
291: prop_dateFormat.setPreferred(false);
292: attrib = new AttributeDescriptor("dateFormat", false, null,
293: true);
294: prop_dateFormat.setValue(
295: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
296: attrib);
297: prop_dateFormat
298: .setValue(
299: Constants.PropertyDescriptor.CATEGORY,
300: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
301:
302: PropertyDescriptor prop_dateFormatPattern = new PropertyDescriptor(
303: "dateFormatPattern", beanClass,
304: "getDateFormatPattern", "setDateFormatPattern");
305: prop_dateFormatPattern
306: .setDisplayName(resources
307: .getString("CalendarMonth_dateFormatPattern_DisplayName"));
308: prop_dateFormatPattern
309: .setShortDescription(resources
310: .getString("CalendarMonth_dateFormatPattern_Description"));
311: prop_dateFormatPattern.setExpert(false);
312: prop_dateFormatPattern.setHidden(false);
313: prop_dateFormatPattern.setPreferred(false);
314: attrib = new AttributeDescriptor("dateFormatPattern",
315: false, null, true);
316: prop_dateFormatPattern.setValue(
317: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
318: attrib);
319: prop_dateFormatPattern
320: .setValue(
321: Constants.PropertyDescriptor.CATEGORY,
322: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
323:
324: PropertyDescriptor prop_popup = new PropertyDescriptor(
325: "popup", beanClass, "isPopup", "setPopup");
326: prop_popup.setDisplayName(resources
327: .getString("CalendarMonth_popup_DisplayName"));
328: prop_popup.setShortDescription(resources
329: .getString("CalendarMonth_popup_Description"));
330: prop_popup.setExpert(false);
331: prop_popup.setHidden(false);
332: prop_popup.setPreferred(false);
333: attrib = new AttributeDescriptor("popup", false, null, true);
334: prop_popup.setValue(
335: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
336: attrib);
337: prop_popup
338: .setValue(
339: Constants.PropertyDescriptor.CATEGORY,
340: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
341:
342: PropertyDescriptor prop_selectedDate = new PropertyDescriptor(
343: "selectedDate", beanClass, "getSelectedDate",
344: "setSelectedDate");
345: prop_selectedDate
346: .setDisplayName(resources
347: .getString("CalendarMonth_selectedDate_DisplayName"));
348: prop_selectedDate
349: .setShortDescription(resources
350: .getString("CalendarMonth_selectedDate_Description"));
351: prop_selectedDate.setExpert(false);
352: prop_selectedDate.setHidden(false);
353: prop_selectedDate.setPreferred(false);
354: attrib = new AttributeDescriptor("selectedDate", false,
355: null, true);
356: prop_selectedDate.setValue(
357: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
358: attrib);
359: prop_selectedDate
360: .setValue(
361: Constants.PropertyDescriptor.CATEGORY,
362: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
363:
364: PropertyDescriptor prop_style = new PropertyDescriptor(
365: "style", beanClass, "getStyle", "setStyle");
366: prop_style.setDisplayName(resources
367: .getString("CalendarMonth_style_DisplayName"));
368: prop_style.setShortDescription(resources
369: .getString("CalendarMonth_style_Description"));
370: prop_style
371: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
372: prop_style.setExpert(false);
373: prop_style.setHidden(false);
374: prop_style.setPreferred(false);
375: attrib = new AttributeDescriptor("style", false, null, true);
376: prop_style.setValue(
377: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
378: attrib);
379: prop_style
380: .setValue(
381: Constants.PropertyDescriptor.CATEGORY,
382: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
383:
384: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
385: "styleClass", beanClass, "getStyleClass",
386: "setStyleClass");
387: prop_styleClass.setDisplayName(resources
388: .getString("CalendarMonth_styleClass_DisplayName"));
389: prop_styleClass.setShortDescription(resources
390: .getString("CalendarMonth_styleClass_Description"));
391: prop_styleClass
392: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
393: prop_styleClass.setExpert(false);
394: prop_styleClass.setHidden(false);
395: prop_styleClass.setPreferred(false);
396: attrib = new AttributeDescriptor("styleClass", false, null,
397: true);
398: prop_styleClass.setValue(
399: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
400: attrib);
401: prop_styleClass
402: .setValue(
403: Constants.PropertyDescriptor.CATEGORY,
404: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
405:
406: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
407: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
408: prop_tabIndex.setDisplayName(resources
409: .getString("CalendarMonth_tabIndex_DisplayName"));
410: prop_tabIndex.setShortDescription(resources
411: .getString("CalendarMonth_tabIndex_Description"));
412: prop_tabIndex
413: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
414: prop_tabIndex.setExpert(false);
415: prop_tabIndex.setHidden(false);
416: prop_tabIndex.setPreferred(false);
417: attrib = new AttributeDescriptor("tabIndex", false, null,
418: true);
419: prop_tabIndex.setValue(
420: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
421: attrib);
422: prop_tabIndex
423: .setValue(
424: Constants.PropertyDescriptor.CATEGORY,
425: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
426: prop_tabIndex.setValue(
427: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
428:
429: PropertyDescriptor prop_timeZone = new PropertyDescriptor(
430: "timeZone", beanClass, "getTimeZone", "setTimeZone");
431: prop_timeZone.setDisplayName(resources
432: .getString("CalendarMonth_timeZone_DisplayName"));
433: prop_timeZone.setShortDescription(resources
434: .getString("CalendarMonth_timeZone_Description"));
435: prop_timeZone.setExpert(false);
436: prop_timeZone.setHidden(false);
437: prop_timeZone.setPreferred(false);
438: attrib = new AttributeDescriptor("timeZone", false, null,
439: true);
440: prop_timeZone.setValue(
441: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
442: attrib);
443: prop_timeZone
444: .setValue(
445: Constants.PropertyDescriptor.CATEGORY,
446: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
447:
448: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
449: "toolTip", beanClass, "getToolTip", "setToolTip");
450: prop_toolTip.setDisplayName(resources
451: .getString("CalendarMonth_toolTip_DisplayName"));
452: prop_toolTip.setShortDescription(resources
453: .getString("CalendarMonth_toolTip_Description"));
454: prop_toolTip
455: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
456: prop_toolTip.setExpert(false);
457: prop_toolTip.setHidden(false);
458: prop_toolTip.setPreferred(false);
459: attrib = new AttributeDescriptor("toolTip", false, null,
460: true);
461: prop_toolTip.setValue(
462: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
463: attrib);
464: prop_toolTip
465: .setValue(
466: Constants.PropertyDescriptor.CATEGORY,
467: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
468:
469: PropertyDescriptor prop_visible = new PropertyDescriptor(
470: "visible", beanClass, "getVisible", "setVisible");
471: prop_visible.setDisplayName(resources
472: .getString("CalendarMonth_visible_DisplayName"));
473: prop_visible.setShortDescription(resources
474: .getString("CalendarMonth_visible_Description"));
475: prop_visible.setExpert(false);
476: prop_visible.setHidden(false);
477: prop_visible.setPreferred(false);
478: attrib = new AttributeDescriptor("visible", false, null,
479: true);
480: prop_visible.setValue(
481: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
482: attrib);
483: prop_visible
484: .setValue(
485: Constants.PropertyDescriptor.CATEGORY,
486: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
487:
488: PropertyDescriptor prop_yearsToShow = new PropertyDescriptor(
489: "yearsToShow", beanClass, "getYearsToShow",
490: "setYearsToShow");
491: prop_yearsToShow
492: .setDisplayName(resources
493: .getString("CalendarMonth_yearsToShow_DisplayName"));
494: prop_yearsToShow
495: .setShortDescription(resources
496: .getString("CalendarMonth_yearsToShow_Description"));
497: prop_yearsToShow.setExpert(false);
498: prop_yearsToShow.setHidden(false);
499: prop_yearsToShow.setPreferred(false);
500: attrib = new AttributeDescriptor("yearsToShow", false,
501: null, true);
502: prop_yearsToShow.setValue(
503: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
504: attrib);
505: prop_yearsToShow
506: .setValue(
507: Constants.PropertyDescriptor.CATEGORY,
508: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
509:
510: PropertyDescriptor prop_attributes = new PropertyDescriptor(
511: "attributes", beanClass, "getAttributes", null);
512: prop_attributes.setDisplayName(resources
513: .getString("CalendarMonth_attributes_DisplayName"));
514: prop_attributes.setShortDescription(resources
515: .getString("CalendarMonth_attributes_Description"));
516: prop_attributes.setExpert(false);
517: prop_attributes.setHidden(true);
518: prop_attributes.setPreferred(false);
519: prop_attributes
520: .setValue(
521: Constants.PropertyDescriptor.CATEGORY,
522: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
523:
524: PropertyDescriptor prop_childCount = new PropertyDescriptor(
525: "childCount", beanClass, "getChildCount", null);
526: prop_childCount.setDisplayName(resources
527: .getString("CalendarMonth_childCount_DisplayName"));
528: prop_childCount.setShortDescription(resources
529: .getString("CalendarMonth_childCount_Description"));
530: prop_childCount.setExpert(false);
531: prop_childCount.setHidden(true);
532: prop_childCount.setPreferred(false);
533: prop_childCount
534: .setValue(
535: Constants.PropertyDescriptor.CATEGORY,
536: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
537:
538: PropertyDescriptor prop_children = new PropertyDescriptor(
539: "children", beanClass, "getChildren", null);
540: prop_children.setDisplayName(resources
541: .getString("CalendarMonth_children_DisplayName"));
542: prop_children.setShortDescription(resources
543: .getString("CalendarMonth_children_Description"));
544: prop_children.setExpert(false);
545: prop_children.setHidden(true);
546: prop_children.setPreferred(false);
547: prop_children
548: .setValue(
549: Constants.PropertyDescriptor.CATEGORY,
550: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
551:
552: PropertyDescriptor prop_converter = new PropertyDescriptor(
553: "converter", beanClass, "getConverter",
554: "setConverter");
555: prop_converter.setDisplayName(resources
556: .getString("CalendarMonth_converter_DisplayName"));
557: prop_converter.setShortDescription(resources
558: .getString("CalendarMonth_converter_Description"));
559: prop_converter
560: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
561: prop_converter.setExpert(false);
562: prop_converter.setHidden(false);
563: prop_converter.setPreferred(false);
564: attrib = new AttributeDescriptor("converter", false, null,
565: true);
566: prop_converter.setValue(
567: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
568: attrib);
569: prop_converter
570: .setValue(
571: Constants.PropertyDescriptor.CATEGORY,
572: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
573:
574: PropertyDescriptor prop_facets = new PropertyDescriptor(
575: "facets", beanClass, "getFacets", null);
576: prop_facets.setDisplayName(resources
577: .getString("CalendarMonth_facets_DisplayName"));
578: prop_facets.setShortDescription(resources
579: .getString("CalendarMonth_facets_Description"));
580: prop_facets.setExpert(false);
581: prop_facets.setHidden(true);
582: prop_facets.setPreferred(false);
583: prop_facets
584: .setValue(
585: Constants.PropertyDescriptor.CATEGORY,
586: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
587:
588: PropertyDescriptor prop_family = new PropertyDescriptor(
589: "family", beanClass, "getFamily", null);
590: prop_family.setDisplayName(resources
591: .getString("CalendarMonth_family_DisplayName"));
592: prop_family.setShortDescription(resources
593: .getString("CalendarMonth_family_Description"));
594: prop_family.setExpert(false);
595: prop_family.setHidden(true);
596: prop_family.setPreferred(false);
597: prop_family
598: .setValue(
599: Constants.PropertyDescriptor.CATEGORY,
600: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
601:
602: PropertyDescriptor prop_id = new PropertyDescriptor("id",
603: beanClass, "getId", "setId");
604: prop_id.setDisplayName(resources
605: .getString("CalendarMonth_id_DisplayName"));
606: prop_id.setShortDescription(resources
607: .getString("CalendarMonth_id_Description"));
608: prop_id.setExpert(false);
609: prop_id.setHidden(true);
610: prop_id.setPreferred(false);
611: attrib = new AttributeDescriptor("id", false, null, true);
612: prop_id.setValue(
613: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
614: attrib);
615: prop_id
616: .setValue(
617: Constants.PropertyDescriptor.CATEGORY,
618: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
619:
620: PropertyDescriptor prop_localValue = new PropertyDescriptor(
621: "localValue", beanClass, "getLocalValue", null);
622: prop_localValue.setDisplayName(resources
623: .getString("CalendarMonth_localValue_DisplayName"));
624: prop_localValue.setShortDescription(resources
625: .getString("CalendarMonth_localValue_Description"));
626: prop_localValue.setExpert(false);
627: prop_localValue.setHidden(true);
628: prop_localValue.setPreferred(false);
629: prop_localValue
630: .setValue(
631: Constants.PropertyDescriptor.CATEGORY,
632: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
633:
634: PropertyDescriptor prop_parent = new PropertyDescriptor(
635: "parent", beanClass, "getParent", null);
636: prop_parent.setDisplayName(resources
637: .getString("CalendarMonth_parent_DisplayName"));
638: prop_parent.setShortDescription(resources
639: .getString("CalendarMonth_parent_Description"));
640: prop_parent.setExpert(false);
641: prop_parent.setHidden(true);
642: prop_parent.setPreferred(false);
643: prop_parent
644: .setValue(
645: Constants.PropertyDescriptor.CATEGORY,
646: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
647:
648: PropertyDescriptor prop_rendered = new PropertyDescriptor(
649: "rendered", beanClass, "isRendered", "setRendered");
650: prop_rendered.setDisplayName(resources
651: .getString("CalendarMonth_rendered_DisplayName"));
652: prop_rendered.setShortDescription(resources
653: .getString("CalendarMonth_rendered_Description"));
654: prop_rendered.setExpert(false);
655: prop_rendered.setHidden(false);
656: prop_rendered.setPreferred(false);
657: attrib = new AttributeDescriptor("rendered", false, null,
658: true);
659: prop_rendered.setValue(
660: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
661: attrib);
662: prop_rendered
663: .setValue(
664: Constants.PropertyDescriptor.CATEGORY,
665: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
666:
667: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
668: "rendererType", beanClass, "getRendererType",
669: "setRendererType");
670: prop_rendererType
671: .setDisplayName(resources
672: .getString("CalendarMonth_rendererType_DisplayName"));
673: prop_rendererType
674: .setShortDescription(resources
675: .getString("CalendarMonth_rendererType_Description"));
676: prop_rendererType.setExpert(false);
677: prop_rendererType.setHidden(true);
678: prop_rendererType.setPreferred(false);
679: prop_rendererType
680: .setValue(
681: Constants.PropertyDescriptor.CATEGORY,
682: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
683:
684: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
685: "rendersChildren", beanClass, "getRendersChildren",
686: null);
687: prop_rendersChildren
688: .setDisplayName(resources
689: .getString("CalendarMonth_rendersChildren_DisplayName"));
690: prop_rendersChildren
691: .setShortDescription(resources
692: .getString("CalendarMonth_rendersChildren_Description"));
693: prop_rendersChildren.setExpert(false);
694: prop_rendersChildren.setHidden(true);
695: prop_rendersChildren.setPreferred(false);
696: prop_rendersChildren
697: .setValue(
698: Constants.PropertyDescriptor.CATEGORY,
699: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
700:
701: PropertyDescriptor prop_value = new PropertyDescriptor(
702: "value", beanClass, "getValue", "setValue");
703: prop_value.setDisplayName(resources
704: .getString("CalendarMonth_value_DisplayName"));
705: prop_value.setShortDescription(resources
706: .getString("CalendarMonth_value_Description"));
707: prop_value.setExpert(false);
708: prop_value.setHidden(true);
709: prop_value.setPreferred(false);
710: prop_value
711: .setValue(
712: Constants.PropertyDescriptor.CATEGORY,
713: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
714:
715: propDescriptors = new PropertyDescriptor[] {
716: prop_attributes, prop_childCount, prop_children,
717: prop_converter, prop_dateFormat,
718: prop_dateFormatPattern, prop_facets, prop_family,
719: prop_id, prop_localValue, prop_parent, prop_popup,
720: prop_rendered, prop_rendererType,
721: prop_rendersChildren, prop_selectedDate,
722: prop_style, prop_styleClass, prop_tabIndex,
723: prop_timeZone, prop_toolTip, prop_value,
724: prop_visible, prop_yearsToShow, };
725: return propDescriptors;
726:
727: } catch (IntrospectionException e) {
728: e.printStackTrace();
729: return null;
730: }
731:
732: }
733:
734: }
735: //GEN-END:BeanInfo
|