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 AlertBeanInfoBase 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(), AlertBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>AlertBeanInfoBase</code>.</p>
075: */
076: public AlertBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.Alert.class;
079: defaultPropertyName = "summary";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Alert_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Alert_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Alert_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Alert_M32";
084:
085: }
086:
087: /**
088: * <p>The bean class that this BeanInfo represents.
089: */
090: protected Class beanClass;
091:
092: /**
093: * <p>The cached BeanDescriptor.</p>
094: */
095: protected BeanDescriptor beanDescriptor;
096:
097: /**
098: * <p>The index of the default property.</p>
099: */
100: protected int defaultPropertyIndex = -2;
101:
102: /**
103: * <p>The name of the default property.</p>
104: */
105: protected String defaultPropertyName;
106:
107: /**
108: * <p>The 16x16 color icon.</p>
109: */
110: protected String iconFileName_C16;
111:
112: /**
113: * <p>The 32x32 color icon.</p>
114: */
115: protected String iconFileName_C32;
116:
117: /**
118: * <p>The 16x16 monochrome icon.</p>
119: */
120: protected String iconFileName_M16;
121:
122: /**
123: * <p>The 32x32 monochrome icon.</p>
124: */
125: protected String iconFileName_M32;
126:
127: /**
128: * <p>The cached property descriptors.</p>
129: */
130: protected PropertyDescriptor[] propDescriptors;
131:
132: /**
133: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
134: */
135: public BeanDescriptor getBeanDescriptor() {
136:
137: if (beanDescriptor != null) {
138: return beanDescriptor;
139: }
140:
141: beanDescriptor = new BeanDescriptor(beanClass);
142: beanDescriptor.setDisplayName(resources
143: .getString("Alert_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("Alert_Description"));
146: beanDescriptor.setExpert(false);
147: beanDescriptor.setHidden(false);
148: beanDescriptor.setPreferred(false);
149: beanDescriptor.setValue(
150: Constants.BeanDescriptor.FACET_DESCRIPTORS,
151: getFacetDescriptors());
152: beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
153: "projrave_ui_elements_palette_bh_alert");
154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155: "alert");
156: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
157: Boolean.TRUE);
158: beanDescriptor
159: .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
160: "projrave_ui_elements_palette_bh_propsheets_bh_alert_props");
161: beanDescriptor.setValue(
162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
163: getCategoryDescriptors());
164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
165: "alert");
166: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
167: "ui");
168: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
169: "http://www.sun.com/web/ui");
170:
171: return beanDescriptor;
172:
173: }
174:
175: /**
176: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
177: */
178: private CategoryDescriptor[] getCategoryDescriptors() {
179:
180: return com.sun.rave.designtime.base.CategoryDescriptors
181: .getDefaultCategoryDescriptors();
182:
183: }
184:
185: /**
186: * <p>Return the index of the default property, or
187: * -1 if there is no default property.</p>
188: */
189: public int getDefaultPropertyIndex() {
190:
191: if (defaultPropertyIndex > -2) {
192: return defaultPropertyIndex;
193: } else {
194: if (defaultPropertyName == null) {
195: defaultPropertyIndex = -1;
196: } else {
197: PropertyDescriptor pd[] = getPropertyDescriptors();
198: for (int i = 0; i < pd.length; i++) {
199: if (defaultPropertyName.equals(pd[i].getName())) {
200: defaultPropertyIndex = i;
201: break;
202: }
203: }
204: }
205: }
206: return defaultPropertyIndex;
207: }
208:
209: /**
210: * <p>The cached facet descriptors.</p>
211: */
212: protected FacetDescriptor[] facetDescriptors;
213:
214: /**
215: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
216: */
217: public FacetDescriptor[] getFacetDescriptors() {
218:
219: if (facetDescriptors != null) {
220: return facetDescriptors;
221: }
222: facetDescriptors = new FacetDescriptor[] {};
223: return facetDescriptors;
224:
225: }
226:
227: /**
228: * <p>Return the specified image (if any)
229: * for this component class.</p>
230: */
231: public Image getIcon(int kind) {
232:
233: String name;
234: switch (kind) {
235: case ICON_COLOR_16x16:
236: name = iconFileName_C16;
237: break;
238: case ICON_COLOR_32x32:
239: name = iconFileName_C32;
240: break;
241: case ICON_MONO_16x16:
242: name = iconFileName_M16;
243: break;
244: case ICON_MONO_32x32:
245: name = iconFileName_M32;
246: break;
247: default:
248: name = null;
249: break;
250: }
251: if (name == null) {
252: return null;
253: }
254:
255: Image image = loadImage(name + ".png");
256: if (image == null) {
257: image = loadImage(name + ".gif");
258: }
259: return image;
260:
261: }
262:
263: /**
264: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
265: */
266: private java.lang.Class loadClass(java.lang.String name) {
267:
268: try {
269: return Class.forName(name);
270: } catch (ClassNotFoundException e) {
271: throw new RuntimeException(e);
272: }
273:
274: }
275:
276: /**
277: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
278: */
279: public PropertyDescriptor[] getPropertyDescriptors() {
280:
281: if (propDescriptors != null) {
282: return propDescriptors;
283: }
284: AttributeDescriptor attrib = null;
285:
286: try {
287:
288: PropertyDescriptor prop_alt = new PropertyDescriptor("alt",
289: beanClass, "getAlt", "setAlt");
290: prop_alt.setDisplayName(resources
291: .getString("Alert_alt_DisplayName"));
292: prop_alt.setShortDescription(resources
293: .getString("Alert_alt_Description"));
294: prop_alt
295: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
296: prop_alt.setExpert(false);
297: prop_alt.setHidden(false);
298: prop_alt.setPreferred(false);
299: attrib = new AttributeDescriptor("alt", false, null, true);
300: prop_alt.setValue(
301: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
302: attrib);
303: prop_alt
304: .setValue(
305: Constants.PropertyDescriptor.CATEGORY,
306: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
307:
308: PropertyDescriptor prop_detail = new PropertyDescriptor(
309: "detail", beanClass, "getDetail", "setDetail");
310: prop_detail.setDisplayName(resources
311: .getString("Alert_detail_DisplayName"));
312: prop_detail.setShortDescription(resources
313: .getString("Alert_detail_Description"));
314: prop_detail
315: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
316: prop_detail.setExpert(false);
317: prop_detail.setHidden(false);
318: prop_detail.setPreferred(false);
319: attrib = new AttributeDescriptor("detail", false, null,
320: true);
321: prop_detail.setValue(
322: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
323: attrib);
324: prop_detail
325: .setValue(
326: Constants.PropertyDescriptor.CATEGORY,
327: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
328:
329: PropertyDescriptor prop_linkAction = new PropertyDescriptor(
330: "linkAction", beanClass, "getLinkAction",
331: "setLinkAction");
332: prop_linkAction.setDisplayName(resources
333: .getString("Alert_linkAction_DisplayName"));
334: prop_linkAction.setShortDescription(resources
335: .getString("Alert_linkAction_Description"));
336: prop_linkAction.setExpert(false);
337: prop_linkAction.setHidden(false);
338: prop_linkAction.setPreferred(false);
339: attrib = new AttributeDescriptor("linkAction", false, null,
340: true);
341: prop_linkAction.setValue(
342: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
343: attrib);
344: prop_linkAction
345: .setValue(
346: Constants.PropertyDescriptor.CATEGORY,
347: com.sun.rave.designtime.base.CategoryDescriptors.NAVIGATION);
348:
349: PropertyDescriptor prop_linkTarget = new PropertyDescriptor(
350: "linkTarget", beanClass, "getLinkTarget",
351: "setLinkTarget");
352: prop_linkTarget.setDisplayName(resources
353: .getString("Alert_linkTarget_DisplayName"));
354: prop_linkTarget.setShortDescription(resources
355: .getString("Alert_linkTarget_Description"));
356: prop_linkTarget
357: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
358: prop_linkTarget.setExpert(false);
359: prop_linkTarget.setHidden(false);
360: prop_linkTarget.setPreferred(false);
361: attrib = new AttributeDescriptor("linkTarget", false, null,
362: true);
363: prop_linkTarget.setValue(
364: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
365: attrib);
366: prop_linkTarget
367: .setValue(
368: Constants.PropertyDescriptor.CATEGORY,
369: com.sun.rave.designtime.base.CategoryDescriptors.NAVIGATION);
370: prop_linkTarget
371: .setValue(
372: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
373: com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain.class);
374:
375: PropertyDescriptor prop_linkText = new PropertyDescriptor(
376: "linkText", beanClass, "getLinkText", "setLinkText");
377: prop_linkText.setDisplayName(resources
378: .getString("Alert_linkText_DisplayName"));
379: prop_linkText.setShortDescription(resources
380: .getString("Alert_linkText_Description"));
381: prop_linkText
382: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
383: prop_linkText.setExpert(false);
384: prop_linkText.setHidden(false);
385: prop_linkText.setPreferred(false);
386: attrib = new AttributeDescriptor("linkText", false, null,
387: true);
388: prop_linkText.setValue(
389: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
390: attrib);
391: prop_linkText
392: .setValue(
393: Constants.PropertyDescriptor.CATEGORY,
394: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
395:
396: PropertyDescriptor prop_linkToolTip = new PropertyDescriptor(
397: "linkToolTip", beanClass, "getLinkToolTip",
398: "setLinkToolTip");
399: prop_linkToolTip.setDisplayName(resources
400: .getString("Alert_linkToolTip_DisplayName"));
401: prop_linkToolTip.setShortDescription(resources
402: .getString("Alert_linkToolTip_Description"));
403: prop_linkToolTip
404: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
405: prop_linkToolTip.setExpert(false);
406: prop_linkToolTip.setHidden(false);
407: prop_linkToolTip.setPreferred(false);
408: attrib = new AttributeDescriptor("linkToolTip", false,
409: null, true);
410: prop_linkToolTip.setValue(
411: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
412: attrib);
413: prop_linkToolTip
414: .setValue(
415: Constants.PropertyDescriptor.CATEGORY,
416: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
417:
418: PropertyDescriptor prop_linkURL = new PropertyDescriptor(
419: "linkURL", beanClass, "getLinkURL", "setLinkURL");
420: prop_linkURL.setDisplayName(resources
421: .getString("Alert_linkURL_DisplayName"));
422: prop_linkURL.setShortDescription(resources
423: .getString("Alert_linkURL_Description"));
424: prop_linkURL
425: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.SunWebUrlPropertyEditor"));
426: prop_linkURL.setExpert(false);
427: prop_linkURL.setHidden(false);
428: prop_linkURL.setPreferred(false);
429: attrib = new AttributeDescriptor("linkURL", false, null,
430: true);
431: prop_linkURL.setValue(
432: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
433: attrib);
434: prop_linkURL
435: .setValue(
436: Constants.PropertyDescriptor.CATEGORY,
437: com.sun.rave.designtime.base.CategoryDescriptors.NAVIGATION);
438:
439: PropertyDescriptor prop_style = new PropertyDescriptor(
440: "style", beanClass, "getStyle", "setStyle");
441: prop_style.setDisplayName(resources
442: .getString("Alert_style_DisplayName"));
443: prop_style.setShortDescription(resources
444: .getString("Alert_style_Description"));
445: prop_style
446: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
447: prop_style.setExpert(false);
448: prop_style.setHidden(false);
449: prop_style.setPreferred(false);
450: attrib = new AttributeDescriptor("style", false, null, true);
451: prop_style.setValue(
452: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
453: attrib);
454: prop_style
455: .setValue(
456: Constants.PropertyDescriptor.CATEGORY,
457: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
458:
459: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
460: "styleClass", beanClass, "getStyleClass",
461: "setStyleClass");
462: prop_styleClass.setDisplayName(resources
463: .getString("Alert_styleClass_DisplayName"));
464: prop_styleClass.setShortDescription(resources
465: .getString("Alert_styleClass_Description"));
466: prop_styleClass
467: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
468: prop_styleClass.setExpert(false);
469: prop_styleClass.setHidden(false);
470: prop_styleClass.setPreferred(false);
471: attrib = new AttributeDescriptor("styleClass", false, null,
472: true);
473: prop_styleClass.setValue(
474: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
475: attrib);
476: prop_styleClass
477: .setValue(
478: Constants.PropertyDescriptor.CATEGORY,
479: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
480:
481: PropertyDescriptor prop_summary = new PropertyDescriptor(
482: "summary", beanClass, "getSummary", "setSummary");
483: prop_summary.setDisplayName(resources
484: .getString("Alert_summary_DisplayName"));
485: prop_summary.setShortDescription(resources
486: .getString("Alert_summary_Description"));
487: prop_summary
488: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
489: prop_summary.setExpert(false);
490: prop_summary.setHidden(false);
491: prop_summary.setPreferred(false);
492: attrib = new AttributeDescriptor("summary", false, null,
493: true);
494: prop_summary.setValue(
495: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
496: attrib);
497: prop_summary
498: .setValue(
499: Constants.PropertyDescriptor.CATEGORY,
500: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
501:
502: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
503: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
504: prop_tabIndex.setDisplayName(resources
505: .getString("Alert_tabIndex_DisplayName"));
506: prop_tabIndex.setShortDescription(resources
507: .getString("Alert_tabIndex_Description"));
508: prop_tabIndex
509: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
510: prop_tabIndex.setExpert(false);
511: prop_tabIndex.setHidden(false);
512: prop_tabIndex.setPreferred(false);
513: attrib = new AttributeDescriptor("tabIndex", false, null,
514: true);
515: prop_tabIndex.setValue(
516: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
517: attrib);
518: prop_tabIndex
519: .setValue(
520: Constants.PropertyDescriptor.CATEGORY,
521: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
522: prop_tabIndex.setValue(
523: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
524:
525: PropertyDescriptor prop_type = new PropertyDescriptor(
526: "type", beanClass, "getType", "setType");
527: prop_type.setDisplayName(resources
528: .getString("Alert_type_DisplayName"));
529: prop_type.setShortDescription(resources
530: .getString("Alert_type_Description"));
531: prop_type
532: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
533: prop_type.setExpert(false);
534: prop_type.setHidden(false);
535: prop_type.setPreferred(false);
536: attrib = new AttributeDescriptor("type", false, null, true);
537: prop_type.setValue(
538: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
539: attrib);
540: prop_type
541: .setValue(
542: Constants.PropertyDescriptor.CATEGORY,
543: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
544: prop_type
545: .setValue(
546: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
547: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.AlertTypesDomain.class);
548:
549: PropertyDescriptor prop_visible = new PropertyDescriptor(
550: "visible", beanClass, "isVisible", "setVisible");
551: prop_visible.setDisplayName(resources
552: .getString("Alert_visible_DisplayName"));
553: prop_visible.setShortDescription(resources
554: .getString("Alert_visible_Description"));
555: prop_visible.setExpert(false);
556: prop_visible.setHidden(false);
557: prop_visible.setPreferred(false);
558: attrib = new AttributeDescriptor("visible", false, "true",
559: true);
560: prop_visible.setValue(
561: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
562: attrib);
563: prop_visible
564: .setValue(
565: Constants.PropertyDescriptor.CATEGORY,
566: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
567:
568: PropertyDescriptor prop_attributes = new PropertyDescriptor(
569: "attributes", beanClass, "getAttributes", null);
570: prop_attributes.setDisplayName(resources
571: .getString("Alert_attributes_DisplayName"));
572: prop_attributes.setShortDescription(resources
573: .getString("Alert_attributes_Description"));
574: prop_attributes.setExpert(false);
575: prop_attributes.setHidden(true);
576: prop_attributes.setPreferred(false);
577: prop_attributes
578: .setValue(
579: Constants.PropertyDescriptor.CATEGORY,
580: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
581:
582: PropertyDescriptor prop_childCount = new PropertyDescriptor(
583: "childCount", beanClass, "getChildCount", null);
584: prop_childCount.setDisplayName(resources
585: .getString("Alert_childCount_DisplayName"));
586: prop_childCount.setShortDescription(resources
587: .getString("Alert_childCount_Description"));
588: prop_childCount.setExpert(false);
589: prop_childCount.setHidden(true);
590: prop_childCount.setPreferred(false);
591: prop_childCount
592: .setValue(
593: Constants.PropertyDescriptor.CATEGORY,
594: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
595:
596: PropertyDescriptor prop_children = new PropertyDescriptor(
597: "children", beanClass, "getChildren", null);
598: prop_children.setDisplayName(resources
599: .getString("Alert_children_DisplayName"));
600: prop_children.setShortDescription(resources
601: .getString("Alert_children_Description"));
602: prop_children.setExpert(false);
603: prop_children.setHidden(true);
604: prop_children.setPreferred(false);
605: prop_children
606: .setValue(
607: Constants.PropertyDescriptor.CATEGORY,
608: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
609:
610: PropertyDescriptor prop_converter = new PropertyDescriptor(
611: "converter", beanClass, "getConverter",
612: "setConverter");
613: prop_converter.setDisplayName(resources
614: .getString("Alert_converter_DisplayName"));
615: prop_converter.setShortDescription(resources
616: .getString("Alert_converter_Description"));
617: prop_converter
618: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
619: prop_converter.setExpert(false);
620: prop_converter.setHidden(true);
621: prop_converter.setPreferred(false);
622: prop_converter
623: .setValue(
624: Constants.PropertyDescriptor.CATEGORY,
625: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
626:
627: PropertyDescriptor prop_facets = new PropertyDescriptor(
628: "facets", beanClass, "getFacets", null);
629: prop_facets.setDisplayName(resources
630: .getString("Alert_facets_DisplayName"));
631: prop_facets.setShortDescription(resources
632: .getString("Alert_facets_Description"));
633: prop_facets.setExpert(false);
634: prop_facets.setHidden(true);
635: prop_facets.setPreferred(false);
636: prop_facets
637: .setValue(
638: Constants.PropertyDescriptor.CATEGORY,
639: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
640:
641: PropertyDescriptor prop_family = new PropertyDescriptor(
642: "family", beanClass, "getFamily", null);
643: prop_family.setDisplayName(resources
644: .getString("Alert_family_DisplayName"));
645: prop_family.setShortDescription(resources
646: .getString("Alert_family_Description"));
647: prop_family.setExpert(false);
648: prop_family.setHidden(true);
649: prop_family.setPreferred(false);
650: prop_family
651: .setValue(
652: Constants.PropertyDescriptor.CATEGORY,
653: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
654:
655: PropertyDescriptor prop_id = new PropertyDescriptor("id",
656: beanClass, "getId", "setId");
657: prop_id.setDisplayName(resources
658: .getString("Alert_id_DisplayName"));
659: prop_id.setShortDescription(resources
660: .getString("Alert_id_Description"));
661: prop_id.setExpert(false);
662: prop_id.setHidden(true);
663: prop_id.setPreferred(false);
664: attrib = new AttributeDescriptor("id", false, null, true);
665: prop_id.setValue(
666: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
667: attrib);
668: prop_id
669: .setValue(
670: Constants.PropertyDescriptor.CATEGORY,
671: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
672:
673: PropertyDescriptor prop_localValue = new PropertyDescriptor(
674: "localValue", beanClass, "getLocalValue", null);
675: prop_localValue.setDisplayName(resources
676: .getString("Alert_localValue_DisplayName"));
677: prop_localValue.setShortDescription(resources
678: .getString("Alert_localValue_Description"));
679: prop_localValue.setExpert(false);
680: prop_localValue.setHidden(true);
681: prop_localValue.setPreferred(false);
682: prop_localValue
683: .setValue(
684: Constants.PropertyDescriptor.CATEGORY,
685: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
686:
687: PropertyDescriptor prop_parent = new PropertyDescriptor(
688: "parent", beanClass, "getParent", null);
689: prop_parent.setDisplayName(resources
690: .getString("Alert_parent_DisplayName"));
691: prop_parent.setShortDescription(resources
692: .getString("Alert_parent_Description"));
693: prop_parent.setExpert(false);
694: prop_parent.setHidden(true);
695: prop_parent.setPreferred(false);
696: prop_parent
697: .setValue(
698: Constants.PropertyDescriptor.CATEGORY,
699: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
700:
701: PropertyDescriptor prop_rendered = new PropertyDescriptor(
702: "rendered", beanClass, "isRendered", "setRendered");
703: prop_rendered.setDisplayName(resources
704: .getString("Alert_rendered_DisplayName"));
705: prop_rendered.setShortDescription(resources
706: .getString("Alert_rendered_Description"));
707: prop_rendered.setExpert(false);
708: prop_rendered.setHidden(false);
709: prop_rendered.setPreferred(false);
710: attrib = new AttributeDescriptor("rendered", false, null,
711: true);
712: prop_rendered.setValue(
713: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
714: attrib);
715: prop_rendered
716: .setValue(
717: Constants.PropertyDescriptor.CATEGORY,
718: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
719:
720: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
721: "rendererType", beanClass, "getRendererType",
722: "setRendererType");
723: prop_rendererType.setDisplayName(resources
724: .getString("Alert_rendererType_DisplayName"));
725: prop_rendererType.setShortDescription(resources
726: .getString("Alert_rendererType_Description"));
727: prop_rendererType.setExpert(false);
728: prop_rendererType.setHidden(true);
729: prop_rendererType.setPreferred(false);
730: prop_rendererType
731: .setValue(
732: Constants.PropertyDescriptor.CATEGORY,
733: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
734:
735: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
736: "rendersChildren", beanClass, "getRendersChildren",
737: null);
738: prop_rendersChildren.setDisplayName(resources
739: .getString("Alert_rendersChildren_DisplayName"));
740: prop_rendersChildren.setShortDescription(resources
741: .getString("Alert_rendersChildren_Description"));
742: prop_rendersChildren.setExpert(false);
743: prop_rendersChildren.setHidden(true);
744: prop_rendersChildren.setPreferred(false);
745: prop_rendersChildren
746: .setValue(
747: Constants.PropertyDescriptor.CATEGORY,
748: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
749:
750: PropertyDescriptor prop_value = new PropertyDescriptor(
751: "value", beanClass, "getValue", "setValue");
752: prop_value.setDisplayName(resources
753: .getString("Alert_value_DisplayName"));
754: prop_value.setShortDescription(resources
755: .getString("Alert_value_Description"));
756: prop_value.setExpert(false);
757: prop_value.setHidden(true);
758: prop_value.setPreferred(false);
759: prop_value
760: .setValue(
761: Constants.PropertyDescriptor.CATEGORY,
762: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
763:
764: propDescriptors = new PropertyDescriptor[] { prop_alt,
765: prop_attributes, prop_childCount, prop_children,
766: prop_converter, prop_detail, prop_facets,
767: prop_family, prop_id, prop_linkAction,
768: prop_linkTarget, prop_linkText, prop_linkToolTip,
769: prop_linkURL, prop_localValue, prop_parent,
770: prop_rendered, prop_rendererType,
771: prop_rendersChildren, prop_style, prop_styleClass,
772: prop_summary, prop_tabIndex, prop_type, prop_value,
773: prop_visible, };
774: return propDescriptors;
775:
776: } catch (IntrospectionException e) {
777: e.printStackTrace();
778: return null;
779: }
780:
781: }
782:
783: }
784: //GEN-END:BeanInfo
|