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 HiddenFieldBeanInfoBase 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(), HiddenFieldBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>HiddenFieldBeanInfoBase</code>.</p>
075: */
076: public HiddenFieldBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.HiddenField.class;
079: defaultPropertyName = "text";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/HiddenField_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/HiddenField_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/HiddenField_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/HiddenField_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("HiddenField_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("HiddenField_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_hidden_field");
154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
155: "hiddenField");
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_hidden_field_props");
161: beanDescriptor.setValue(
162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
163: getCategoryDescriptors());
164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
165: "hiddenField");
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_disabled = new PropertyDescriptor(
289: "disabled", beanClass, "isDisabled", "setDisabled");
290: prop_disabled.setDisplayName(resources
291: .getString("HiddenField_disabled_DisplayName"));
292: prop_disabled.setShortDescription(resources
293: .getString("HiddenField_disabled_Description"));
294: prop_disabled.setExpert(false);
295: prop_disabled.setHidden(false);
296: prop_disabled.setPreferred(false);
297: attrib = new AttributeDescriptor("disabled", false, null,
298: true);
299: prop_disabled.setValue(
300: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
301: attrib);
302: prop_disabled
303: .setValue(
304: Constants.PropertyDescriptor.CATEGORY,
305: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
306:
307: PropertyDescriptor prop_text = new PropertyDescriptor(
308: "text", beanClass, "getText", "setText");
309: prop_text.setDisplayName(resources
310: .getString("HiddenField_text_DisplayName"));
311: prop_text.setShortDescription(resources
312: .getString("HiddenField_text_Description"));
313: prop_text
314: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
315: prop_text.setExpert(false);
316: prop_text.setHidden(false);
317: prop_text.setPreferred(false);
318: attrib = new AttributeDescriptor("text", false, null, true);
319: prop_text.setValue(
320: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
321: attrib);
322: prop_text
323: .setValue(
324: Constants.PropertyDescriptor.CATEGORY,
325: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
326:
327: PropertyDescriptor prop_attributes = new PropertyDescriptor(
328: "attributes", beanClass, "getAttributes", null);
329: prop_attributes.setDisplayName(resources
330: .getString("HiddenField_attributes_DisplayName"));
331: prop_attributes.setShortDescription(resources
332: .getString("HiddenField_attributes_Description"));
333: prop_attributes.setExpert(false);
334: prop_attributes.setHidden(true);
335: prop_attributes.setPreferred(false);
336: prop_attributes
337: .setValue(
338: Constants.PropertyDescriptor.CATEGORY,
339: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
340:
341: PropertyDescriptor prop_childCount = new PropertyDescriptor(
342: "childCount", beanClass, "getChildCount", null);
343: prop_childCount.setDisplayName(resources
344: .getString("HiddenField_childCount_DisplayName"));
345: prop_childCount.setShortDescription(resources
346: .getString("HiddenField_childCount_Description"));
347: prop_childCount.setExpert(false);
348: prop_childCount.setHidden(true);
349: prop_childCount.setPreferred(false);
350: prop_childCount
351: .setValue(
352: Constants.PropertyDescriptor.CATEGORY,
353: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
354:
355: PropertyDescriptor prop_children = new PropertyDescriptor(
356: "children", beanClass, "getChildren", null);
357: prop_children.setDisplayName(resources
358: .getString("HiddenField_children_DisplayName"));
359: prop_children.setShortDescription(resources
360: .getString("HiddenField_children_Description"));
361: prop_children.setExpert(false);
362: prop_children.setHidden(true);
363: prop_children.setPreferred(false);
364: prop_children
365: .setValue(
366: Constants.PropertyDescriptor.CATEGORY,
367: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
368:
369: PropertyDescriptor prop_converter = new PropertyDescriptor(
370: "converter", beanClass, "getConverter",
371: "setConverter");
372: prop_converter.setDisplayName(resources
373: .getString("HiddenField_converter_DisplayName"));
374: prop_converter.setShortDescription(resources
375: .getString("HiddenField_converter_Description"));
376: prop_converter
377: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
378: prop_converter.setExpert(false);
379: prop_converter.setHidden(false);
380: prop_converter.setPreferred(false);
381: attrib = new AttributeDescriptor("converter", false, null,
382: true);
383: prop_converter.setValue(
384: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
385: attrib);
386: prop_converter
387: .setValue(
388: Constants.PropertyDescriptor.CATEGORY,
389: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
390:
391: PropertyDescriptor prop_facets = new PropertyDescriptor(
392: "facets", beanClass, "getFacets", null);
393: prop_facets.setDisplayName(resources
394: .getString("HiddenField_facets_DisplayName"));
395: prop_facets.setShortDescription(resources
396: .getString("HiddenField_facets_Description"));
397: prop_facets.setExpert(false);
398: prop_facets.setHidden(true);
399: prop_facets.setPreferred(false);
400: prop_facets
401: .setValue(
402: Constants.PropertyDescriptor.CATEGORY,
403: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
404:
405: PropertyDescriptor prop_family = new PropertyDescriptor(
406: "family", beanClass, "getFamily", null);
407: prop_family.setDisplayName(resources
408: .getString("HiddenField_family_DisplayName"));
409: prop_family.setShortDescription(resources
410: .getString("HiddenField_family_Description"));
411: prop_family.setExpert(false);
412: prop_family.setHidden(true);
413: prop_family.setPreferred(false);
414: prop_family
415: .setValue(
416: Constants.PropertyDescriptor.CATEGORY,
417: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
418:
419: PropertyDescriptor prop_id = new PropertyDescriptor("id",
420: beanClass, "getId", "setId");
421: prop_id.setDisplayName(resources
422: .getString("HiddenField_id_DisplayName"));
423: prop_id.setShortDescription(resources
424: .getString("HiddenField_id_Description"));
425: prop_id.setExpert(false);
426: prop_id.setHidden(true);
427: prop_id.setPreferred(false);
428: attrib = new AttributeDescriptor("id", false, null, true);
429: prop_id.setValue(
430: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
431: attrib);
432: prop_id
433: .setValue(
434: Constants.PropertyDescriptor.CATEGORY,
435: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
436:
437: PropertyDescriptor prop_immediate = new PropertyDescriptor(
438: "immediate", beanClass, "isImmediate",
439: "setImmediate");
440: prop_immediate.setDisplayName(resources
441: .getString("HiddenField_immediate_DisplayName"));
442: prop_immediate.setShortDescription(resources
443: .getString("HiddenField_immediate_Description"));
444: prop_immediate.setExpert(false);
445: prop_immediate.setHidden(false);
446: prop_immediate.setPreferred(false);
447: attrib = new AttributeDescriptor("immediate", false, null,
448: true);
449: prop_immediate.setValue(
450: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
451: attrib);
452: prop_immediate
453: .setValue(
454: Constants.PropertyDescriptor.CATEGORY,
455: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
456:
457: PropertyDescriptor prop_localValue = new PropertyDescriptor(
458: "localValue", beanClass, "getLocalValue", null);
459: prop_localValue.setDisplayName(resources
460: .getString("HiddenField_localValue_DisplayName"));
461: prop_localValue.setShortDescription(resources
462: .getString("HiddenField_localValue_Description"));
463: prop_localValue.setExpert(false);
464: prop_localValue.setHidden(true);
465: prop_localValue.setPreferred(false);
466: prop_localValue
467: .setValue(
468: Constants.PropertyDescriptor.CATEGORY,
469: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
470:
471: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
472: "localValueSet", beanClass, "isLocalValueSet",
473: "setLocalValueSet");
474: prop_localValueSet
475: .setDisplayName(resources
476: .getString("HiddenField_localValueSet_DisplayName"));
477: prop_localValueSet
478: .setShortDescription(resources
479: .getString("HiddenField_localValueSet_Description"));
480: prop_localValueSet.setExpert(false);
481: prop_localValueSet.setHidden(true);
482: prop_localValueSet.setPreferred(false);
483: prop_localValueSet
484: .setValue(
485: Constants.PropertyDescriptor.CATEGORY,
486: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
487:
488: PropertyDescriptor prop_parent = new PropertyDescriptor(
489: "parent", beanClass, "getParent", null);
490: prop_parent.setDisplayName(resources
491: .getString("HiddenField_parent_DisplayName"));
492: prop_parent.setShortDescription(resources
493: .getString("HiddenField_parent_Description"));
494: prop_parent.setExpert(false);
495: prop_parent.setHidden(true);
496: prop_parent.setPreferred(false);
497: prop_parent
498: .setValue(
499: Constants.PropertyDescriptor.CATEGORY,
500: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
501:
502: PropertyDescriptor prop_rendered = new PropertyDescriptor(
503: "rendered", beanClass, "isRendered", "setRendered");
504: prop_rendered.setDisplayName(resources
505: .getString("HiddenField_rendered_DisplayName"));
506: prop_rendered.setShortDescription(resources
507: .getString("HiddenField_rendered_Description"));
508: prop_rendered.setExpert(false);
509: prop_rendered.setHidden(false);
510: prop_rendered.setPreferred(false);
511: attrib = new AttributeDescriptor("rendered", false, null,
512: true);
513: prop_rendered.setValue(
514: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
515: attrib);
516: prop_rendered
517: .setValue(
518: Constants.PropertyDescriptor.CATEGORY,
519: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
520:
521: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
522: "rendererType", beanClass, "getRendererType",
523: "setRendererType");
524: prop_rendererType.setDisplayName(resources
525: .getString("HiddenField_rendererType_DisplayName"));
526: prop_rendererType.setShortDescription(resources
527: .getString("HiddenField_rendererType_Description"));
528: prop_rendererType.setExpert(false);
529: prop_rendererType.setHidden(true);
530: prop_rendererType.setPreferred(false);
531: prop_rendererType
532: .setValue(
533: Constants.PropertyDescriptor.CATEGORY,
534: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
535:
536: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
537: "rendersChildren", beanClass, "getRendersChildren",
538: null);
539: prop_rendersChildren
540: .setDisplayName(resources
541: .getString("HiddenField_rendersChildren_DisplayName"));
542: prop_rendersChildren
543: .setShortDescription(resources
544: .getString("HiddenField_rendersChildren_Description"));
545: prop_rendersChildren.setExpert(false);
546: prop_rendersChildren.setHidden(true);
547: prop_rendersChildren.setPreferred(false);
548: prop_rendersChildren
549: .setValue(
550: Constants.PropertyDescriptor.CATEGORY,
551: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
552:
553: PropertyDescriptor prop_required = new PropertyDescriptor(
554: "required", beanClass, "isRequired", "setRequired");
555: prop_required.setDisplayName(resources
556: .getString("HiddenField_required_DisplayName"));
557: prop_required.setShortDescription(resources
558: .getString("HiddenField_required_Description"));
559: prop_required.setExpert(false);
560: prop_required.setHidden(true);
561: prop_required.setPreferred(false);
562: prop_required
563: .setValue(
564: Constants.PropertyDescriptor.CATEGORY,
565: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
566:
567: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
568: "submittedValue", beanClass, "getSubmittedValue",
569: "setSubmittedValue");
570: prop_submittedValue
571: .setDisplayName(resources
572: .getString("HiddenField_submittedValue_DisplayName"));
573: prop_submittedValue
574: .setShortDescription(resources
575: .getString("HiddenField_submittedValue_Description"));
576: prop_submittedValue.setExpert(false);
577: prop_submittedValue.setHidden(true);
578: prop_submittedValue.setPreferred(false);
579: prop_submittedValue
580: .setValue(
581: Constants.PropertyDescriptor.CATEGORY,
582: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
583:
584: PropertyDescriptor prop_validator = new PropertyDescriptor(
585: "validator", beanClass, "getValidator",
586: "setValidator");
587: prop_validator.setDisplayName(resources
588: .getString("HiddenField_validator_DisplayName"));
589: prop_validator.setShortDescription(resources
590: .getString("HiddenField_validator_Description"));
591: prop_validator
592: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
593: prop_validator.setExpert(false);
594: prop_validator.setHidden(false);
595: prop_validator.setPreferred(false);
596: attrib = new AttributeDescriptor("validator", false, null,
597: true);
598: prop_validator.setValue(
599: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
600: attrib);
601: prop_validator
602: .setValue(
603: Constants.PropertyDescriptor.CATEGORY,
604: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
605:
606: PropertyDescriptor prop_value = new PropertyDescriptor(
607: "value", beanClass, "getValue", "setValue");
608: prop_value.setDisplayName(resources
609: .getString("HiddenField_value_DisplayName"));
610: prop_value.setShortDescription(resources
611: .getString("HiddenField_value_Description"));
612: prop_value.setExpert(false);
613: prop_value.setHidden(true);
614: prop_value.setPreferred(false);
615: prop_value
616: .setValue(
617: Constants.PropertyDescriptor.CATEGORY,
618: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
619:
620: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
621: "valueChangeListener", beanClass,
622: "getValueChangeListener", "setValueChangeListener");
623: prop_valueChangeListener
624: .setDisplayName(resources
625: .getString("HiddenField_valueChangeListener_DisplayName"));
626: prop_valueChangeListener
627: .setShortDescription(resources
628: .getString("HiddenField_valueChangeListener_Description"));
629: prop_valueChangeListener
630: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
631: prop_valueChangeListener.setExpert(false);
632: prop_valueChangeListener.setHidden(false);
633: prop_valueChangeListener.setPreferred(false);
634: attrib = new AttributeDescriptor("valueChangeListener",
635: false, null, true);
636: prop_valueChangeListener.setValue(
637: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
638: attrib);
639: prop_valueChangeListener
640: .setValue(
641: Constants.PropertyDescriptor.CATEGORY,
642: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
643:
644: propDescriptors = new PropertyDescriptor[] {
645: prop_attributes, prop_childCount, prop_children,
646: prop_converter, prop_disabled, prop_facets,
647: prop_family, prop_id, prop_immediate,
648: prop_localValue, prop_localValueSet, prop_parent,
649: prop_rendered, prop_rendererType,
650: prop_rendersChildren, prop_required,
651: prop_submittedValue, prop_text, prop_validator,
652: prop_value, prop_valueChangeListener, };
653: return propDescriptors;
654:
655: } catch (IntrospectionException e) {
656: e.printStackTrace();
657: return null;
658: }
659:
660: }
661:
662: }
663: //GEN-END:BeanInfo
|