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 PageAlertBeanInfoBase 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(), PageAlertBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>PageAlertBeanInfoBase</code>.</p>
075: */
076: public PageAlertBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.PageAlert.class;
079: defaultPropertyName = "title";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/PageAlert_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/PageAlert_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/PageAlert_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/PageAlert_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("PageAlert_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("PageAlert_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_page_alert");
154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155: "pageAlert");
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_page_alert_props");
161: beanDescriptor.setValue(
162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
163: getCategoryDescriptors());
164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
165: "pageAlert");
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("PageAlert_alt_DisplayName"));
292: prop_alt.setShortDescription(resources
293: .getString("PageAlert_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("PageAlert_detail_DisplayName"));
312: prop_detail.setShortDescription(resources
313: .getString("PageAlert_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_escape = new PropertyDescriptor(
330: "escape", beanClass, "isEscape", "setEscape");
331: prop_escape.setDisplayName(resources
332: .getString("PageAlert_escape_DisplayName"));
333: prop_escape.setShortDescription(resources
334: .getString("PageAlert_escape_Description"));
335: prop_escape.setExpert(false);
336: prop_escape.setHidden(false);
337: prop_escape.setPreferred(false);
338: attrib = new AttributeDescriptor("escape", false, "true",
339: true);
340: prop_escape.setValue(
341: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
342: attrib);
343: prop_escape
344: .setValue(
345: Constants.PropertyDescriptor.CATEGORY,
346: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
347:
348: PropertyDescriptor prop_style = new PropertyDescriptor(
349: "style", beanClass, "getStyle", "setStyle");
350: prop_style.setDisplayName(resources
351: .getString("PageAlert_style_DisplayName"));
352: prop_style.setShortDescription(resources
353: .getString("PageAlert_style_Description"));
354: prop_style
355: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
356: prop_style.setExpert(false);
357: prop_style.setHidden(false);
358: prop_style.setPreferred(false);
359: attrib = new AttributeDescriptor("style", false, null, true);
360: prop_style.setValue(
361: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
362: attrib);
363: prop_style
364: .setValue(
365: Constants.PropertyDescriptor.CATEGORY,
366: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
367:
368: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
369: "styleClass", beanClass, "getStyleClass",
370: "setStyleClass");
371: prop_styleClass.setDisplayName(resources
372: .getString("PageAlert_styleClass_DisplayName"));
373: prop_styleClass.setShortDescription(resources
374: .getString("PageAlert_styleClass_Description"));
375: prop_styleClass
376: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
377: prop_styleClass.setExpert(false);
378: prop_styleClass.setHidden(false);
379: prop_styleClass.setPreferred(false);
380: attrib = new AttributeDescriptor("styleClass", false, null,
381: true);
382: prop_styleClass.setValue(
383: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
384: attrib);
385: prop_styleClass
386: .setValue(
387: Constants.PropertyDescriptor.CATEGORY,
388: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
389:
390: PropertyDescriptor prop_summary = new PropertyDescriptor(
391: "summary", beanClass, "getSummary", "setSummary");
392: prop_summary.setDisplayName(resources
393: .getString("PageAlert_summary_DisplayName"));
394: prop_summary.setShortDescription(resources
395: .getString("PageAlert_summary_Description"));
396: prop_summary
397: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
398: prop_summary.setExpert(false);
399: prop_summary.setHidden(false);
400: prop_summary.setPreferred(false);
401: attrib = new AttributeDescriptor("summary", false, null,
402: true);
403: prop_summary.setValue(
404: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
405: attrib);
406: prop_summary
407: .setValue(
408: Constants.PropertyDescriptor.CATEGORY,
409: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
410:
411: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
412: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
413: prop_tabIndex.setDisplayName(resources
414: .getString("PageAlert_tabIndex_DisplayName"));
415: prop_tabIndex.setShortDescription(resources
416: .getString("PageAlert_tabIndex_Description"));
417: prop_tabIndex
418: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
419: prop_tabIndex.setExpert(false);
420: prop_tabIndex.setHidden(false);
421: prop_tabIndex.setPreferred(false);
422: attrib = new AttributeDescriptor("tabIndex", false, null,
423: true);
424: prop_tabIndex.setValue(
425: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
426: attrib);
427: prop_tabIndex
428: .setValue(
429: Constants.PropertyDescriptor.CATEGORY,
430: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
431: prop_tabIndex.setValue(
432: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
433:
434: PropertyDescriptor prop_title = new PropertyDescriptor(
435: "title", beanClass, "getTitle", "setTitle");
436: prop_title.setDisplayName(resources
437: .getString("PageAlert_title_DisplayName"));
438: prop_title.setShortDescription(resources
439: .getString("PageAlert_title_Description"));
440: prop_title
441: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
442: prop_title.setExpert(false);
443: prop_title.setHidden(false);
444: prop_title.setPreferred(false);
445: attrib = new AttributeDescriptor("title", false, null, true);
446: prop_title.setValue(
447: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
448: attrib);
449: prop_title
450: .setValue(
451: Constants.PropertyDescriptor.CATEGORY,
452: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
453:
454: PropertyDescriptor prop_type = new PropertyDescriptor(
455: "type", beanClass, "getType", "setType");
456: prop_type.setDisplayName(resources
457: .getString("PageAlert_type_DisplayName"));
458: prop_type.setShortDescription(resources
459: .getString("PageAlert_type_Description"));
460: prop_type
461: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
462: prop_type.setExpert(false);
463: prop_type.setHidden(false);
464: prop_type.setPreferred(false);
465: attrib = new AttributeDescriptor("type", false,
466: "\"error\"", true);
467: prop_type.setValue(
468: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
469: attrib);
470: prop_type
471: .setValue(
472: Constants.PropertyDescriptor.CATEGORY,
473: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
474: prop_type
475: .setValue(
476: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
477: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.PageAlertTypesDomain.class);
478:
479: PropertyDescriptor prop_visible = new PropertyDescriptor(
480: "visible", beanClass, "isVisible", "setVisible");
481: prop_visible.setDisplayName(resources
482: .getString("PageAlert_visible_DisplayName"));
483: prop_visible.setShortDescription(resources
484: .getString("PageAlert_visible_Description"));
485: prop_visible.setExpert(false);
486: prop_visible.setHidden(false);
487: prop_visible.setPreferred(false);
488: attrib = new AttributeDescriptor("visible", false, "true",
489: true);
490: prop_visible.setValue(
491: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
492: attrib);
493: prop_visible
494: .setValue(
495: Constants.PropertyDescriptor.CATEGORY,
496: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
497:
498: PropertyDescriptor prop_attributes = new PropertyDescriptor(
499: "attributes", beanClass, "getAttributes", null);
500: prop_attributes.setDisplayName(resources
501: .getString("PageAlert_attributes_DisplayName"));
502: prop_attributes.setShortDescription(resources
503: .getString("PageAlert_attributes_Description"));
504: prop_attributes.setExpert(false);
505: prop_attributes.setHidden(true);
506: prop_attributes.setPreferred(false);
507: prop_attributes
508: .setValue(
509: Constants.PropertyDescriptor.CATEGORY,
510: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
511:
512: PropertyDescriptor prop_childCount = new PropertyDescriptor(
513: "childCount", beanClass, "getChildCount", null);
514: prop_childCount.setDisplayName(resources
515: .getString("PageAlert_childCount_DisplayName"));
516: prop_childCount.setShortDescription(resources
517: .getString("PageAlert_childCount_Description"));
518: prop_childCount.setExpert(false);
519: prop_childCount.setHidden(true);
520: prop_childCount.setPreferred(false);
521: prop_childCount
522: .setValue(
523: Constants.PropertyDescriptor.CATEGORY,
524: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
525:
526: PropertyDescriptor prop_children = new PropertyDescriptor(
527: "children", beanClass, "getChildren", null);
528: prop_children.setDisplayName(resources
529: .getString("PageAlert_children_DisplayName"));
530: prop_children.setShortDescription(resources
531: .getString("PageAlert_children_Description"));
532: prop_children.setExpert(false);
533: prop_children.setHidden(true);
534: prop_children.setPreferred(false);
535: prop_children
536: .setValue(
537: Constants.PropertyDescriptor.CATEGORY,
538: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
539:
540: PropertyDescriptor prop_facets = new PropertyDescriptor(
541: "facets", beanClass, "getFacets", null);
542: prop_facets.setDisplayName(resources
543: .getString("PageAlert_facets_DisplayName"));
544: prop_facets.setShortDescription(resources
545: .getString("PageAlert_facets_Description"));
546: prop_facets.setExpert(false);
547: prop_facets.setHidden(true);
548: prop_facets.setPreferred(false);
549: prop_facets
550: .setValue(
551: Constants.PropertyDescriptor.CATEGORY,
552: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
553:
554: PropertyDescriptor prop_family = new PropertyDescriptor(
555: "family", beanClass, "getFamily", null);
556: prop_family.setDisplayName(resources
557: .getString("PageAlert_family_DisplayName"));
558: prop_family.setShortDescription(resources
559: .getString("PageAlert_family_Description"));
560: prop_family.setExpert(false);
561: prop_family.setHidden(true);
562: prop_family.setPreferred(false);
563: prop_family
564: .setValue(
565: Constants.PropertyDescriptor.CATEGORY,
566: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
567:
568: PropertyDescriptor prop_id = new PropertyDescriptor("id",
569: beanClass, "getId", "setId");
570: prop_id.setDisplayName(resources
571: .getString("PageAlert_id_DisplayName"));
572: prop_id.setShortDescription(resources
573: .getString("PageAlert_id_Description"));
574: prop_id.setExpert(false);
575: prop_id.setHidden(true);
576: prop_id.setPreferred(false);
577: attrib = new AttributeDescriptor("id", false, null, false);
578: prop_id.setValue(
579: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
580: attrib);
581: prop_id
582: .setValue(
583: Constants.PropertyDescriptor.CATEGORY,
584: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
585:
586: PropertyDescriptor prop_parent = new PropertyDescriptor(
587: "parent", beanClass, "getParent", "setParent");
588: prop_parent.setDisplayName(resources
589: .getString("PageAlert_parent_DisplayName"));
590: prop_parent.setShortDescription(resources
591: .getString("PageAlert_parent_Description"));
592: prop_parent.setExpert(false);
593: prop_parent.setHidden(true);
594: prop_parent.setPreferred(false);
595: prop_parent
596: .setValue(
597: Constants.PropertyDescriptor.CATEGORY,
598: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
599:
600: PropertyDescriptor prop_rendered = new PropertyDescriptor(
601: "rendered", beanClass, "isRendered", "setRendered");
602: prop_rendered.setDisplayName(resources
603: .getString("PageAlert_rendered_DisplayName"));
604: prop_rendered.setShortDescription(resources
605: .getString("PageAlert_rendered_Description"));
606: prop_rendered.setExpert(false);
607: prop_rendered.setHidden(false);
608: prop_rendered.setPreferred(false);
609: attrib = new AttributeDescriptor("rendered", false, null,
610: true);
611: prop_rendered.setValue(
612: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
613: attrib);
614: prop_rendered
615: .setValue(
616: Constants.PropertyDescriptor.CATEGORY,
617: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
618:
619: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
620: "rendererType", beanClass, "getRendererType",
621: "setRendererType");
622: prop_rendererType.setDisplayName(resources
623: .getString("PageAlert_rendererType_DisplayName"));
624: prop_rendererType.setShortDescription(resources
625: .getString("PageAlert_rendererType_Description"));
626: prop_rendererType.setExpert(false);
627: prop_rendererType.setHidden(true);
628: prop_rendererType.setPreferred(false);
629: prop_rendererType
630: .setValue(
631: Constants.PropertyDescriptor.CATEGORY,
632: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
633:
634: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
635: "rendersChildren", beanClass, "getRendersChildren",
636: null);
637: prop_rendersChildren
638: .setDisplayName(resources
639: .getString("PageAlert_rendersChildren_DisplayName"));
640: prop_rendersChildren
641: .setShortDescription(resources
642: .getString("PageAlert_rendersChildren_Description"));
643: prop_rendersChildren.setExpert(false);
644: prop_rendersChildren.setHidden(true);
645: prop_rendersChildren.setPreferred(false);
646: prop_rendersChildren
647: .setValue(
648: Constants.PropertyDescriptor.CATEGORY,
649: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
650:
651: propDescriptors = new PropertyDescriptor[] { prop_alt,
652: prop_attributes, prop_childCount, prop_children,
653: prop_detail, prop_escape, prop_facets, prop_family,
654: prop_id, prop_parent, prop_rendered,
655: prop_rendererType, prop_rendersChildren,
656: prop_style, prop_styleClass, prop_summary,
657: prop_tabIndex, prop_title, prop_type, prop_visible, };
658: return propDescriptors;
659:
660: } catch (IntrospectionException e) {
661: e.printStackTrace();
662: return null;
663: }
664:
665: }
666:
667: }
668: //GEN-END:BeanInfo
|