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 StaticTextBeanInfoBase 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(), StaticTextBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>StaticTextBeanInfoBase</code>.</p>
075: */
076: public StaticTextBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.StaticText.class;
079: defaultPropertyName = "text";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/StaticText_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/StaticText_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/StaticText_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/StaticText_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("StaticText_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("StaticText_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_static_text");
154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155: "staticText");
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_static_text_props");
161: beanDescriptor.setValue(
162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
163: getCategoryDescriptors());
164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
165: "staticText");
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_escape = new PropertyDescriptor(
289: "escape", beanClass, "isEscape", "setEscape");
290: prop_escape.setDisplayName(resources
291: .getString("StaticText_escape_DisplayName"));
292: prop_escape.setShortDescription(resources
293: .getString("StaticText_escape_Description"));
294: prop_escape.setExpert(false);
295: prop_escape.setHidden(false);
296: prop_escape.setPreferred(false);
297: attrib = new AttributeDescriptor("escape", false, "true",
298: true);
299: prop_escape.setValue(
300: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
301: attrib);
302: prop_escape
303: .setValue(
304: Constants.PropertyDescriptor.CATEGORY,
305: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
306:
307: PropertyDescriptor prop_onClick = new PropertyDescriptor(
308: "onClick", beanClass, "getOnClick", "setOnClick");
309: prop_onClick.setDisplayName(resources
310: .getString("StaticText_onClick_DisplayName"));
311: prop_onClick.setShortDescription(resources
312: .getString("StaticText_onClick_Description"));
313: prop_onClick
314: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
315: prop_onClick.setExpert(false);
316: prop_onClick.setHidden(false);
317: prop_onClick.setPreferred(false);
318: attrib = new AttributeDescriptor("onClick", false, null,
319: true);
320: prop_onClick.setValue(
321: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
322: attrib);
323: prop_onClick
324: .setValue(
325: Constants.PropertyDescriptor.CATEGORY,
326: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
327:
328: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
329: "onDblClick", beanClass, "getOnDblClick",
330: "setOnDblClick");
331: prop_onDblClick.setDisplayName(resources
332: .getString("StaticText_onDblClick_DisplayName"));
333: prop_onDblClick.setShortDescription(resources
334: .getString("StaticText_onDblClick_Description"));
335: prop_onDblClick
336: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
337: prop_onDblClick.setExpert(false);
338: prop_onDblClick.setHidden(false);
339: prop_onDblClick.setPreferred(false);
340: attrib = new AttributeDescriptor("onDblClick", false, null,
341: true);
342: prop_onDblClick.setValue(
343: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
344: attrib);
345: prop_onDblClick
346: .setValue(
347: Constants.PropertyDescriptor.CATEGORY,
348: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
349:
350: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
351: "onMouseDown", beanClass, "getOnMouseDown",
352: "setOnMouseDown");
353: prop_onMouseDown.setDisplayName(resources
354: .getString("StaticText_onMouseDown_DisplayName"));
355: prop_onMouseDown.setShortDescription(resources
356: .getString("StaticText_onMouseDown_Description"));
357: prop_onMouseDown
358: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
359: prop_onMouseDown.setExpert(false);
360: prop_onMouseDown.setHidden(false);
361: prop_onMouseDown.setPreferred(false);
362: attrib = new AttributeDescriptor("onMouseDown", false,
363: null, true);
364: prop_onMouseDown.setValue(
365: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
366: attrib);
367: prop_onMouseDown
368: .setValue(
369: Constants.PropertyDescriptor.CATEGORY,
370: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
371:
372: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
373: "onMouseMove", beanClass, "getOnMouseMove",
374: "setOnMouseMove");
375: prop_onMouseMove.setDisplayName(resources
376: .getString("StaticText_onMouseMove_DisplayName"));
377: prop_onMouseMove.setShortDescription(resources
378: .getString("StaticText_onMouseMove_Description"));
379: prop_onMouseMove
380: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
381: prop_onMouseMove.setExpert(false);
382: prop_onMouseMove.setHidden(false);
383: prop_onMouseMove.setPreferred(false);
384: attrib = new AttributeDescriptor("onMouseMove", false,
385: null, true);
386: prop_onMouseMove.setValue(
387: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
388: attrib);
389: prop_onMouseMove
390: .setValue(
391: Constants.PropertyDescriptor.CATEGORY,
392: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
393:
394: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
395: "onMouseOut", beanClass, "getOnMouseOut",
396: "setOnMouseOut");
397: prop_onMouseOut.setDisplayName(resources
398: .getString("StaticText_onMouseOut_DisplayName"));
399: prop_onMouseOut.setShortDescription(resources
400: .getString("StaticText_onMouseOut_Description"));
401: prop_onMouseOut
402: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
403: prop_onMouseOut.setExpert(false);
404: prop_onMouseOut.setHidden(false);
405: prop_onMouseOut.setPreferred(false);
406: attrib = new AttributeDescriptor("onMouseOut", false, null,
407: true);
408: prop_onMouseOut.setValue(
409: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
410: attrib);
411: prop_onMouseOut
412: .setValue(
413: Constants.PropertyDescriptor.CATEGORY,
414: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
415:
416: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
417: "onMouseOver", beanClass, "getOnMouseOver",
418: "setOnMouseOver");
419: prop_onMouseOver.setDisplayName(resources
420: .getString("StaticText_onMouseOver_DisplayName"));
421: prop_onMouseOver.setShortDescription(resources
422: .getString("StaticText_onMouseOver_Description"));
423: prop_onMouseOver
424: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
425: prop_onMouseOver.setExpert(false);
426: prop_onMouseOver.setHidden(false);
427: prop_onMouseOver.setPreferred(false);
428: attrib = new AttributeDescriptor("onMouseOver", false,
429: null, true);
430: prop_onMouseOver.setValue(
431: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
432: attrib);
433: prop_onMouseOver
434: .setValue(
435: Constants.PropertyDescriptor.CATEGORY,
436: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
437:
438: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
439: "onMouseUp", beanClass, "getOnMouseUp",
440: "setOnMouseUp");
441: prop_onMouseUp.setDisplayName(resources
442: .getString("StaticText_onMouseUp_DisplayName"));
443: prop_onMouseUp.setShortDescription(resources
444: .getString("StaticText_onMouseUp_Description"));
445: prop_onMouseUp
446: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
447: prop_onMouseUp.setExpert(false);
448: prop_onMouseUp.setHidden(false);
449: prop_onMouseUp.setPreferred(false);
450: attrib = new AttributeDescriptor("onMouseUp", false, null,
451: true);
452: prop_onMouseUp.setValue(
453: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
454: attrib);
455: prop_onMouseUp
456: .setValue(
457: Constants.PropertyDescriptor.CATEGORY,
458: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
459:
460: PropertyDescriptor prop_style = new PropertyDescriptor(
461: "style", beanClass, "getStyle", "setStyle");
462: prop_style.setDisplayName(resources
463: .getString("StaticText_style_DisplayName"));
464: prop_style.setShortDescription(resources
465: .getString("StaticText_style_Description"));
466: prop_style
467: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
468: prop_style.setExpert(false);
469: prop_style.setHidden(false);
470: prop_style.setPreferred(false);
471: attrib = new AttributeDescriptor("style", false, null, true);
472: prop_style.setValue(
473: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
474: attrib);
475: prop_style
476: .setValue(
477: Constants.PropertyDescriptor.CATEGORY,
478: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
479:
480: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
481: "styleClass", beanClass, "getStyleClass",
482: "setStyleClass");
483: prop_styleClass.setDisplayName(resources
484: .getString("StaticText_styleClass_DisplayName"));
485: prop_styleClass.setShortDescription(resources
486: .getString("StaticText_styleClass_Description"));
487: prop_styleClass
488: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
489: prop_styleClass.setExpert(false);
490: prop_styleClass.setHidden(false);
491: prop_styleClass.setPreferred(false);
492: attrib = new AttributeDescriptor("styleClass", false, null,
493: true);
494: prop_styleClass.setValue(
495: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
496: attrib);
497: prop_styleClass
498: .setValue(
499: Constants.PropertyDescriptor.CATEGORY,
500: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
501:
502: PropertyDescriptor prop_text = new PropertyDescriptor(
503: "text", beanClass, "getText", "setText");
504: prop_text.setDisplayName(resources
505: .getString("StaticText_text_DisplayName"));
506: prop_text.setShortDescription(resources
507: .getString("StaticText_text_Description"));
508: prop_text
509: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
510: prop_text.setExpert(false);
511: prop_text.setHidden(false);
512: prop_text.setPreferred(false);
513: attrib = new AttributeDescriptor("text", false, null, true);
514: prop_text.setValue(
515: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
516: attrib);
517: prop_text
518: .setValue(
519: Constants.PropertyDescriptor.CATEGORY,
520: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
521:
522: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
523: "toolTip", beanClass, "getToolTip", "setToolTip");
524: prop_toolTip.setDisplayName(resources
525: .getString("StaticText_toolTip_DisplayName"));
526: prop_toolTip.setShortDescription(resources
527: .getString("StaticText_toolTip_Description"));
528: prop_toolTip
529: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
530: prop_toolTip.setExpert(false);
531: prop_toolTip.setHidden(false);
532: prop_toolTip.setPreferred(false);
533: attrib = new AttributeDescriptor("toolTip", false, null,
534: true);
535: prop_toolTip.setValue(
536: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
537: attrib);
538: prop_toolTip
539: .setValue(
540: Constants.PropertyDescriptor.CATEGORY,
541: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
542:
543: PropertyDescriptor prop_visible = new PropertyDescriptor(
544: "visible", beanClass, "isVisible", "setVisible");
545: prop_visible.setDisplayName(resources
546: .getString("StaticText_visible_DisplayName"));
547: prop_visible.setShortDescription(resources
548: .getString("StaticText_visible_Description"));
549: prop_visible.setExpert(false);
550: prop_visible.setHidden(false);
551: prop_visible.setPreferred(false);
552: attrib = new AttributeDescriptor("visible", false, "true",
553: true);
554: prop_visible.setValue(
555: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
556: attrib);
557: prop_visible
558: .setValue(
559: Constants.PropertyDescriptor.CATEGORY,
560: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
561:
562: PropertyDescriptor prop_attributes = new PropertyDescriptor(
563: "attributes", beanClass, "getAttributes", null);
564: prop_attributes.setDisplayName(resources
565: .getString("StaticText_attributes_DisplayName"));
566: prop_attributes.setShortDescription(resources
567: .getString("StaticText_attributes_Description"));
568: prop_attributes.setExpert(false);
569: prop_attributes.setHidden(true);
570: prop_attributes.setPreferred(false);
571: prop_attributes
572: .setValue(
573: Constants.PropertyDescriptor.CATEGORY,
574: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
575:
576: PropertyDescriptor prop_childCount = new PropertyDescriptor(
577: "childCount", beanClass, "getChildCount", null);
578: prop_childCount.setDisplayName(resources
579: .getString("StaticText_childCount_DisplayName"));
580: prop_childCount.setShortDescription(resources
581: .getString("StaticText_childCount_Description"));
582: prop_childCount.setExpert(false);
583: prop_childCount.setHidden(true);
584: prop_childCount.setPreferred(false);
585: prop_childCount
586: .setValue(
587: Constants.PropertyDescriptor.CATEGORY,
588: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
589:
590: PropertyDescriptor prop_children = new PropertyDescriptor(
591: "children", beanClass, "getChildren", null);
592: prop_children.setDisplayName(resources
593: .getString("StaticText_children_DisplayName"));
594: prop_children.setShortDescription(resources
595: .getString("StaticText_children_Description"));
596: prop_children.setExpert(false);
597: prop_children.setHidden(true);
598: prop_children.setPreferred(false);
599: prop_children
600: .setValue(
601: Constants.PropertyDescriptor.CATEGORY,
602: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
603:
604: PropertyDescriptor prop_converter = new PropertyDescriptor(
605: "converter", beanClass, "getConverter",
606: "setConverter");
607: prop_converter.setDisplayName(resources
608: .getString("StaticText_converter_DisplayName"));
609: prop_converter.setShortDescription(resources
610: .getString("StaticText_converter_Description"));
611: prop_converter
612: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
613: prop_converter.setExpert(false);
614: prop_converter.setHidden(false);
615: prop_converter.setPreferred(false);
616: attrib = new AttributeDescriptor("converter", false, null,
617: true);
618: prop_converter.setValue(
619: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
620: attrib);
621: prop_converter
622: .setValue(
623: Constants.PropertyDescriptor.CATEGORY,
624: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
625:
626: PropertyDescriptor prop_facets = new PropertyDescriptor(
627: "facets", beanClass, "getFacets", null);
628: prop_facets.setDisplayName(resources
629: .getString("StaticText_facets_DisplayName"));
630: prop_facets.setShortDescription(resources
631: .getString("StaticText_facets_Description"));
632: prop_facets.setExpert(false);
633: prop_facets.setHidden(true);
634: prop_facets.setPreferred(false);
635: prop_facets
636: .setValue(
637: Constants.PropertyDescriptor.CATEGORY,
638: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
639:
640: PropertyDescriptor prop_family = new PropertyDescriptor(
641: "family", beanClass, "getFamily", null);
642: prop_family.setDisplayName(resources
643: .getString("StaticText_family_DisplayName"));
644: prop_family.setShortDescription(resources
645: .getString("StaticText_family_Description"));
646: prop_family.setExpert(false);
647: prop_family.setHidden(true);
648: prop_family.setPreferred(false);
649: prop_family
650: .setValue(
651: Constants.PropertyDescriptor.CATEGORY,
652: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
653:
654: PropertyDescriptor prop_id = new PropertyDescriptor("id",
655: beanClass, "getId", "setId");
656: prop_id.setDisplayName(resources
657: .getString("StaticText_id_DisplayName"));
658: prop_id.setShortDescription(resources
659: .getString("StaticText_id_Description"));
660: prop_id.setExpert(false);
661: prop_id.setHidden(true);
662: prop_id.setPreferred(false);
663: attrib = new AttributeDescriptor("id", false, null, true);
664: prop_id.setValue(
665: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
666: attrib);
667: prop_id
668: .setValue(
669: Constants.PropertyDescriptor.CATEGORY,
670: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
671:
672: PropertyDescriptor prop_localValue = new PropertyDescriptor(
673: "localValue", beanClass, "getLocalValue", null);
674: prop_localValue.setDisplayName(resources
675: .getString("StaticText_localValue_DisplayName"));
676: prop_localValue.setShortDescription(resources
677: .getString("StaticText_localValue_Description"));
678: prop_localValue.setExpert(false);
679: prop_localValue.setHidden(true);
680: prop_localValue.setPreferred(false);
681: prop_localValue
682: .setValue(
683: Constants.PropertyDescriptor.CATEGORY,
684: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
685:
686: PropertyDescriptor prop_parent = new PropertyDescriptor(
687: "parent", beanClass, "getParent", null);
688: prop_parent.setDisplayName(resources
689: .getString("StaticText_parent_DisplayName"));
690: prop_parent.setShortDescription(resources
691: .getString("StaticText_parent_Description"));
692: prop_parent.setExpert(false);
693: prop_parent.setHidden(true);
694: prop_parent.setPreferred(false);
695: prop_parent
696: .setValue(
697: Constants.PropertyDescriptor.CATEGORY,
698: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
699:
700: PropertyDescriptor prop_rendered = new PropertyDescriptor(
701: "rendered", beanClass, "isRendered", "setRendered");
702: prop_rendered.setDisplayName(resources
703: .getString("StaticText_rendered_DisplayName"));
704: prop_rendered.setShortDescription(resources
705: .getString("StaticText_rendered_Description"));
706: prop_rendered.setExpert(false);
707: prop_rendered.setHidden(false);
708: prop_rendered.setPreferred(false);
709: attrib = new AttributeDescriptor("rendered", false, null,
710: true);
711: prop_rendered.setValue(
712: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
713: attrib);
714: prop_rendered
715: .setValue(
716: Constants.PropertyDescriptor.CATEGORY,
717: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
718:
719: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
720: "rendererType", beanClass, "getRendererType",
721: "setRendererType");
722: prop_rendererType.setDisplayName(resources
723: .getString("StaticText_rendererType_DisplayName"));
724: prop_rendererType.setShortDescription(resources
725: .getString("StaticText_rendererType_Description"));
726: prop_rendererType.setExpert(false);
727: prop_rendererType.setHidden(true);
728: prop_rendererType.setPreferred(false);
729: prop_rendererType
730: .setValue(
731: Constants.PropertyDescriptor.CATEGORY,
732: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
733:
734: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
735: "rendersChildren", beanClass, "getRendersChildren",
736: null);
737: prop_rendersChildren
738: .setDisplayName(resources
739: .getString("StaticText_rendersChildren_DisplayName"));
740: prop_rendersChildren
741: .setShortDescription(resources
742: .getString("StaticText_rendersChildren_Description"));
743: prop_rendersChildren.setExpert(false);
744: prop_rendersChildren.setHidden(true);
745: prop_rendersChildren.setPreferred(false);
746: prop_rendersChildren
747: .setValue(
748: Constants.PropertyDescriptor.CATEGORY,
749: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
750:
751: PropertyDescriptor prop_value = new PropertyDescriptor(
752: "value", beanClass, "getValue", "setValue");
753: prop_value.setDisplayName(resources
754: .getString("StaticText_value_DisplayName"));
755: prop_value.setShortDescription(resources
756: .getString("StaticText_value_Description"));
757: prop_value.setExpert(false);
758: prop_value.setHidden(true);
759: prop_value.setPreferred(false);
760: prop_value
761: .setValue(
762: Constants.PropertyDescriptor.CATEGORY,
763: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
764:
765: propDescriptors = new PropertyDescriptor[] {
766: prop_attributes, prop_childCount, prop_children,
767: prop_converter, prop_escape, prop_facets,
768: prop_family, prop_id, prop_localValue,
769: prop_onClick, prop_onDblClick, prop_onMouseDown,
770: prop_onMouseMove, prop_onMouseOut,
771: prop_onMouseOver, prop_onMouseUp, prop_parent,
772: prop_rendered, prop_rendererType,
773: prop_rendersChildren, prop_style, prop_styleClass,
774: prop_text, prop_toolTip, prop_value, prop_visible, };
775: return propDescriptors;
776:
777: } catch (IntrospectionException e) {
778: e.printStackTrace();
779: return null;
780: }
781:
782: }
783:
784: }
785: //GEN-END:BeanInfo
|