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 EditableListBeanInfoBase 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(), EditableListBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>EditableListBeanInfoBase</code>.</p>
075: */
076: public EditableListBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.EditableList.class;
079: defaultPropertyName = "value";
080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/EditableList_C16";
081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/EditableList_C32";
082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/EditableList_M16";
083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/EditableList_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("EditableList_DisplayName"));
144: beanDescriptor.setShortDescription(resources
145: .getString("EditableList_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: "editableList");
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: "editableList");
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_disabled = new PropertyDescriptor(
284: "disabled", beanClass, "isDisabled", "setDisabled");
285: prop_disabled.setDisplayName(resources
286: .getString("EditableList_disabled_DisplayName"));
287: prop_disabled.setShortDescription(resources
288: .getString("EditableList_disabled_Description"));
289: prop_disabled.setExpert(false);
290: prop_disabled.setHidden(false);
291: prop_disabled.setPreferred(false);
292: attrib = new AttributeDescriptor("disabled", false, null,
293: true);
294: prop_disabled.setValue(
295: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
296: attrib);
297: prop_disabled
298: .setValue(
299: Constants.PropertyDescriptor.CATEGORY,
300: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
301:
302: PropertyDescriptor prop_fieldLabel = new PropertyDescriptor(
303: "fieldLabel", beanClass, "getFieldLabel",
304: "setFieldLabel");
305: prop_fieldLabel.setDisplayName(resources
306: .getString("EditableList_fieldLabel_DisplayName"));
307: prop_fieldLabel.setShortDescription(resources
308: .getString("EditableList_fieldLabel_Description"));
309: prop_fieldLabel
310: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
311: prop_fieldLabel.setExpert(false);
312: prop_fieldLabel.setHidden(false);
313: prop_fieldLabel.setPreferred(false);
314: attrib = new AttributeDescriptor("fieldLabel", false, null,
315: true);
316: prop_fieldLabel.setValue(
317: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
318: attrib);
319: prop_fieldLabel
320: .setValue(
321: Constants.PropertyDescriptor.CATEGORY,
322: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
323:
324: PropertyDescriptor prop_fieldValidator = new PropertyDescriptor(
325: "fieldValidator", beanClass, "getFieldValidator",
326: "setFieldValidator");
327: prop_fieldValidator
328: .setDisplayName(resources
329: .getString("EditableList_fieldValidator_DisplayName"));
330: prop_fieldValidator
331: .setShortDescription(resources
332: .getString("EditableList_fieldValidator_Description"));
333: prop_fieldValidator.setExpert(false);
334: prop_fieldValidator.setHidden(false);
335: prop_fieldValidator.setPreferred(false);
336: attrib = new AttributeDescriptor("fieldValidator", false,
337: null, true);
338: prop_fieldValidator.setValue(
339: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
340: attrib);
341: prop_fieldValidator
342: .setValue(
343: Constants.PropertyDescriptor.CATEGORY,
344: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
345:
346: PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
347: "labelLevel", beanClass, "getLabelLevel",
348: "setLabelLevel");
349: prop_labelLevel.setDisplayName(resources
350: .getString("EditableList_labelLevel_DisplayName"));
351: prop_labelLevel.setShortDescription(resources
352: .getString("EditableList_labelLevel_Description"));
353: prop_labelLevel
354: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
355: prop_labelLevel.setExpert(false);
356: prop_labelLevel.setHidden(false);
357: prop_labelLevel.setPreferred(false);
358: attrib = new AttributeDescriptor("labelLevel", false, "2",
359: true);
360: prop_labelLevel.setValue(
361: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
362: attrib);
363: prop_labelLevel
364: .setValue(
365: Constants.PropertyDescriptor.CATEGORY,
366: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
367: prop_labelLevel
368: .setValue(
369: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
370: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
371:
372: PropertyDescriptor prop_list = new PropertyDescriptor(
373: "list", beanClass, "getList", "setList");
374: prop_list.setDisplayName(resources
375: .getString("EditableList_list_DisplayName"));
376: prop_list.setShortDescription(resources
377: .getString("EditableList_list_Description"));
378: prop_list
379: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
380: prop_list.setExpert(false);
381: prop_list.setHidden(false);
382: prop_list.setPreferred(false);
383: attrib = new AttributeDescriptor("list", false, null, true);
384: prop_list.setValue(
385: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
386: attrib);
387: prop_list
388: .setValue(
389: Constants.PropertyDescriptor.CATEGORY,
390: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
391:
392: PropertyDescriptor prop_listLabel = new PropertyDescriptor(
393: "listLabel", beanClass, "getListLabel",
394: "setListLabel");
395: prop_listLabel.setDisplayName(resources
396: .getString("EditableList_listLabel_DisplayName"));
397: prop_listLabel.setShortDescription(resources
398: .getString("EditableList_listLabel_Description"));
399: prop_listLabel
400: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
401: prop_listLabel.setExpert(false);
402: prop_listLabel.setHidden(false);
403: prop_listLabel.setPreferred(false);
404: attrib = new AttributeDescriptor("listLabel", false, null,
405: true);
406: prop_listLabel.setValue(
407: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
408: attrib);
409: prop_listLabel
410: .setValue(
411: Constants.PropertyDescriptor.CATEGORY,
412: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
413:
414: PropertyDescriptor prop_listOnTop = new PropertyDescriptor(
415: "listOnTop", beanClass, "isListOnTop",
416: "setListOnTop");
417: prop_listOnTop.setDisplayName(resources
418: .getString("EditableList_listOnTop_DisplayName"));
419: prop_listOnTop.setShortDescription(resources
420: .getString("EditableList_listOnTop_Description"));
421: prop_listOnTop.setExpert(false);
422: prop_listOnTop.setHidden(false);
423: prop_listOnTop.setPreferred(false);
424: attrib = new AttributeDescriptor("listOnTop", false, null,
425: true);
426: prop_listOnTop.setValue(
427: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
428: attrib);
429: prop_listOnTop
430: .setValue(
431: Constants.PropertyDescriptor.CATEGORY,
432: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
433:
434: PropertyDescriptor prop_listValidator = new PropertyDescriptor(
435: "listValidator", beanClass, "getListValidator",
436: "setListValidator");
437: prop_listValidator
438: .setDisplayName(resources
439: .getString("EditableList_listValidator_DisplayName"));
440: prop_listValidator
441: .setShortDescription(resources
442: .getString("EditableList_listValidator_Description"));
443: prop_listValidator.setExpert(false);
444: prop_listValidator.setHidden(false);
445: prop_listValidator.setPreferred(false);
446: attrib = new AttributeDescriptor("listValidator", false,
447: null, true);
448: prop_listValidator.setValue(
449: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
450: attrib);
451: prop_listValidator
452: .setValue(
453: Constants.PropertyDescriptor.CATEGORY,
454: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
455:
456: PropertyDescriptor prop_maxLength = new PropertyDescriptor(
457: "maxLength", beanClass, "getMaxLength",
458: "setMaxLength");
459: prop_maxLength.setDisplayName(resources
460: .getString("EditableList_maxLength_DisplayName"));
461: prop_maxLength.setShortDescription(resources
462: .getString("EditableList_maxLength_Description"));
463: prop_maxLength
464: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
465: prop_maxLength.setExpert(false);
466: prop_maxLength.setHidden(false);
467: prop_maxLength.setPreferred(false);
468: attrib = new AttributeDescriptor("maxLength", false, "25",
469: true);
470: prop_maxLength.setValue(
471: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
472: attrib);
473: prop_maxLength
474: .setValue(
475: Constants.PropertyDescriptor.CATEGORY,
476: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
477: prop_maxLength.setValue(
478: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
479:
480: PropertyDescriptor prop_multiple = new PropertyDescriptor(
481: "multiple", beanClass, "isMultiple", "setMultiple");
482: prop_multiple.setDisplayName(resources
483: .getString("EditableList_multiple_DisplayName"));
484: prop_multiple.setShortDescription(resources
485: .getString("EditableList_multiple_Description"));
486: prop_multiple.setExpert(false);
487: prop_multiple.setHidden(false);
488: prop_multiple.setPreferred(false);
489: attrib = new AttributeDescriptor("multiple", false, null,
490: true);
491: prop_multiple.setValue(
492: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
493: attrib);
494: prop_multiple
495: .setValue(
496: Constants.PropertyDescriptor.CATEGORY,
497: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
498:
499: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
500: "readOnly", beanClass, "isReadOnly", "setReadOnly");
501: prop_readOnly.setDisplayName(resources
502: .getString("EditableList_readOnly_DisplayName"));
503: prop_readOnly.setShortDescription(resources
504: .getString("EditableList_readOnly_Description"));
505: prop_readOnly.setExpert(false);
506: prop_readOnly.setHidden(false);
507: prop_readOnly.setPreferred(false);
508: attrib = new AttributeDescriptor("readOnly", false, null,
509: true);
510: prop_readOnly.setValue(
511: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
512: attrib);
513: prop_readOnly
514: .setValue(
515: Constants.PropertyDescriptor.CATEGORY,
516: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
517:
518: PropertyDescriptor prop_rows = new PropertyDescriptor(
519: "rows", beanClass, "getRows", "setRows");
520: prop_rows.setDisplayName(resources
521: .getString("EditableList_rows_DisplayName"));
522: prop_rows.setShortDescription(resources
523: .getString("EditableList_rows_Description"));
524: prop_rows
525: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
526: prop_rows.setExpert(false);
527: prop_rows.setHidden(false);
528: prop_rows.setPreferred(false);
529: attrib = new AttributeDescriptor("rows", false, "6", true);
530: prop_rows.setValue(
531: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
532: attrib);
533: prop_rows
534: .setValue(
535: Constants.PropertyDescriptor.CATEGORY,
536: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
537: prop_rows.setValue(
538: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
539:
540: PropertyDescriptor prop_sorted = new PropertyDescriptor(
541: "sorted", beanClass, "isSorted", "setSorted");
542: prop_sorted.setDisplayName(resources
543: .getString("EditableList_sorted_DisplayName"));
544: prop_sorted.setShortDescription(resources
545: .getString("EditableList_sorted_Description"));
546: prop_sorted.setExpert(false);
547: prop_sorted.setHidden(false);
548: prop_sorted.setPreferred(false);
549: attrib = new AttributeDescriptor("sorted", false, null,
550: true);
551: prop_sorted.setValue(
552: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
553: attrib);
554: prop_sorted
555: .setValue(
556: Constants.PropertyDescriptor.CATEGORY,
557: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
558:
559: PropertyDescriptor prop_style = new PropertyDescriptor(
560: "style", beanClass, "getStyle", "setStyle");
561: prop_style.setDisplayName(resources
562: .getString("EditableList_style_DisplayName"));
563: prop_style.setShortDescription(resources
564: .getString("EditableList_style_Description"));
565: prop_style
566: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
567: prop_style.setExpert(false);
568: prop_style.setHidden(false);
569: prop_style.setPreferred(false);
570: attrib = new AttributeDescriptor("style", false, null, true);
571: prop_style.setValue(
572: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
573: attrib);
574: prop_style
575: .setValue(
576: Constants.PropertyDescriptor.CATEGORY,
577: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
578:
579: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
580: "styleClass", beanClass, "getStyleClass",
581: "setStyleClass");
582: prop_styleClass.setDisplayName(resources
583: .getString("EditableList_styleClass_DisplayName"));
584: prop_styleClass.setShortDescription(resources
585: .getString("EditableList_styleClass_Description"));
586: prop_styleClass
587: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
588: prop_styleClass.setExpert(false);
589: prop_styleClass.setHidden(false);
590: prop_styleClass.setPreferred(false);
591: attrib = new AttributeDescriptor("styleClass", false, null,
592: true);
593: prop_styleClass.setValue(
594: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
595: attrib);
596: prop_styleClass
597: .setValue(
598: Constants.PropertyDescriptor.CATEGORY,
599: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
600:
601: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
602: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
603: prop_tabIndex.setDisplayName(resources
604: .getString("EditableList_tabIndex_DisplayName"));
605: prop_tabIndex.setShortDescription(resources
606: .getString("EditableList_tabIndex_Description"));
607: prop_tabIndex
608: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
609: prop_tabIndex.setExpert(false);
610: prop_tabIndex.setHidden(false);
611: prop_tabIndex.setPreferred(false);
612: attrib = new AttributeDescriptor("tabIndex", false, null,
613: true);
614: prop_tabIndex.setValue(
615: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
616: attrib);
617: prop_tabIndex
618: .setValue(
619: Constants.PropertyDescriptor.CATEGORY,
620: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
621: prop_tabIndex.setValue(
622: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
623:
624: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
625: "toolTip", beanClass, "getToolTip", "setToolTip");
626: prop_toolTip.setDisplayName(resources
627: .getString("EditableList_toolTip_DisplayName"));
628: prop_toolTip.setShortDescription(resources
629: .getString("EditableList_toolTip_Description"));
630: prop_toolTip
631: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
632: prop_toolTip.setExpert(false);
633: prop_toolTip.setHidden(false);
634: prop_toolTip.setPreferred(false);
635: attrib = new AttributeDescriptor("toolTip", false, null,
636: true);
637: prop_toolTip.setValue(
638: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
639: attrib);
640: prop_toolTip
641: .setValue(
642: Constants.PropertyDescriptor.CATEGORY,
643: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
644:
645: PropertyDescriptor prop_visible = new PropertyDescriptor(
646: "visible", beanClass, "isVisible", "setVisible");
647: prop_visible.setDisplayName(resources
648: .getString("EditableList_visible_DisplayName"));
649: prop_visible.setShortDescription(resources
650: .getString("EditableList_visible_Description"));
651: prop_visible.setExpert(false);
652: prop_visible.setHidden(false);
653: prop_visible.setPreferred(false);
654: attrib = new AttributeDescriptor("visible", false, "true",
655: true);
656: prop_visible.setValue(
657: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
658: attrib);
659: prop_visible
660: .setValue(
661: Constants.PropertyDescriptor.CATEGORY,
662: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
663:
664: PropertyDescriptor prop_attributes = new PropertyDescriptor(
665: "attributes", beanClass, "getAttributes", null);
666: prop_attributes.setDisplayName(resources
667: .getString("EditableList_attributes_DisplayName"));
668: prop_attributes.setShortDescription(resources
669: .getString("EditableList_attributes_Description"));
670: prop_attributes.setExpert(false);
671: prop_attributes.setHidden(true);
672: prop_attributes.setPreferred(false);
673: prop_attributes
674: .setValue(
675: Constants.PropertyDescriptor.CATEGORY,
676: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
677:
678: PropertyDescriptor prop_childCount = new PropertyDescriptor(
679: "childCount", beanClass, "getChildCount", null);
680: prop_childCount.setDisplayName(resources
681: .getString("EditableList_childCount_DisplayName"));
682: prop_childCount.setShortDescription(resources
683: .getString("EditableList_childCount_Description"));
684: prop_childCount.setExpert(false);
685: prop_childCount.setHidden(true);
686: prop_childCount.setPreferred(false);
687: prop_childCount
688: .setValue(
689: Constants.PropertyDescriptor.CATEGORY,
690: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
691:
692: PropertyDescriptor prop_children = new PropertyDescriptor(
693: "children", beanClass, "getChildren", null);
694: prop_children.setDisplayName(resources
695: .getString("EditableList_children_DisplayName"));
696: prop_children.setShortDescription(resources
697: .getString("EditableList_children_Description"));
698: prop_children.setExpert(false);
699: prop_children.setHidden(true);
700: prop_children.setPreferred(false);
701: prop_children
702: .setValue(
703: Constants.PropertyDescriptor.CATEGORY,
704: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
705:
706: PropertyDescriptor prop_converter = new PropertyDescriptor(
707: "converter", beanClass, "getConverter",
708: "setConverter");
709: prop_converter.setDisplayName(resources
710: .getString("EditableList_converter_DisplayName"));
711: prop_converter.setShortDescription(resources
712: .getString("EditableList_converter_Description"));
713: prop_converter
714: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
715: prop_converter.setExpert(false);
716: prop_converter.setHidden(true);
717: prop_converter.setPreferred(false);
718: prop_converter
719: .setValue(
720: Constants.PropertyDescriptor.CATEGORY,
721: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
722:
723: PropertyDescriptor prop_facets = new PropertyDescriptor(
724: "facets", beanClass, "getFacets", null);
725: prop_facets.setDisplayName(resources
726: .getString("EditableList_facets_DisplayName"));
727: prop_facets.setShortDescription(resources
728: .getString("EditableList_facets_Description"));
729: prop_facets.setExpert(false);
730: prop_facets.setHidden(true);
731: prop_facets.setPreferred(false);
732: prop_facets
733: .setValue(
734: Constants.PropertyDescriptor.CATEGORY,
735: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
736:
737: PropertyDescriptor prop_family = new PropertyDescriptor(
738: "family", beanClass, "getFamily", null);
739: prop_family.setDisplayName(resources
740: .getString("EditableList_family_DisplayName"));
741: prop_family.setShortDescription(resources
742: .getString("EditableList_family_Description"));
743: prop_family.setExpert(false);
744: prop_family.setHidden(true);
745: prop_family.setPreferred(false);
746: prop_family
747: .setValue(
748: Constants.PropertyDescriptor.CATEGORY,
749: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
750:
751: PropertyDescriptor prop_id = new PropertyDescriptor("id",
752: beanClass, "getId", "setId");
753: prop_id.setDisplayName(resources
754: .getString("EditableList_id_DisplayName"));
755: prop_id.setShortDescription(resources
756: .getString("EditableList_id_Description"));
757: prop_id.setExpert(false);
758: prop_id.setHidden(true);
759: prop_id.setPreferred(false);
760: attrib = new AttributeDescriptor("id", false, null, true);
761: prop_id.setValue(
762: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
763: attrib);
764: prop_id
765: .setValue(
766: Constants.PropertyDescriptor.CATEGORY,
767: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
768:
769: PropertyDescriptor prop_immediate = new PropertyDescriptor(
770: "immediate", beanClass, "isImmediate",
771: "setImmediate");
772: prop_immediate.setDisplayName(resources
773: .getString("EditableList_immediate_DisplayName"));
774: prop_immediate.setShortDescription(resources
775: .getString("EditableList_immediate_Description"));
776: prop_immediate.setExpert(false);
777: prop_immediate.setHidden(true);
778: prop_immediate.setPreferred(false);
779: prop_immediate
780: .setValue(
781: Constants.PropertyDescriptor.CATEGORY,
782: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
783:
784: PropertyDescriptor prop_localValue = new PropertyDescriptor(
785: "localValue", beanClass, "getLocalValue", null);
786: prop_localValue.setDisplayName(resources
787: .getString("EditableList_localValue_DisplayName"));
788: prop_localValue.setShortDescription(resources
789: .getString("EditableList_localValue_Description"));
790: prop_localValue.setExpert(false);
791: prop_localValue.setHidden(true);
792: prop_localValue.setPreferred(false);
793: prop_localValue
794: .setValue(
795: Constants.PropertyDescriptor.CATEGORY,
796: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
797:
798: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
799: "localValueSet", beanClass, "isLocalValueSet",
800: "setLocalValueSet");
801: prop_localValueSet
802: .setDisplayName(resources
803: .getString("EditableList_localValueSet_DisplayName"));
804: prop_localValueSet
805: .setShortDescription(resources
806: .getString("EditableList_localValueSet_Description"));
807: prop_localValueSet.setExpert(false);
808: prop_localValueSet.setHidden(true);
809: prop_localValueSet.setPreferred(false);
810: prop_localValueSet
811: .setValue(
812: Constants.PropertyDescriptor.CATEGORY,
813: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
814:
815: PropertyDescriptor prop_parent = new PropertyDescriptor(
816: "parent", beanClass, "getParent", null);
817: prop_parent.setDisplayName(resources
818: .getString("EditableList_parent_DisplayName"));
819: prop_parent.setShortDescription(resources
820: .getString("EditableList_parent_Description"));
821: prop_parent.setExpert(false);
822: prop_parent.setHidden(true);
823: prop_parent.setPreferred(false);
824: prop_parent
825: .setValue(
826: Constants.PropertyDescriptor.CATEGORY,
827: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
828:
829: PropertyDescriptor prop_rendered = new PropertyDescriptor(
830: "rendered", beanClass, "isRendered", "setRendered");
831: prop_rendered.setDisplayName(resources
832: .getString("EditableList_rendered_DisplayName"));
833: prop_rendered.setShortDescription(resources
834: .getString("EditableList_rendered_Description"));
835: prop_rendered.setExpert(false);
836: prop_rendered.setHidden(false);
837: prop_rendered.setPreferred(false);
838: attrib = new AttributeDescriptor("rendered", false, null,
839: true);
840: prop_rendered.setValue(
841: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
842: attrib);
843: prop_rendered
844: .setValue(
845: Constants.PropertyDescriptor.CATEGORY,
846: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
847:
848: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
849: "rendererType", beanClass, "getRendererType",
850: "setRendererType");
851: prop_rendererType
852: .setDisplayName(resources
853: .getString("EditableList_rendererType_DisplayName"));
854: prop_rendererType
855: .setShortDescription(resources
856: .getString("EditableList_rendererType_Description"));
857: prop_rendererType.setExpert(false);
858: prop_rendererType.setHidden(true);
859: prop_rendererType.setPreferred(false);
860: prop_rendererType
861: .setValue(
862: Constants.PropertyDescriptor.CATEGORY,
863: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
864:
865: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
866: "rendersChildren", beanClass, "getRendersChildren",
867: null);
868: prop_rendersChildren
869: .setDisplayName(resources
870: .getString("EditableList_rendersChildren_DisplayName"));
871: prop_rendersChildren
872: .setShortDescription(resources
873: .getString("EditableList_rendersChildren_Description"));
874: prop_rendersChildren.setExpert(false);
875: prop_rendersChildren.setHidden(true);
876: prop_rendersChildren.setPreferred(false);
877: prop_rendersChildren
878: .setValue(
879: Constants.PropertyDescriptor.CATEGORY,
880: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
881:
882: PropertyDescriptor prop_required = new PropertyDescriptor(
883: "required", beanClass, "isRequired", "setRequired");
884: prop_required.setDisplayName(resources
885: .getString("EditableList_required_DisplayName"));
886: prop_required.setShortDescription(resources
887: .getString("EditableList_required_Description"));
888: prop_required.setExpert(false);
889: prop_required.setHidden(false);
890: prop_required.setPreferred(false);
891: attrib = new AttributeDescriptor("required", false, null,
892: true);
893: prop_required.setValue(
894: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
895: attrib);
896: prop_required
897: .setValue(
898: Constants.PropertyDescriptor.CATEGORY,
899: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
900:
901: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
902: "submittedValue", beanClass, "getSubmittedValue",
903: "setSubmittedValue");
904: prop_submittedValue
905: .setDisplayName(resources
906: .getString("EditableList_submittedValue_DisplayName"));
907: prop_submittedValue
908: .setShortDescription(resources
909: .getString("EditableList_submittedValue_Description"));
910: prop_submittedValue.setExpert(false);
911: prop_submittedValue.setHidden(true);
912: prop_submittedValue.setPreferred(false);
913: prop_submittedValue
914: .setValue(
915: Constants.PropertyDescriptor.CATEGORY,
916: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
917:
918: PropertyDescriptor prop_validator = new PropertyDescriptor(
919: "validator", beanClass, "getValidator",
920: "setValidator");
921: prop_validator.setDisplayName(resources
922: .getString("EditableList_validator_DisplayName"));
923: prop_validator.setShortDescription(resources
924: .getString("EditableList_validator_Description"));
925: prop_validator
926: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
927: prop_validator.setExpert(false);
928: prop_validator.setHidden(true);
929: prop_validator.setPreferred(false);
930: prop_validator
931: .setValue(
932: Constants.PropertyDescriptor.CATEGORY,
933: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
934:
935: PropertyDescriptor prop_value = new PropertyDescriptor(
936: "value", beanClass, "getValue", "setValue");
937: prop_value.setDisplayName(resources
938: .getString("EditableList_value_DisplayName"));
939: prop_value.setShortDescription(resources
940: .getString("EditableList_value_Description"));
941: prop_value.setExpert(false);
942: prop_value.setHidden(true);
943: prop_value.setPreferred(false);
944: prop_value
945: .setValue(
946: Constants.PropertyDescriptor.CATEGORY,
947: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
948:
949: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
950: "valueChangeListener", beanClass,
951: "getValueChangeListener", "setValueChangeListener");
952: prop_valueChangeListener
953: .setDisplayName(resources
954: .getString("EditableList_valueChangeListener_DisplayName"));
955: prop_valueChangeListener
956: .setShortDescription(resources
957: .getString("EditableList_valueChangeListener_Description"));
958: prop_valueChangeListener
959: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
960: prop_valueChangeListener.setExpert(false);
961: prop_valueChangeListener.setHidden(false);
962: prop_valueChangeListener.setPreferred(false);
963: attrib = new AttributeDescriptor("valueChangeListener",
964: false, null, true);
965: prop_valueChangeListener.setValue(
966: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
967: attrib);
968: prop_valueChangeListener
969: .setValue(
970: Constants.PropertyDescriptor.CATEGORY,
971: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
972:
973: propDescriptors = new PropertyDescriptor[] {
974: prop_attributes, prop_childCount, prop_children,
975: prop_converter, prop_disabled, prop_facets,
976: prop_family, prop_fieldLabel, prop_fieldValidator,
977: prop_id, prop_immediate, prop_labelLevel,
978: prop_list, prop_listLabel, prop_listOnTop,
979: prop_listValidator, prop_localValue,
980: prop_localValueSet, prop_maxLength, prop_multiple,
981: prop_parent, prop_readOnly, prop_rendered,
982: prop_rendererType, prop_rendersChildren,
983: prop_required, prop_rows, prop_sorted, prop_style,
984: prop_styleClass, prop_submittedValue,
985: prop_tabIndex, prop_toolTip, prop_validator,
986: prop_value, prop_valueChangeListener, prop_visible, };
987: return propDescriptors;
988:
989: } catch (IntrospectionException e) {
990: e.printStackTrace();
991: return null;
992: }
993:
994: }
995:
996: }
997: //GEN-END:BeanInfo
|