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 FrameBeanInfoBase 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(), FrameBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>FrameBeanInfoBase</code>.</p>
075: */
076: public FrameBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.Frame.class;
079: defaultPropertyName = "name";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Frame_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Frame_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Frame_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Frame_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("Frame_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("Frame_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.INSTANCE_NAME,
153: "frame");
154: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
155: Boolean.TRUE);
156: beanDescriptor.setValue(
157: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
158: getCategoryDescriptors());
159: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
160: "frame");
161: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
162: "ui");
163: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
164: "http://www.sun.com/web/ui");
165:
166: return beanDescriptor;
167:
168: }
169:
170: /**
171: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
172: */
173: private CategoryDescriptor[] getCategoryDescriptors() {
174:
175: return com.sun.rave.designtime.base.CategoryDescriptors
176: .getDefaultCategoryDescriptors();
177:
178: }
179:
180: /**
181: * <p>Return the index of the default property, or
182: * -1 if there is no default property.</p>
183: */
184: public int getDefaultPropertyIndex() {
185:
186: if (defaultPropertyIndex > -2) {
187: return defaultPropertyIndex;
188: } else {
189: if (defaultPropertyName == null) {
190: defaultPropertyIndex = -1;
191: } else {
192: PropertyDescriptor pd[] = getPropertyDescriptors();
193: for (int i = 0; i < pd.length; i++) {
194: if (defaultPropertyName.equals(pd[i].getName())) {
195: defaultPropertyIndex = i;
196: break;
197: }
198: }
199: }
200: }
201: return defaultPropertyIndex;
202: }
203:
204: /**
205: * <p>The cached facet descriptors.</p>
206: */
207: protected FacetDescriptor[] facetDescriptors;
208:
209: /**
210: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
211: */
212: public FacetDescriptor[] getFacetDescriptors() {
213:
214: if (facetDescriptors != null) {
215: return facetDescriptors;
216: }
217: facetDescriptors = new FacetDescriptor[] {};
218: return facetDescriptors;
219:
220: }
221:
222: /**
223: * <p>Return the specified image (if any)
224: * for this component class.</p>
225: */
226: public Image getIcon(int kind) {
227:
228: String name;
229: switch (kind) {
230: case ICON_COLOR_16x16:
231: name = iconFileName_C16;
232: break;
233: case ICON_COLOR_32x32:
234: name = iconFileName_C32;
235: break;
236: case ICON_MONO_16x16:
237: name = iconFileName_M16;
238: break;
239: case ICON_MONO_32x32:
240: name = iconFileName_M32;
241: break;
242: default:
243: name = null;
244: break;
245: }
246: if (name == null) {
247: return null;
248: }
249:
250: Image image = loadImage(name + ".png");
251: if (image == null) {
252: image = loadImage(name + ".gif");
253: }
254: return image;
255:
256: }
257:
258: /**
259: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
260: */
261: private java.lang.Class loadClass(java.lang.String name) {
262:
263: try {
264: return Class.forName(name);
265: } catch (ClassNotFoundException e) {
266: throw new RuntimeException(e);
267: }
268:
269: }
270:
271: /**
272: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
273: */
274: public PropertyDescriptor[] getPropertyDescriptors() {
275:
276: if (propDescriptors != null) {
277: return propDescriptors;
278: }
279: AttributeDescriptor attrib = null;
280:
281: try {
282:
283: PropertyDescriptor prop_frameBorder = new PropertyDescriptor(
284: "frameBorder", beanClass, "isFrameBorder",
285: "setFrameBorder");
286: prop_frameBorder.setDisplayName(resources
287: .getString("Frame_frameBorder_DisplayName"));
288: prop_frameBorder.setShortDescription(resources
289: .getString("Frame_frameBorder_Description"));
290: prop_frameBorder.setExpert(false);
291: prop_frameBorder.setHidden(false);
292: prop_frameBorder.setPreferred(false);
293: attrib = new AttributeDescriptor("frameBorder", false,
294: null, true);
295: prop_frameBorder.setValue(
296: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
297: attrib);
298: prop_frameBorder
299: .setValue(
300: Constants.PropertyDescriptor.CATEGORY,
301: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
302:
303: PropertyDescriptor prop_longDesc = new PropertyDescriptor(
304: "longDesc", beanClass, "getLongDesc", "setLongDesc");
305: prop_longDesc.setDisplayName(resources
306: .getString("Frame_longDesc_DisplayName"));
307: prop_longDesc.setShortDescription(resources
308: .getString("Frame_longDesc_Description"));
309: prop_longDesc.setExpert(false);
310: prop_longDesc.setHidden(false);
311: prop_longDesc.setPreferred(false);
312: attrib = new AttributeDescriptor("longDesc", false, null,
313: true);
314: prop_longDesc.setValue(
315: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
316: attrib);
317: prop_longDesc
318: .setValue(
319: Constants.PropertyDescriptor.CATEGORY,
320: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
321:
322: PropertyDescriptor prop_marginHeight = new PropertyDescriptor(
323: "marginHeight", beanClass, "getMarginHeight",
324: "setMarginHeight");
325: prop_marginHeight.setDisplayName(resources
326: .getString("Frame_marginHeight_DisplayName"));
327: prop_marginHeight.setShortDescription(resources
328: .getString("Frame_marginHeight_Description"));
329: prop_marginHeight
330: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
331: prop_marginHeight.setExpert(false);
332: prop_marginHeight.setHidden(false);
333: prop_marginHeight.setPreferred(false);
334: attrib = new AttributeDescriptor("marginHeight", false,
335: null, true);
336: prop_marginHeight.setValue(
337: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
338: attrib);
339: prop_marginHeight
340: .setValue(
341: Constants.PropertyDescriptor.CATEGORY,
342: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
343: prop_marginHeight.setValue(
344: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
345:
346: PropertyDescriptor prop_marginWidth = new PropertyDescriptor(
347: "marginWidth", beanClass, "getMarginWidth",
348: "setMarginWidth");
349: prop_marginWidth.setDisplayName(resources
350: .getString("Frame_marginWidth_DisplayName"));
351: prop_marginWidth.setShortDescription(resources
352: .getString("Frame_marginWidth_Description"));
353: prop_marginWidth
354: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
355: prop_marginWidth.setExpert(false);
356: prop_marginWidth.setHidden(false);
357: prop_marginWidth.setPreferred(false);
358: attrib = new AttributeDescriptor("marginWidth", false,
359: null, true);
360: prop_marginWidth.setValue(
361: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
362: attrib);
363: prop_marginWidth
364: .setValue(
365: Constants.PropertyDescriptor.CATEGORY,
366: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
367: prop_marginWidth.setValue(
368: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
369:
370: PropertyDescriptor prop_name = new PropertyDescriptor(
371: "name", beanClass, "getName", "setName");
372: prop_name.setDisplayName(resources
373: .getString("Frame_name_DisplayName"));
374: prop_name.setShortDescription(resources
375: .getString("Frame_name_Description"));
376: prop_name.setExpert(false);
377: prop_name.setHidden(false);
378: prop_name.setPreferred(false);
379: attrib = new AttributeDescriptor("name", false, null, true);
380: prop_name.setValue(
381: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
382: attrib);
383: prop_name
384: .setValue(
385: Constants.PropertyDescriptor.CATEGORY,
386: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
387:
388: PropertyDescriptor prop_noResize = new PropertyDescriptor(
389: "noResize", beanClass, "isNoResize", "setNoResize");
390: prop_noResize.setDisplayName(resources
391: .getString("Frame_noResize_DisplayName"));
392: prop_noResize.setShortDescription(resources
393: .getString("Frame_noResize_Description"));
394: prop_noResize.setExpert(false);
395: prop_noResize.setHidden(true);
396: prop_noResize.setPreferred(false);
397: attrib = new AttributeDescriptor("noResize", false, null,
398: true);
399: prop_noResize.setValue(
400: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
401: attrib);
402: prop_noResize
403: .setValue(
404: Constants.PropertyDescriptor.CATEGORY,
405: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
406:
407: PropertyDescriptor prop_scrolling = new PropertyDescriptor(
408: "scrolling", beanClass, "getScrolling",
409: "setScrolling");
410: prop_scrolling.setDisplayName(resources
411: .getString("Frame_scrolling_DisplayName"));
412: prop_scrolling.setShortDescription(resources
413: .getString("Frame_scrolling_Description"));
414: prop_scrolling.setExpert(false);
415: prop_scrolling.setHidden(false);
416: prop_scrolling.setPreferred(false);
417: attrib = new AttributeDescriptor("scrolling", false, null,
418: true);
419: prop_scrolling.setValue(
420: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
421: attrib);
422: prop_scrolling
423: .setValue(
424: Constants.PropertyDescriptor.CATEGORY,
425: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
426:
427: PropertyDescriptor prop_style = new PropertyDescriptor(
428: "style", beanClass, "getStyle", "setStyle");
429: prop_style.setDisplayName(resources
430: .getString("Frame_style_DisplayName"));
431: prop_style.setShortDescription(resources
432: .getString("Frame_style_Description"));
433: prop_style
434: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
435: prop_style.setExpert(false);
436: prop_style.setHidden(false);
437: prop_style.setPreferred(false);
438: attrib = new AttributeDescriptor("style", false, null, true);
439: prop_style.setValue(
440: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
441: attrib);
442: prop_style
443: .setValue(
444: Constants.PropertyDescriptor.CATEGORY,
445: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
446:
447: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
448: "styleClass", beanClass, "getStyleClass",
449: "setStyleClass");
450: prop_styleClass.setDisplayName(resources
451: .getString("Frame_styleClass_DisplayName"));
452: prop_styleClass.setShortDescription(resources
453: .getString("Frame_styleClass_Description"));
454: prop_styleClass
455: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
456: prop_styleClass.setExpert(false);
457: prop_styleClass.setHidden(false);
458: prop_styleClass.setPreferred(false);
459: attrib = new AttributeDescriptor("styleClass", false, null,
460: true);
461: prop_styleClass.setValue(
462: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
463: attrib);
464: prop_styleClass
465: .setValue(
466: Constants.PropertyDescriptor.CATEGORY,
467: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
468:
469: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
470: "toolTip", beanClass, "getToolTip", "setToolTip");
471: prop_toolTip.setDisplayName(resources
472: .getString("Frame_toolTip_DisplayName"));
473: prop_toolTip.setShortDescription(resources
474: .getString("Frame_toolTip_Description"));
475: prop_toolTip
476: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
477: prop_toolTip.setExpert(false);
478: prop_toolTip.setHidden(false);
479: prop_toolTip.setPreferred(false);
480: attrib = new AttributeDescriptor("toolTip", false, null,
481: true);
482: prop_toolTip.setValue(
483: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
484: attrib);
485: prop_toolTip
486: .setValue(
487: Constants.PropertyDescriptor.CATEGORY,
488: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
489:
490: PropertyDescriptor prop_url = new PropertyDescriptor("url",
491: beanClass, "getUrl", "setUrl");
492: prop_url.setDisplayName(resources
493: .getString("Frame_url_DisplayName"));
494: prop_url.setShortDescription(resources
495: .getString("Frame_url_Description"));
496: prop_url.setExpert(false);
497: prop_url.setHidden(false);
498: prop_url.setPreferred(false);
499: attrib = new AttributeDescriptor("url", false, null, true);
500: prop_url.setValue(
501: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
502: attrib);
503: prop_url
504: .setValue(
505: Constants.PropertyDescriptor.CATEGORY,
506: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
507:
508: PropertyDescriptor prop_attributes = new PropertyDescriptor(
509: "attributes", beanClass, "getAttributes", null);
510: prop_attributes.setDisplayName(resources
511: .getString("Frame_attributes_DisplayName"));
512: prop_attributes.setShortDescription(resources
513: .getString("Frame_attributes_Description"));
514: prop_attributes.setExpert(false);
515: prop_attributes.setHidden(true);
516: prop_attributes.setPreferred(false);
517: prop_attributes
518: .setValue(
519: Constants.PropertyDescriptor.CATEGORY,
520: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
521:
522: PropertyDescriptor prop_childCount = new PropertyDescriptor(
523: "childCount", beanClass, "getChildCount", null);
524: prop_childCount.setDisplayName(resources
525: .getString("Frame_childCount_DisplayName"));
526: prop_childCount.setShortDescription(resources
527: .getString("Frame_childCount_Description"));
528: prop_childCount.setExpert(false);
529: prop_childCount.setHidden(true);
530: prop_childCount.setPreferred(false);
531: prop_childCount
532: .setValue(
533: Constants.PropertyDescriptor.CATEGORY,
534: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
535:
536: PropertyDescriptor prop_children = new PropertyDescriptor(
537: "children", beanClass, "getChildren", null);
538: prop_children.setDisplayName(resources
539: .getString("Frame_children_DisplayName"));
540: prop_children.setShortDescription(resources
541: .getString("Frame_children_Description"));
542: prop_children.setExpert(false);
543: prop_children.setHidden(true);
544: prop_children.setPreferred(false);
545: prop_children
546: .setValue(
547: Constants.PropertyDescriptor.CATEGORY,
548: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
549:
550: PropertyDescriptor prop_facets = new PropertyDescriptor(
551: "facets", beanClass, "getFacets", null);
552: prop_facets.setDisplayName(resources
553: .getString("Frame_facets_DisplayName"));
554: prop_facets.setShortDescription(resources
555: .getString("Frame_facets_Description"));
556: prop_facets.setExpert(false);
557: prop_facets.setHidden(true);
558: prop_facets.setPreferred(false);
559: prop_facets
560: .setValue(
561: Constants.PropertyDescriptor.CATEGORY,
562: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
563:
564: PropertyDescriptor prop_family = new PropertyDescriptor(
565: "family", beanClass, "getFamily", null);
566: prop_family.setDisplayName(resources
567: .getString("Frame_family_DisplayName"));
568: prop_family.setShortDescription(resources
569: .getString("Frame_family_Description"));
570: prop_family.setExpert(false);
571: prop_family.setHidden(true);
572: prop_family.setPreferred(false);
573: prop_family
574: .setValue(
575: Constants.PropertyDescriptor.CATEGORY,
576: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
577:
578: PropertyDescriptor prop_id = new PropertyDescriptor("id",
579: beanClass, "getId", "setId");
580: prop_id.setDisplayName(resources
581: .getString("Frame_id_DisplayName"));
582: prop_id.setShortDescription(resources
583: .getString("Frame_id_Description"));
584: prop_id.setExpert(false);
585: prop_id.setHidden(true);
586: prop_id.setPreferred(false);
587: attrib = new AttributeDescriptor("id", false, null, false);
588: prop_id.setValue(
589: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
590: attrib);
591: prop_id
592: .setValue(
593: Constants.PropertyDescriptor.CATEGORY,
594: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
595:
596: PropertyDescriptor prop_parent = new PropertyDescriptor(
597: "parent", beanClass, "getParent", "setParent");
598: prop_parent.setDisplayName(resources
599: .getString("Frame_parent_DisplayName"));
600: prop_parent.setShortDescription(resources
601: .getString("Frame_parent_Description"));
602: prop_parent.setExpert(false);
603: prop_parent.setHidden(true);
604: prop_parent.setPreferred(false);
605: prop_parent
606: .setValue(
607: Constants.PropertyDescriptor.CATEGORY,
608: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
609:
610: PropertyDescriptor prop_rendered = new PropertyDescriptor(
611: "rendered", beanClass, "isRendered", "setRendered");
612: prop_rendered.setDisplayName(resources
613: .getString("Frame_rendered_DisplayName"));
614: prop_rendered.setShortDescription(resources
615: .getString("Frame_rendered_Description"));
616: prop_rendered.setExpert(false);
617: prop_rendered.setHidden(false);
618: prop_rendered.setPreferred(false);
619: attrib = new AttributeDescriptor("rendered", false, null,
620: true);
621: prop_rendered.setValue(
622: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
623: attrib);
624: prop_rendered
625: .setValue(
626: Constants.PropertyDescriptor.CATEGORY,
627: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
628:
629: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
630: "rendererType", beanClass, "getRendererType",
631: "setRendererType");
632: prop_rendererType.setDisplayName(resources
633: .getString("Frame_rendererType_DisplayName"));
634: prop_rendererType.setShortDescription(resources
635: .getString("Frame_rendererType_Description"));
636: prop_rendererType.setExpert(false);
637: prop_rendererType.setHidden(true);
638: prop_rendererType.setPreferred(false);
639: prop_rendererType
640: .setValue(
641: Constants.PropertyDescriptor.CATEGORY,
642: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
643:
644: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
645: "rendersChildren", beanClass, "getRendersChildren",
646: null);
647: prop_rendersChildren.setDisplayName(resources
648: .getString("Frame_rendersChildren_DisplayName"));
649: prop_rendersChildren.setShortDescription(resources
650: .getString("Frame_rendersChildren_Description"));
651: prop_rendersChildren.setExpert(false);
652: prop_rendersChildren.setHidden(true);
653: prop_rendersChildren.setPreferred(false);
654: prop_rendersChildren
655: .setValue(
656: Constants.PropertyDescriptor.CATEGORY,
657: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
658:
659: propDescriptors = new PropertyDescriptor[] {
660: prop_attributes, prop_childCount, prop_children,
661: prop_facets, prop_family, prop_frameBorder,
662: prop_id, prop_longDesc, prop_marginHeight,
663: prop_marginWidth, prop_name, prop_noResize,
664: prop_parent, prop_rendered, prop_rendererType,
665: prop_rendersChildren, prop_scrolling, prop_style,
666: prop_styleClass, prop_toolTip, prop_url, };
667: return propDescriptors;
668:
669: } catch (IntrospectionException e) {
670: e.printStackTrace();
671: return null;
672: }
673:
674: }
675:
676: }
677: //GEN-END:BeanInfo
|