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 TimeBeanInfoBase 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(), TimeBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>TimeBeanInfoBase</code>.</p>
075: */
076: public TimeBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.Time.class;
079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Time_C16";
080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Time_C32";
081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Time_M16";
082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Time_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("Time_DisplayName"));
143: beanDescriptor.setShortDescription(resources
144: .getString("Time_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.INSTANCE_NAME,
152: "time");
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: "time");
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_disabled = new PropertyDescriptor(
283: "disabled", beanClass, "isDisabled", "setDisabled");
284: prop_disabled.setDisplayName(resources
285: .getString("Time_disabled_DisplayName"));
286: prop_disabled.setShortDescription(resources
287: .getString("Time_disabled_Description"));
288: prop_disabled.setExpert(false);
289: prop_disabled.setHidden(false);
290: prop_disabled.setPreferred(false);
291: attrib = new AttributeDescriptor("disabled", false, null,
292: true);
293: prop_disabled.setValue(
294: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
295: attrib);
296: prop_disabled
297: .setValue(
298: Constants.PropertyDescriptor.CATEGORY,
299: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
300:
301: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
302: "readOnly", beanClass, "isReadOnly", "setReadOnly");
303: prop_readOnly.setDisplayName(resources
304: .getString("Time_readOnly_DisplayName"));
305: prop_readOnly.setShortDescription(resources
306: .getString("Time_readOnly_Description"));
307: prop_readOnly.setExpert(false);
308: prop_readOnly.setHidden(false);
309: prop_readOnly.setPreferred(false);
310: attrib = new AttributeDescriptor("readOnly", false, null,
311: true);
312: prop_readOnly.setValue(
313: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
314: attrib);
315: prop_readOnly
316: .setValue(
317: Constants.PropertyDescriptor.CATEGORY,
318: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
319:
320: PropertyDescriptor prop_style = new PropertyDescriptor(
321: "style", beanClass, "getStyle", "setStyle");
322: prop_style.setDisplayName(resources
323: .getString("Time_style_DisplayName"));
324: prop_style.setShortDescription(resources
325: .getString("Time_style_Description"));
326: prop_style.setExpert(false);
327: prop_style.setHidden(false);
328: prop_style.setPreferred(false);
329: attrib = new AttributeDescriptor("style", false, null, true);
330: prop_style.setValue(
331: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
332: attrib);
333: prop_style
334: .setValue(
335: Constants.PropertyDescriptor.CATEGORY,
336: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
337:
338: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
339: "styleClass", beanClass, "getStyleClass",
340: "setStyleClass");
341: prop_styleClass.setDisplayName(resources
342: .getString("Time_styleClass_DisplayName"));
343: prop_styleClass.setShortDescription(resources
344: .getString("Time_styleClass_Description"));
345: prop_styleClass.setExpert(false);
346: prop_styleClass.setHidden(false);
347: prop_styleClass.setPreferred(false);
348: attrib = new AttributeDescriptor("styleClass", false, null,
349: true);
350: prop_styleClass.setValue(
351: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
352: attrib);
353: prop_styleClass
354: .setValue(
355: Constants.PropertyDescriptor.CATEGORY,
356: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
357:
358: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
359: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
360: prop_tabIndex.setDisplayName(resources
361: .getString("Time_tabIndex_DisplayName"));
362: prop_tabIndex.setShortDescription(resources
363: .getString("Time_tabIndex_Description"));
364: prop_tabIndex.setExpert(false);
365: prop_tabIndex.setHidden(false);
366: prop_tabIndex.setPreferred(false);
367: attrib = new AttributeDescriptor("tabIndex", false, null,
368: true);
369: prop_tabIndex.setValue(
370: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
371: attrib);
372: prop_tabIndex
373: .setValue(
374: Constants.PropertyDescriptor.CATEGORY,
375: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
376:
377: PropertyDescriptor prop_timeZone = new PropertyDescriptor(
378: "timeZone", beanClass, "getTimeZone", "setTimeZone");
379: prop_timeZone.setDisplayName(resources
380: .getString("Time_timeZone_DisplayName"));
381: prop_timeZone.setShortDescription(resources
382: .getString("Time_timeZone_Description"));
383: prop_timeZone.setExpert(false);
384: prop_timeZone.setHidden(false);
385: prop_timeZone.setPreferred(false);
386: attrib = new AttributeDescriptor("timeZone", false, null,
387: true);
388: prop_timeZone.setValue(
389: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
390: attrib);
391: prop_timeZone
392: .setValue(
393: Constants.PropertyDescriptor.CATEGORY,
394: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
395:
396: PropertyDescriptor prop_visible = new PropertyDescriptor(
397: "visible", beanClass, "isVisible", "setVisible");
398: prop_visible.setDisplayName(resources
399: .getString("Time_visible_DisplayName"));
400: prop_visible.setShortDescription(resources
401: .getString("Time_visible_Description"));
402: prop_visible.setExpert(false);
403: prop_visible.setHidden(false);
404: prop_visible.setPreferred(false);
405: attrib = new AttributeDescriptor("visible", false, "true",
406: true);
407: prop_visible.setValue(
408: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
409: attrib);
410: prop_visible
411: .setValue(
412: Constants.PropertyDescriptor.CATEGORY,
413: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
414:
415: PropertyDescriptor prop_attributes = new PropertyDescriptor(
416: "attributes", beanClass, "getAttributes", null);
417: prop_attributes.setDisplayName(resources
418: .getString("Time_attributes_DisplayName"));
419: prop_attributes.setShortDescription(resources
420: .getString("Time_attributes_Description"));
421: prop_attributes.setExpert(false);
422: prop_attributes.setHidden(true);
423: prop_attributes.setPreferred(false);
424: prop_attributes
425: .setValue(
426: Constants.PropertyDescriptor.CATEGORY,
427: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
428:
429: PropertyDescriptor prop_childCount = new PropertyDescriptor(
430: "childCount", beanClass, "getChildCount", null);
431: prop_childCount.setDisplayName(resources
432: .getString("Time_childCount_DisplayName"));
433: prop_childCount.setShortDescription(resources
434: .getString("Time_childCount_Description"));
435: prop_childCount.setExpert(false);
436: prop_childCount.setHidden(true);
437: prop_childCount.setPreferred(false);
438: prop_childCount
439: .setValue(
440: Constants.PropertyDescriptor.CATEGORY,
441: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
442:
443: PropertyDescriptor prop_children = new PropertyDescriptor(
444: "children", beanClass, "getChildren", null);
445: prop_children.setDisplayName(resources
446: .getString("Time_children_DisplayName"));
447: prop_children.setShortDescription(resources
448: .getString("Time_children_Description"));
449: prop_children.setExpert(false);
450: prop_children.setHidden(true);
451: prop_children.setPreferred(false);
452: prop_children
453: .setValue(
454: Constants.PropertyDescriptor.CATEGORY,
455: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
456:
457: PropertyDescriptor prop_converter = new PropertyDescriptor(
458: "converter", beanClass, "getConverter",
459: "setConverter");
460: prop_converter.setDisplayName(resources
461: .getString("Time_converter_DisplayName"));
462: prop_converter.setShortDescription(resources
463: .getString("Time_converter_Description"));
464: prop_converter
465: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
466: prop_converter.setExpert(false);
467: prop_converter.setHidden(false);
468: prop_converter.setPreferred(false);
469: attrib = new AttributeDescriptor("converter", false, null,
470: true);
471: prop_converter.setValue(
472: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
473: attrib);
474: prop_converter
475: .setValue(
476: Constants.PropertyDescriptor.CATEGORY,
477: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
478:
479: PropertyDescriptor prop_facets = new PropertyDescriptor(
480: "facets", beanClass, "getFacets", null);
481: prop_facets.setDisplayName(resources
482: .getString("Time_facets_DisplayName"));
483: prop_facets.setShortDescription(resources
484: .getString("Time_facets_Description"));
485: prop_facets.setExpert(false);
486: prop_facets.setHidden(true);
487: prop_facets.setPreferred(false);
488: prop_facets
489: .setValue(
490: Constants.PropertyDescriptor.CATEGORY,
491: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
492:
493: PropertyDescriptor prop_family = new PropertyDescriptor(
494: "family", beanClass, "getFamily", null);
495: prop_family.setDisplayName(resources
496: .getString("Time_family_DisplayName"));
497: prop_family.setShortDescription(resources
498: .getString("Time_family_Description"));
499: prop_family.setExpert(false);
500: prop_family.setHidden(true);
501: prop_family.setPreferred(false);
502: prop_family
503: .setValue(
504: Constants.PropertyDescriptor.CATEGORY,
505: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
506:
507: PropertyDescriptor prop_id = new PropertyDescriptor("id",
508: beanClass, "getId", "setId");
509: prop_id.setDisplayName(resources
510: .getString("Time_id_DisplayName"));
511: prop_id.setShortDescription(resources
512: .getString("Time_id_Description"));
513: prop_id.setExpert(false);
514: prop_id.setHidden(true);
515: prop_id.setPreferred(false);
516: attrib = new AttributeDescriptor("id", false, null, true);
517: prop_id.setValue(
518: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
519: attrib);
520: prop_id
521: .setValue(
522: Constants.PropertyDescriptor.CATEGORY,
523: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
524:
525: PropertyDescriptor prop_immediate = new PropertyDescriptor(
526: "immediate", beanClass, "isImmediate",
527: "setImmediate");
528: prop_immediate.setDisplayName(resources
529: .getString("Time_immediate_DisplayName"));
530: prop_immediate.setShortDescription(resources
531: .getString("Time_immediate_Description"));
532: prop_immediate.setExpert(false);
533: prop_immediate.setHidden(false);
534: prop_immediate.setPreferred(false);
535: attrib = new AttributeDescriptor("immediate", false, null,
536: true);
537: prop_immediate.setValue(
538: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
539: attrib);
540: prop_immediate
541: .setValue(
542: Constants.PropertyDescriptor.CATEGORY,
543: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
544:
545: PropertyDescriptor prop_localValue = new PropertyDescriptor(
546: "localValue", beanClass, "getLocalValue", null);
547: prop_localValue.setDisplayName(resources
548: .getString("Time_localValue_DisplayName"));
549: prop_localValue.setShortDescription(resources
550: .getString("Time_localValue_Description"));
551: prop_localValue.setExpert(false);
552: prop_localValue.setHidden(true);
553: prop_localValue.setPreferred(false);
554: prop_localValue
555: .setValue(
556: Constants.PropertyDescriptor.CATEGORY,
557: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
558:
559: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
560: "localValueSet", beanClass, "isLocalValueSet",
561: "setLocalValueSet");
562: prop_localValueSet.setDisplayName(resources
563: .getString("Time_localValueSet_DisplayName"));
564: prop_localValueSet.setShortDescription(resources
565: .getString("Time_localValueSet_Description"));
566: prop_localValueSet.setExpert(false);
567: prop_localValueSet.setHidden(true);
568: prop_localValueSet.setPreferred(false);
569: prop_localValueSet
570: .setValue(
571: Constants.PropertyDescriptor.CATEGORY,
572: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
573:
574: PropertyDescriptor prop_parent = new PropertyDescriptor(
575: "parent", beanClass, "getParent", null);
576: prop_parent.setDisplayName(resources
577: .getString("Time_parent_DisplayName"));
578: prop_parent.setShortDescription(resources
579: .getString("Time_parent_Description"));
580: prop_parent.setExpert(false);
581: prop_parent.setHidden(true);
582: prop_parent.setPreferred(false);
583: prop_parent
584: .setValue(
585: Constants.PropertyDescriptor.CATEGORY,
586: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
587:
588: PropertyDescriptor prop_rendered = new PropertyDescriptor(
589: "rendered", beanClass, "isRendered", "setRendered");
590: prop_rendered.setDisplayName(resources
591: .getString("Time_rendered_DisplayName"));
592: prop_rendered.setShortDescription(resources
593: .getString("Time_rendered_Description"));
594: prop_rendered.setExpert(false);
595: prop_rendered.setHidden(false);
596: prop_rendered.setPreferred(false);
597: attrib = new AttributeDescriptor("rendered", false, null,
598: true);
599: prop_rendered.setValue(
600: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
601: attrib);
602: prop_rendered
603: .setValue(
604: Constants.PropertyDescriptor.CATEGORY,
605: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
606:
607: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
608: "rendererType", beanClass, "getRendererType",
609: "setRendererType");
610: prop_rendererType.setDisplayName(resources
611: .getString("Time_rendererType_DisplayName"));
612: prop_rendererType.setShortDescription(resources
613: .getString("Time_rendererType_Description"));
614: prop_rendererType.setExpert(false);
615: prop_rendererType.setHidden(true);
616: prop_rendererType.setPreferred(false);
617: prop_rendererType
618: .setValue(
619: Constants.PropertyDescriptor.CATEGORY,
620: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
621:
622: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
623: "rendersChildren", beanClass, "getRendersChildren",
624: null);
625: prop_rendersChildren.setDisplayName(resources
626: .getString("Time_rendersChildren_DisplayName"));
627: prop_rendersChildren.setShortDescription(resources
628: .getString("Time_rendersChildren_Description"));
629: prop_rendersChildren.setExpert(false);
630: prop_rendersChildren.setHidden(true);
631: prop_rendersChildren.setPreferred(false);
632: prop_rendersChildren
633: .setValue(
634: Constants.PropertyDescriptor.CATEGORY,
635: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
636:
637: PropertyDescriptor prop_required = new PropertyDescriptor(
638: "required", beanClass, "isRequired", "setRequired");
639: prop_required.setDisplayName(resources
640: .getString("Time_required_DisplayName"));
641: prop_required.setShortDescription(resources
642: .getString("Time_required_Description"));
643: prop_required.setExpert(false);
644: prop_required.setHidden(false);
645: prop_required.setPreferred(false);
646: attrib = new AttributeDescriptor("required", false, null,
647: true);
648: prop_required.setValue(
649: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
650: attrib);
651: prop_required
652: .setValue(
653: Constants.PropertyDescriptor.CATEGORY,
654: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
655:
656: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
657: "submittedValue", beanClass, "getSubmittedValue",
658: "setSubmittedValue");
659: prop_submittedValue.setDisplayName(resources
660: .getString("Time_submittedValue_DisplayName"));
661: prop_submittedValue.setShortDescription(resources
662: .getString("Time_submittedValue_Description"));
663: prop_submittedValue.setExpert(false);
664: prop_submittedValue.setHidden(true);
665: prop_submittedValue.setPreferred(false);
666: prop_submittedValue
667: .setValue(
668: Constants.PropertyDescriptor.CATEGORY,
669: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
670:
671: PropertyDescriptor prop_validator = new PropertyDescriptor(
672: "validator", beanClass, "getValidator",
673: "setValidator");
674: prop_validator.setDisplayName(resources
675: .getString("Time_validator_DisplayName"));
676: prop_validator.setShortDescription(resources
677: .getString("Time_validator_Description"));
678: prop_validator
679: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
680: prop_validator.setExpert(false);
681: prop_validator.setHidden(false);
682: prop_validator.setPreferred(false);
683: attrib = new AttributeDescriptor("validator", false, null,
684: true);
685: prop_validator.setValue(
686: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
687: attrib);
688: prop_validator
689: .setValue(
690: Constants.PropertyDescriptor.CATEGORY,
691: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
692:
693: PropertyDescriptor prop_value = new PropertyDescriptor(
694: "value", beanClass, "getValue", "setValue");
695: prop_value.setDisplayName(resources
696: .getString("Time_value_DisplayName"));
697: prop_value.setShortDescription(resources
698: .getString("Time_value_Description"));
699: prop_value.setExpert(false);
700: prop_value.setHidden(false);
701: prop_value.setPreferred(false);
702: attrib = new AttributeDescriptor("value", false, null, true);
703: prop_value.setValue(
704: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
705: attrib);
706: prop_value
707: .setValue(
708: Constants.PropertyDescriptor.CATEGORY,
709: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
710:
711: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
712: "valueChangeListener", beanClass,
713: "getValueChangeListener", "setValueChangeListener");
714: prop_valueChangeListener.setDisplayName(resources
715: .getString("Time_valueChangeListener_DisplayName"));
716: prop_valueChangeListener.setShortDescription(resources
717: .getString("Time_valueChangeListener_Description"));
718: prop_valueChangeListener
719: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
720: prop_valueChangeListener.setExpert(false);
721: prop_valueChangeListener.setHidden(false);
722: prop_valueChangeListener.setPreferred(false);
723: attrib = new AttributeDescriptor("valueChangeListener",
724: false, null, true);
725: prop_valueChangeListener.setValue(
726: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
727: attrib);
728: prop_valueChangeListener
729: .setValue(
730: Constants.PropertyDescriptor.CATEGORY,
731: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
732:
733: propDescriptors = new PropertyDescriptor[] {
734: prop_attributes, prop_childCount, prop_children,
735: prop_converter, prop_disabled, prop_facets,
736: prop_family, prop_id, prop_immediate,
737: prop_localValue, prop_localValueSet, prop_parent,
738: prop_readOnly, prop_rendered, prop_rendererType,
739: prop_rendersChildren, prop_required, prop_style,
740: prop_styleClass, prop_submittedValue,
741: prop_tabIndex, prop_timeZone, prop_validator,
742: prop_value, prop_valueChangeListener, prop_visible, };
743: return propDescriptors;
744:
745: } catch (IntrospectionException e) {
746: e.printStackTrace();
747: return null;
748: }
749:
750: }
751:
752: }
753: //GEN-END:BeanInfo
|