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 IFrameBeanInfoBase 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(), IFrameBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>IFrameBeanInfoBase</code>.</p>
075: */
076: public IFrameBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.IFrame.class;
079: defaultPropertyName = "name";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/IFrame_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/IFrame_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/IFrame_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/IFrame_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("IFrame_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("IFrame_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: "iFrame");
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: "iframe");
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_align = new PropertyDescriptor(
284: "align", beanClass, "getAlign", "setAlign");
285: prop_align.setDisplayName(resources
286: .getString("IFrame_align_DisplayName"));
287: prop_align.setShortDescription(resources
288: .getString("IFrame_align_Description"));
289: prop_align.setExpert(false);
290: prop_align.setHidden(false);
291: prop_align.setPreferred(false);
292: attrib = new AttributeDescriptor("align", false, null, true);
293: prop_align.setValue(
294: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
295: attrib);
296: prop_align
297: .setValue(
298: Constants.PropertyDescriptor.CATEGORY,
299: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
300:
301: PropertyDescriptor prop_height = new PropertyDescriptor(
302: "height", beanClass, "getHeight", "setHeight");
303: prop_height.setDisplayName(resources
304: .getString("IFrame_height_DisplayName"));
305: prop_height.setShortDescription(resources
306: .getString("IFrame_height_Description"));
307: prop_height.setExpert(false);
308: prop_height.setHidden(false);
309: prop_height.setPreferred(false);
310: attrib = new AttributeDescriptor("height", false, null,
311: true);
312: prop_height.setValue(
313: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
314: attrib);
315: prop_height
316: .setValue(
317: Constants.PropertyDescriptor.CATEGORY,
318: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
319:
320: PropertyDescriptor prop_noResize = new PropertyDescriptor(
321: "noResize", beanClass, "isNoResize", "setNoResize");
322: prop_noResize.setDisplayName(resources
323: .getString("IFrame_noResize_DisplayName"));
324: prop_noResize.setShortDescription(resources
325: .getString("IFrame_noResize_Description"));
326: prop_noResize.setExpert(false);
327: prop_noResize.setHidden(true);
328: prop_noResize.setPreferred(false);
329: prop_noResize
330: .setValue(
331: Constants.PropertyDescriptor.CATEGORY,
332: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
333:
334: PropertyDescriptor prop_width = new PropertyDescriptor(
335: "width", beanClass, "getWidth", "setWidth");
336: prop_width.setDisplayName(resources
337: .getString("IFrame_width_DisplayName"));
338: prop_width.setShortDescription(resources
339: .getString("IFrame_width_Description"));
340: prop_width.setExpert(false);
341: prop_width.setHidden(false);
342: prop_width.setPreferred(false);
343: attrib = new AttributeDescriptor("width", false, null, true);
344: prop_width.setValue(
345: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
346: attrib);
347: prop_width
348: .setValue(
349: Constants.PropertyDescriptor.CATEGORY,
350: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
351:
352: PropertyDescriptor prop_frameBorder = new PropertyDescriptor(
353: "frameBorder", beanClass, "isFrameBorder",
354: "setFrameBorder");
355: prop_frameBorder.setDisplayName(resources
356: .getString("IFrame_frameBorder_DisplayName"));
357: prop_frameBorder.setShortDescription(resources
358: .getString("IFrame_frameBorder_Description"));
359: prop_frameBorder.setExpert(false);
360: prop_frameBorder.setHidden(false);
361: prop_frameBorder.setPreferred(false);
362: attrib = new AttributeDescriptor("frameBorder", false,
363: null, true);
364: prop_frameBorder.setValue(
365: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
366: attrib);
367: prop_frameBorder
368: .setValue(
369: Constants.PropertyDescriptor.CATEGORY,
370: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
371:
372: PropertyDescriptor prop_longDesc = new PropertyDescriptor(
373: "longDesc", beanClass, "getLongDesc", "setLongDesc");
374: prop_longDesc.setDisplayName(resources
375: .getString("IFrame_longDesc_DisplayName"));
376: prop_longDesc.setShortDescription(resources
377: .getString("IFrame_longDesc_Description"));
378: prop_longDesc.setExpert(false);
379: prop_longDesc.setHidden(false);
380: prop_longDesc.setPreferred(false);
381: attrib = new AttributeDescriptor("longDesc", false, null,
382: true);
383: prop_longDesc.setValue(
384: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
385: attrib);
386: prop_longDesc
387: .setValue(
388: Constants.PropertyDescriptor.CATEGORY,
389: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
390:
391: PropertyDescriptor prop_marginHeight = new PropertyDescriptor(
392: "marginHeight", beanClass, "getMarginHeight",
393: "setMarginHeight");
394: prop_marginHeight.setDisplayName(resources
395: .getString("IFrame_marginHeight_DisplayName"));
396: prop_marginHeight.setShortDescription(resources
397: .getString("IFrame_marginHeight_Description"));
398: prop_marginHeight
399: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
400: prop_marginHeight.setExpert(false);
401: prop_marginHeight.setHidden(false);
402: prop_marginHeight.setPreferred(false);
403: attrib = new AttributeDescriptor("marginHeight", false,
404: null, true);
405: prop_marginHeight.setValue(
406: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
407: attrib);
408: prop_marginHeight
409: .setValue(
410: Constants.PropertyDescriptor.CATEGORY,
411: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
412: prop_marginHeight.setValue(
413: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
414:
415: PropertyDescriptor prop_marginWidth = new PropertyDescriptor(
416: "marginWidth", beanClass, "getMarginWidth",
417: "setMarginWidth");
418: prop_marginWidth.setDisplayName(resources
419: .getString("IFrame_marginWidth_DisplayName"));
420: prop_marginWidth.setShortDescription(resources
421: .getString("IFrame_marginWidth_Description"));
422: prop_marginWidth
423: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
424: prop_marginWidth.setExpert(false);
425: prop_marginWidth.setHidden(false);
426: prop_marginWidth.setPreferred(false);
427: attrib = new AttributeDescriptor("marginWidth", false,
428: null, true);
429: prop_marginWidth.setValue(
430: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
431: attrib);
432: prop_marginWidth
433: .setValue(
434: Constants.PropertyDescriptor.CATEGORY,
435: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
436: prop_marginWidth.setValue(
437: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
438:
439: PropertyDescriptor prop_name = new PropertyDescriptor(
440: "name", beanClass, "getName", "setName");
441: prop_name.setDisplayName(resources
442: .getString("IFrame_name_DisplayName"));
443: prop_name.setShortDescription(resources
444: .getString("IFrame_name_Description"));
445: prop_name.setExpert(false);
446: prop_name.setHidden(false);
447: prop_name.setPreferred(false);
448: attrib = new AttributeDescriptor("name", false, null, true);
449: prop_name.setValue(
450: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
451: attrib);
452: prop_name
453: .setValue(
454: Constants.PropertyDescriptor.CATEGORY,
455: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
456:
457: PropertyDescriptor prop_scrolling = new PropertyDescriptor(
458: "scrolling", beanClass, "getScrolling",
459: "setScrolling");
460: prop_scrolling.setDisplayName(resources
461: .getString("IFrame_scrolling_DisplayName"));
462: prop_scrolling.setShortDescription(resources
463: .getString("IFrame_scrolling_Description"));
464: prop_scrolling.setExpert(false);
465: prop_scrolling.setHidden(false);
466: prop_scrolling.setPreferred(false);
467: attrib = new AttributeDescriptor("scrolling", false, null,
468: true);
469: prop_scrolling.setValue(
470: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
471: attrib);
472: prop_scrolling
473: .setValue(
474: Constants.PropertyDescriptor.CATEGORY,
475: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
476:
477: PropertyDescriptor prop_style = new PropertyDescriptor(
478: "style", beanClass, "getStyle", "setStyle");
479: prop_style.setDisplayName(resources
480: .getString("IFrame_style_DisplayName"));
481: prop_style.setShortDescription(resources
482: .getString("IFrame_style_Description"));
483: prop_style
484: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
485: prop_style.setExpert(false);
486: prop_style.setHidden(false);
487: prop_style.setPreferred(false);
488: attrib = new AttributeDescriptor("style", false, null, true);
489: prop_style.setValue(
490: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
491: attrib);
492: prop_style
493: .setValue(
494: Constants.PropertyDescriptor.CATEGORY,
495: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
496:
497: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
498: "styleClass", beanClass, "getStyleClass",
499: "setStyleClass");
500: prop_styleClass.setDisplayName(resources
501: .getString("IFrame_styleClass_DisplayName"));
502: prop_styleClass.setShortDescription(resources
503: .getString("IFrame_styleClass_Description"));
504: prop_styleClass
505: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
506: prop_styleClass.setExpert(false);
507: prop_styleClass.setHidden(false);
508: prop_styleClass.setPreferred(false);
509: attrib = new AttributeDescriptor("styleClass", false, null,
510: true);
511: prop_styleClass.setValue(
512: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
513: attrib);
514: prop_styleClass
515: .setValue(
516: Constants.PropertyDescriptor.CATEGORY,
517: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
518:
519: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
520: "toolTip", beanClass, "getToolTip", "setToolTip");
521: prop_toolTip.setDisplayName(resources
522: .getString("IFrame_toolTip_DisplayName"));
523: prop_toolTip.setShortDescription(resources
524: .getString("IFrame_toolTip_Description"));
525: prop_toolTip
526: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
527: prop_toolTip.setExpert(false);
528: prop_toolTip.setHidden(false);
529: prop_toolTip.setPreferred(false);
530: attrib = new AttributeDescriptor("toolTip", false, null,
531: true);
532: prop_toolTip.setValue(
533: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
534: attrib);
535: prop_toolTip
536: .setValue(
537: Constants.PropertyDescriptor.CATEGORY,
538: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
539:
540: PropertyDescriptor prop_url = new PropertyDescriptor("url",
541: beanClass, "getUrl", "setUrl");
542: prop_url.setDisplayName(resources
543: .getString("IFrame_url_DisplayName"));
544: prop_url.setShortDescription(resources
545: .getString("IFrame_url_Description"));
546: prop_url.setExpert(false);
547: prop_url.setHidden(false);
548: prop_url.setPreferred(false);
549: attrib = new AttributeDescriptor("url", false, null, true);
550: prop_url.setValue(
551: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
552: attrib);
553: prop_url
554: .setValue(
555: Constants.PropertyDescriptor.CATEGORY,
556: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
557:
558: PropertyDescriptor prop_attributes = new PropertyDescriptor(
559: "attributes", beanClass, "getAttributes", null);
560: prop_attributes.setDisplayName(resources
561: .getString("IFrame_attributes_DisplayName"));
562: prop_attributes.setShortDescription(resources
563: .getString("IFrame_attributes_Description"));
564: prop_attributes.setExpert(false);
565: prop_attributes.setHidden(true);
566: prop_attributes.setPreferred(false);
567: prop_attributes
568: .setValue(
569: Constants.PropertyDescriptor.CATEGORY,
570: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
571:
572: PropertyDescriptor prop_childCount = new PropertyDescriptor(
573: "childCount", beanClass, "getChildCount", null);
574: prop_childCount.setDisplayName(resources
575: .getString("IFrame_childCount_DisplayName"));
576: prop_childCount.setShortDescription(resources
577: .getString("IFrame_childCount_Description"));
578: prop_childCount.setExpert(false);
579: prop_childCount.setHidden(true);
580: prop_childCount.setPreferred(false);
581: prop_childCount
582: .setValue(
583: Constants.PropertyDescriptor.CATEGORY,
584: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
585:
586: PropertyDescriptor prop_children = new PropertyDescriptor(
587: "children", beanClass, "getChildren", null);
588: prop_children.setDisplayName(resources
589: .getString("IFrame_children_DisplayName"));
590: prop_children.setShortDescription(resources
591: .getString("IFrame_children_Description"));
592: prop_children.setExpert(false);
593: prop_children.setHidden(true);
594: prop_children.setPreferred(false);
595: prop_children
596: .setValue(
597: Constants.PropertyDescriptor.CATEGORY,
598: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
599:
600: PropertyDescriptor prop_facets = new PropertyDescriptor(
601: "facets", beanClass, "getFacets", null);
602: prop_facets.setDisplayName(resources
603: .getString("IFrame_facets_DisplayName"));
604: prop_facets.setShortDescription(resources
605: .getString("IFrame_facets_Description"));
606: prop_facets.setExpert(false);
607: prop_facets.setHidden(true);
608: prop_facets.setPreferred(false);
609: prop_facets
610: .setValue(
611: Constants.PropertyDescriptor.CATEGORY,
612: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
613:
614: PropertyDescriptor prop_family = new PropertyDescriptor(
615: "family", beanClass, "getFamily", null);
616: prop_family.setDisplayName(resources
617: .getString("IFrame_family_DisplayName"));
618: prop_family.setShortDescription(resources
619: .getString("IFrame_family_Description"));
620: prop_family.setExpert(false);
621: prop_family.setHidden(true);
622: prop_family.setPreferred(false);
623: prop_family
624: .setValue(
625: Constants.PropertyDescriptor.CATEGORY,
626: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
627:
628: PropertyDescriptor prop_id = new PropertyDescriptor("id",
629: beanClass, "getId", "setId");
630: prop_id.setDisplayName(resources
631: .getString("IFrame_id_DisplayName"));
632: prop_id.setShortDescription(resources
633: .getString("IFrame_id_Description"));
634: prop_id.setExpert(false);
635: prop_id.setHidden(true);
636: prop_id.setPreferred(false);
637: attrib = new AttributeDescriptor("id", false, null, false);
638: prop_id.setValue(
639: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
640: attrib);
641: prop_id
642: .setValue(
643: Constants.PropertyDescriptor.CATEGORY,
644: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
645:
646: PropertyDescriptor prop_parent = new PropertyDescriptor(
647: "parent", beanClass, "getParent", "setParent");
648: prop_parent.setDisplayName(resources
649: .getString("IFrame_parent_DisplayName"));
650: prop_parent.setShortDescription(resources
651: .getString("IFrame_parent_Description"));
652: prop_parent.setExpert(false);
653: prop_parent.setHidden(true);
654: prop_parent.setPreferred(false);
655: prop_parent
656: .setValue(
657: Constants.PropertyDescriptor.CATEGORY,
658: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
659:
660: PropertyDescriptor prop_rendered = new PropertyDescriptor(
661: "rendered", beanClass, "isRendered", "setRendered");
662: prop_rendered.setDisplayName(resources
663: .getString("IFrame_rendered_DisplayName"));
664: prop_rendered.setShortDescription(resources
665: .getString("IFrame_rendered_Description"));
666: prop_rendered.setExpert(false);
667: prop_rendered.setHidden(false);
668: prop_rendered.setPreferred(false);
669: attrib = new AttributeDescriptor("rendered", false, null,
670: true);
671: prop_rendered.setValue(
672: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
673: attrib);
674: prop_rendered
675: .setValue(
676: Constants.PropertyDescriptor.CATEGORY,
677: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
678:
679: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
680: "rendererType", beanClass, "getRendererType",
681: "setRendererType");
682: prop_rendererType.setDisplayName(resources
683: .getString("IFrame_rendererType_DisplayName"));
684: prop_rendererType.setShortDescription(resources
685: .getString("IFrame_rendererType_Description"));
686: prop_rendererType.setExpert(false);
687: prop_rendererType.setHidden(true);
688: prop_rendererType.setPreferred(false);
689: prop_rendererType
690: .setValue(
691: Constants.PropertyDescriptor.CATEGORY,
692: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
693:
694: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
695: "rendersChildren", beanClass, "getRendersChildren",
696: null);
697: prop_rendersChildren.setDisplayName(resources
698: .getString("IFrame_rendersChildren_DisplayName"));
699: prop_rendersChildren.setShortDescription(resources
700: .getString("IFrame_rendersChildren_Description"));
701: prop_rendersChildren.setExpert(false);
702: prop_rendersChildren.setHidden(true);
703: prop_rendersChildren.setPreferred(false);
704: prop_rendersChildren
705: .setValue(
706: Constants.PropertyDescriptor.CATEGORY,
707: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
708:
709: propDescriptors = new PropertyDescriptor[] { prop_align,
710: prop_attributes, prop_childCount, prop_children,
711: prop_facets, prop_family, prop_frameBorder,
712: prop_height, prop_id, prop_longDesc,
713: prop_marginHeight, prop_marginWidth, prop_name,
714: prop_noResize, prop_parent, prop_rendered,
715: prop_rendererType, prop_rendersChildren,
716: prop_scrolling, prop_style, prop_styleClass,
717: prop_toolTip, prop_url, prop_width, };
718: return propDescriptors;
719:
720: } catch (IntrospectionException e) {
721: e.printStackTrace();
722: return null;
723: }
724:
725: }
726:
727: }
728: //GEN-END:BeanInfo
|