0001: //GEN-BEGIN:BeanInfo
0002: /*
0003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0004: *
0005: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
0006: *
0007: * The contents of this file are subject to the terms of either the GNU
0008: * General Public License Version 2 only ("GPL") or the Common
0009: * Development and Distribution License("CDDL") (collectively, the
0010: * "License"). You may not use this file except in compliance with the
0011: * License. You can obtain a copy of the License at
0012: * http://www.netbeans.org/cddl-gplv2.html
0013: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
0014: * specific language governing permissions and limitations under the
0015: * License. When distributing the software, include this License Header
0016: * Notice in each file and include the License file at
0017: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
0018: * particular file as subject to the "Classpath" exception as provided
0019: * by Sun in the GPL Version 2 section of the License file that
0020: * accompanied this code. If applicable, add the following below the
0021: * License Header, with the fields enclosed by brackets [] replaced by
0022: * your own identifying information:
0023: * "Portions Copyrighted [year] [name of copyright owner]"
0024: *
0025: * Contributor(s):
0026: *
0027: * The Original Software is NetBeans. The Initial Developer of the Original
0028: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
0029: * Microsystems, Inc. All Rights Reserved.
0030: *
0031: * If you wish your version of this file to be governed by only the CDDL
0032: * or only the GPL Version 2, indicate your decision by adding
0033: * "[Contributor] elects to include this software in this distribution
0034: * under the [CDDL or GPL Version 2] license." If you do not indicate a
0035: * single choice of license, a recipient has the option to distribute
0036: * your version of this file under either the CDDL, the GPL Version 2 or
0037: * to extend the choice of license to its licensees as provided above.
0038: * However, if you add GPL Version 2 code and therefore, elected the GPL
0039: * Version 2 license, then the option applies only if the new code is
0040: * made subject to such option by the copyright holder.
0041: */
0042: package org.netbeans.modules.visualweb.web.ui.dt.component;
0043:
0044: import java.awt.Image;
0045: import java.beans.BeanDescriptor;
0046: import java.beans.BeanInfo;
0047: import java.beans.IntrospectionException;
0048: import java.beans.PropertyDescriptor;
0049: import java.util.Locale;
0050: import java.util.ResourceBundle;
0051:
0052: import com.sun.rave.designtime.CategoryDescriptor;
0053: import com.sun.rave.designtime.Constants;
0054: import com.sun.rave.designtime.faces.FacetDescriptor;
0055: import com.sun.rave.designtime.markup.AttributeDescriptor;
0056:
0057: import java.beans.SimpleBeanInfo;
0058:
0059: /**
0060: * <p>Auto-generated design time metadata class.
0061: * Do <strong>NOT</strong> modify; all changes
0062: * <strong>will</strong> be lost!</p>
0063: */
0064:
0065: abstract class RadioButtonGroupBeanInfoBase extends SimpleBeanInfo {
0066:
0067: protected static ResourceBundle resources = ResourceBundle
0068: .getBundle(
0069: "org.netbeans.modules.visualweb.web.ui.dt.component.Bundle-JSF",
0070: Locale.getDefault(),
0071: RadioButtonGroupBeanInfoBase.class.getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>RadioButtonGroupBeanInfoBase</code>.</p>
0075: */
0076: public RadioButtonGroupBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.RadioButtonGroup.class;
0079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButtonGroup_C16";
0080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButtonGroup_C32";
0081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButtonGroup_M16";
0082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButtonGroup_M32";
0083:
0084: }
0085:
0086: /**
0087: * <p>The bean class that this BeanInfo represents.
0088: */
0089: protected Class beanClass;
0090:
0091: /**
0092: * <p>The cached BeanDescriptor.</p>
0093: */
0094: protected BeanDescriptor beanDescriptor;
0095:
0096: /**
0097: * <p>The index of the default property.</p>
0098: */
0099: protected int defaultPropertyIndex = -2;
0100:
0101: /**
0102: * <p>The name of the default property.</p>
0103: */
0104: protected String defaultPropertyName;
0105:
0106: /**
0107: * <p>The 16x16 color icon.</p>
0108: */
0109: protected String iconFileName_C16;
0110:
0111: /**
0112: * <p>The 32x32 color icon.</p>
0113: */
0114: protected String iconFileName_C32;
0115:
0116: /**
0117: * <p>The 16x16 monochrome icon.</p>
0118: */
0119: protected String iconFileName_M16;
0120:
0121: /**
0122: * <p>The 32x32 monochrome icon.</p>
0123: */
0124: protected String iconFileName_M32;
0125:
0126: /**
0127: * <p>The cached property descriptors.</p>
0128: */
0129: protected PropertyDescriptor[] propDescriptors;
0130:
0131: /**
0132: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
0133: */
0134: public BeanDescriptor getBeanDescriptor() {
0135:
0136: if (beanDescriptor != null) {
0137: return beanDescriptor;
0138: }
0139:
0140: beanDescriptor = new BeanDescriptor(beanClass);
0141: beanDescriptor.setDisplayName(resources
0142: .getString("RadioButtonGroup_DisplayName"));
0143: beanDescriptor.setShortDescription(resources
0144: .getString("RadioButtonGroup_Description"));
0145: beanDescriptor.setExpert(false);
0146: beanDescriptor.setHidden(false);
0147: beanDescriptor.setPreferred(false);
0148: beanDescriptor.setValue(
0149: Constants.BeanDescriptor.FACET_DESCRIPTORS,
0150: getFacetDescriptors());
0151: beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
0152: "projrave_ui_elements_palette_bh_radiobutton_group");
0153: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0154: "radioButtonGroup");
0155: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0156: Boolean.TRUE);
0157: beanDescriptor
0158: .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
0159: "projrave_ui_elements_palette_bh_propsheets_bh_radiobutton_group_props");
0160: beanDescriptor.setValue(
0161: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0162: getCategoryDescriptors());
0163: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0164: "radioButtonGroup");
0165: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0166: "ui");
0167: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0168: "http://www.sun.com/web/ui");
0169:
0170: return beanDescriptor;
0171:
0172: }
0173:
0174: /**
0175: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0176: */
0177: private CategoryDescriptor[] getCategoryDescriptors() {
0178:
0179: return com.sun.rave.designtime.base.CategoryDescriptors
0180: .getDefaultCategoryDescriptors();
0181:
0182: }
0183:
0184: /**
0185: * <p>Return the index of the default property, or
0186: * -1 if there is no default property.</p>
0187: */
0188: public int getDefaultPropertyIndex() {
0189:
0190: if (defaultPropertyIndex > -2) {
0191: return defaultPropertyIndex;
0192: } else {
0193: if (defaultPropertyName == null) {
0194: defaultPropertyIndex = -1;
0195: } else {
0196: PropertyDescriptor pd[] = getPropertyDescriptors();
0197: for (int i = 0; i < pd.length; i++) {
0198: if (defaultPropertyName.equals(pd[i].getName())) {
0199: defaultPropertyIndex = i;
0200: break;
0201: }
0202: }
0203: }
0204: }
0205: return defaultPropertyIndex;
0206: }
0207:
0208: /**
0209: * <p>The cached facet descriptors.</p>
0210: */
0211: protected FacetDescriptor[] facetDescriptors;
0212:
0213: /**
0214: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0215: */
0216: public FacetDescriptor[] getFacetDescriptors() {
0217:
0218: if (facetDescriptors != null) {
0219: return facetDescriptors;
0220: }
0221: facetDescriptors = new FacetDescriptor[] {};
0222: return facetDescriptors;
0223:
0224: }
0225:
0226: /**
0227: * <p>Return the specified image (if any)
0228: * for this component class.</p>
0229: */
0230: public Image getIcon(int kind) {
0231:
0232: String name;
0233: switch (kind) {
0234: case ICON_COLOR_16x16:
0235: name = iconFileName_C16;
0236: break;
0237: case ICON_COLOR_32x32:
0238: name = iconFileName_C32;
0239: break;
0240: case ICON_MONO_16x16:
0241: name = iconFileName_M16;
0242: break;
0243: case ICON_MONO_32x32:
0244: name = iconFileName_M32;
0245: break;
0246: default:
0247: name = null;
0248: break;
0249: }
0250: if (name == null) {
0251: return null;
0252: }
0253:
0254: Image image = loadImage(name + ".png");
0255: if (image == null) {
0256: image = loadImage(name + ".gif");
0257: }
0258: return image;
0259:
0260: }
0261:
0262: /**
0263: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0264: */
0265: private java.lang.Class loadClass(java.lang.String name) {
0266:
0267: try {
0268: return Class.forName(name);
0269: } catch (ClassNotFoundException e) {
0270: throw new RuntimeException(e);
0271: }
0272:
0273: }
0274:
0275: /**
0276: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0277: */
0278: public PropertyDescriptor[] getPropertyDescriptors() {
0279:
0280: if (propDescriptors != null) {
0281: return propDescriptors;
0282: }
0283: AttributeDescriptor attrib = null;
0284:
0285: try {
0286:
0287: PropertyDescriptor prop_columns = new PropertyDescriptor(
0288: "columns", beanClass, "getColumns", "setColumns");
0289: prop_columns.setDisplayName(resources
0290: .getString("RadioButtonGroup_columns_DisplayName"));
0291: prop_columns.setShortDescription(resources
0292: .getString("RadioButtonGroup_columns_Description"));
0293: prop_columns
0294: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0295: prop_columns.setExpert(false);
0296: prop_columns.setHidden(false);
0297: prop_columns.setPreferred(false);
0298: attrib = new AttributeDescriptor("columns", false, "1",
0299: true);
0300: prop_columns.setValue(
0301: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0302: attrib);
0303: prop_columns
0304: .setValue(
0305: Constants.PropertyDescriptor.CATEGORY,
0306: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0307: prop_columns.setValue(
0308: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0309:
0310: PropertyDescriptor prop_visible = new PropertyDescriptor(
0311: "visible", beanClass, "isVisible", "setVisible");
0312: prop_visible.setDisplayName(resources
0313: .getString("RadioButtonGroup_visible_DisplayName"));
0314: prop_visible.setShortDescription(resources
0315: .getString("RadioButtonGroup_visible_Description"));
0316: prop_visible.setExpert(false);
0317: prop_visible.setHidden(false);
0318: prop_visible.setPreferred(false);
0319: attrib = new AttributeDescriptor("visible", false, "true",
0320: true);
0321: prop_visible.setValue(
0322: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0323: attrib);
0324: prop_visible
0325: .setValue(
0326: Constants.PropertyDescriptor.CATEGORY,
0327: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0328:
0329: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0330: "disabled", beanClass, "isDisabled", "setDisabled");
0331: prop_disabled
0332: .setDisplayName(resources
0333: .getString("RadioButtonGroup_disabled_DisplayName"));
0334: prop_disabled
0335: .setShortDescription(resources
0336: .getString("RadioButtonGroup_disabled_Description"));
0337: prop_disabled.setExpert(false);
0338: prop_disabled.setHidden(false);
0339: prop_disabled.setPreferred(false);
0340: attrib = new AttributeDescriptor("disabled", false, null,
0341: true);
0342: prop_disabled.setValue(
0343: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0344: attrib);
0345: prop_disabled
0346: .setValue(
0347: Constants.PropertyDescriptor.CATEGORY,
0348: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0349:
0350: PropertyDescriptor prop_items = new PropertyDescriptor(
0351: "items", beanClass, "getItems", "setItems");
0352: prop_items.setDisplayName(resources
0353: .getString("RadioButtonGroup_items_DisplayName"));
0354: prop_items.setShortDescription(resources
0355: .getString("RadioButtonGroup_items_Description"));
0356: prop_items
0357: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0358: prop_items.setExpert(false);
0359: prop_items.setHidden(false);
0360: prop_items.setPreferred(false);
0361: attrib = new AttributeDescriptor("items", false, null, true);
0362: prop_items.setValue(
0363: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0364: attrib);
0365: prop_items
0366: .setValue(
0367: Constants.PropertyDescriptor.CATEGORY,
0368: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0369: prop_items
0370: .setValue(
0371: "bindingPanelClassNames",
0372: new Class[] {
0373: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindOptionsToDataProviderPanel.class,
0374: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0375:
0376: PropertyDescriptor prop_label = new PropertyDescriptor(
0377: "label", beanClass, "getLabel", "setLabel");
0378: prop_label.setDisplayName(resources
0379: .getString("RadioButtonGroup_label_DisplayName"));
0380: prop_label.setShortDescription(resources
0381: .getString("RadioButtonGroup_label_Description"));
0382: prop_label
0383: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0384: prop_label.setExpert(false);
0385: prop_label.setHidden(false);
0386: prop_label.setPreferred(false);
0387: attrib = new AttributeDescriptor("label", false, null, true);
0388: prop_label.setValue(
0389: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0390: attrib);
0391: prop_label
0392: .setValue(
0393: Constants.PropertyDescriptor.CATEGORY,
0394: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0395:
0396: PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0397: "labelLevel", beanClass, "getLabelLevel",
0398: "setLabelLevel");
0399: prop_labelLevel
0400: .setDisplayName(resources
0401: .getString("RadioButtonGroup_labelLevel_DisplayName"));
0402: prop_labelLevel
0403: .setShortDescription(resources
0404: .getString("RadioButtonGroup_labelLevel_Description"));
0405: prop_labelLevel
0406: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0407: prop_labelLevel.setExpert(false);
0408: prop_labelLevel.setHidden(false);
0409: prop_labelLevel.setPreferred(false);
0410: attrib = new AttributeDescriptor("labelLevel", false, "2",
0411: true);
0412: prop_labelLevel.setValue(
0413: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0414: attrib);
0415: prop_labelLevel
0416: .setValue(
0417: Constants.PropertyDescriptor.CATEGORY,
0418: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0419: prop_labelLevel
0420: .setValue(
0421: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0422: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0423:
0424: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0425: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0426: prop_onBlur.setDisplayName(resources
0427: .getString("RadioButtonGroup_onBlur_DisplayName"));
0428: prop_onBlur.setShortDescription(resources
0429: .getString("RadioButtonGroup_onBlur_Description"));
0430: prop_onBlur
0431: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0432: prop_onBlur.setExpert(false);
0433: prop_onBlur.setHidden(true);
0434: prop_onBlur.setPreferred(false);
0435: prop_onBlur
0436: .setValue(
0437: Constants.PropertyDescriptor.CATEGORY,
0438: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0439:
0440: PropertyDescriptor prop_onChange = new PropertyDescriptor(
0441: "onChange", beanClass, "getOnChange", "setOnChange");
0442: prop_onChange
0443: .setDisplayName(resources
0444: .getString("RadioButtonGroup_onChange_DisplayName"));
0445: prop_onChange
0446: .setShortDescription(resources
0447: .getString("RadioButtonGroup_onChange_Description"));
0448: prop_onChange
0449: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0450: prop_onChange.setExpert(false);
0451: prop_onChange.setHidden(true);
0452: prop_onChange.setPreferred(false);
0453: prop_onChange
0454: .setValue(
0455: Constants.PropertyDescriptor.CATEGORY,
0456: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0457:
0458: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0459: "onClick", beanClass, "getOnClick", "setOnClick");
0460: prop_onClick.setDisplayName(resources
0461: .getString("RadioButtonGroup_onClick_DisplayName"));
0462: prop_onClick.setShortDescription(resources
0463: .getString("RadioButtonGroup_onClick_Description"));
0464: prop_onClick
0465: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0466: prop_onClick.setExpert(false);
0467: prop_onClick.setHidden(false);
0468: prop_onClick.setPreferred(false);
0469: attrib = new AttributeDescriptor("onClick", false, null,
0470: true);
0471: prop_onClick.setValue(
0472: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0473: attrib);
0474: prop_onClick
0475: .setValue(
0476: Constants.PropertyDescriptor.CATEGORY,
0477: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0478:
0479: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0480: "onDblClick", beanClass, "getOnDblClick",
0481: "setOnDblClick");
0482: prop_onDblClick
0483: .setDisplayName(resources
0484: .getString("RadioButtonGroup_onDblClick_DisplayName"));
0485: prop_onDblClick
0486: .setShortDescription(resources
0487: .getString("RadioButtonGroup_onDblClick_Description"));
0488: prop_onDblClick
0489: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0490: prop_onDblClick.setExpert(false);
0491: prop_onDblClick.setHidden(false);
0492: prop_onDblClick.setPreferred(false);
0493: attrib = new AttributeDescriptor("onDblClick", false, null,
0494: true);
0495: prop_onDblClick.setValue(
0496: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0497: attrib);
0498: prop_onDblClick
0499: .setValue(
0500: Constants.PropertyDescriptor.CATEGORY,
0501: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0502:
0503: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0504: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0505: prop_onFocus.setDisplayName(resources
0506: .getString("RadioButtonGroup_onFocus_DisplayName"));
0507: prop_onFocus.setShortDescription(resources
0508: .getString("RadioButtonGroup_onFocus_Description"));
0509: prop_onFocus
0510: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0511: prop_onFocus.setExpert(false);
0512: prop_onFocus.setHidden(true);
0513: prop_onFocus.setPreferred(false);
0514: prop_onFocus
0515: .setValue(
0516: Constants.PropertyDescriptor.CATEGORY,
0517: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0518:
0519: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0520: "onKeyDown", beanClass, "getOnKeyDown",
0521: "setOnKeyDown");
0522: prop_onKeyDown
0523: .setDisplayName(resources
0524: .getString("RadioButtonGroup_onKeyDown_DisplayName"));
0525: prop_onKeyDown
0526: .setShortDescription(resources
0527: .getString("RadioButtonGroup_onKeyDown_Description"));
0528: prop_onKeyDown
0529: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0530: prop_onKeyDown.setExpert(false);
0531: prop_onKeyDown.setHidden(false);
0532: prop_onKeyDown.setPreferred(false);
0533: attrib = new AttributeDescriptor("onKeyDown", false, null,
0534: true);
0535: prop_onKeyDown.setValue(
0536: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0537: attrib);
0538: prop_onKeyDown
0539: .setValue(
0540: Constants.PropertyDescriptor.CATEGORY,
0541: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0542:
0543: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0544: "onKeyPress", beanClass, "getOnKeyPress",
0545: "setOnKeyPress");
0546: prop_onKeyPress
0547: .setDisplayName(resources
0548: .getString("RadioButtonGroup_onKeyPress_DisplayName"));
0549: prop_onKeyPress
0550: .setShortDescription(resources
0551: .getString("RadioButtonGroup_onKeyPress_Description"));
0552: prop_onKeyPress
0553: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0554: prop_onKeyPress.setExpert(false);
0555: prop_onKeyPress.setHidden(false);
0556: prop_onKeyPress.setPreferred(false);
0557: attrib = new AttributeDescriptor("onKeyPress", false, null,
0558: true);
0559: prop_onKeyPress.setValue(
0560: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0561: attrib);
0562: prop_onKeyPress
0563: .setValue(
0564: Constants.PropertyDescriptor.CATEGORY,
0565: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0566:
0567: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0568: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0569: prop_onKeyUp.setDisplayName(resources
0570: .getString("RadioButtonGroup_onKeyUp_DisplayName"));
0571: prop_onKeyUp.setShortDescription(resources
0572: .getString("RadioButtonGroup_onKeyUp_Description"));
0573: prop_onKeyUp
0574: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0575: prop_onKeyUp.setExpert(false);
0576: prop_onKeyUp.setHidden(false);
0577: prop_onKeyUp.setPreferred(false);
0578: attrib = new AttributeDescriptor("onKeyUp", false, null,
0579: true);
0580: prop_onKeyUp.setValue(
0581: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0582: attrib);
0583: prop_onKeyUp
0584: .setValue(
0585: Constants.PropertyDescriptor.CATEGORY,
0586: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0587:
0588: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0589: "onMouseDown", beanClass, "getOnMouseDown",
0590: "setOnMouseDown");
0591: prop_onMouseDown
0592: .setDisplayName(resources
0593: .getString("RadioButtonGroup_onMouseDown_DisplayName"));
0594: prop_onMouseDown
0595: .setShortDescription(resources
0596: .getString("RadioButtonGroup_onMouseDown_Description"));
0597: prop_onMouseDown
0598: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0599: prop_onMouseDown.setExpert(false);
0600: prop_onMouseDown.setHidden(false);
0601: prop_onMouseDown.setPreferred(false);
0602: attrib = new AttributeDescriptor("onMouseDown", false,
0603: null, true);
0604: prop_onMouseDown.setValue(
0605: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0606: attrib);
0607: prop_onMouseDown
0608: .setValue(
0609: Constants.PropertyDescriptor.CATEGORY,
0610: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0611:
0612: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0613: "onMouseMove", beanClass, "getOnMouseMove",
0614: "setOnMouseMove");
0615: prop_onMouseMove
0616: .setDisplayName(resources
0617: .getString("RadioButtonGroup_onMouseMove_DisplayName"));
0618: prop_onMouseMove
0619: .setShortDescription(resources
0620: .getString("RadioButtonGroup_onMouseMove_Description"));
0621: prop_onMouseMove
0622: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0623: prop_onMouseMove.setExpert(false);
0624: prop_onMouseMove.setHidden(false);
0625: prop_onMouseMove.setPreferred(false);
0626: attrib = new AttributeDescriptor("onMouseMove", false,
0627: null, true);
0628: prop_onMouseMove.setValue(
0629: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0630: attrib);
0631: prop_onMouseMove
0632: .setValue(
0633: Constants.PropertyDescriptor.CATEGORY,
0634: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0635:
0636: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0637: "onMouseOut", beanClass, "getOnMouseOut",
0638: "setOnMouseOut");
0639: prop_onMouseOut
0640: .setDisplayName(resources
0641: .getString("RadioButtonGroup_onMouseOut_DisplayName"));
0642: prop_onMouseOut
0643: .setShortDescription(resources
0644: .getString("RadioButtonGroup_onMouseOut_Description"));
0645: prop_onMouseOut
0646: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0647: prop_onMouseOut.setExpert(false);
0648: prop_onMouseOut.setHidden(false);
0649: prop_onMouseOut.setPreferred(false);
0650: attrib = new AttributeDescriptor("onMouseOut", false, null,
0651: true);
0652: prop_onMouseOut.setValue(
0653: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0654: attrib);
0655: prop_onMouseOut
0656: .setValue(
0657: Constants.PropertyDescriptor.CATEGORY,
0658: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0659:
0660: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0661: "onMouseOver", beanClass, "getOnMouseOver",
0662: "setOnMouseOver");
0663: prop_onMouseOver
0664: .setDisplayName(resources
0665: .getString("RadioButtonGroup_onMouseOver_DisplayName"));
0666: prop_onMouseOver
0667: .setShortDescription(resources
0668: .getString("RadioButtonGroup_onMouseOver_Description"));
0669: prop_onMouseOver
0670: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0671: prop_onMouseOver.setExpert(false);
0672: prop_onMouseOver.setHidden(false);
0673: prop_onMouseOver.setPreferred(false);
0674: attrib = new AttributeDescriptor("onMouseOver", false,
0675: null, true);
0676: prop_onMouseOver.setValue(
0677: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0678: attrib);
0679: prop_onMouseOver
0680: .setValue(
0681: Constants.PropertyDescriptor.CATEGORY,
0682: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0683:
0684: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0685: "onMouseUp", beanClass, "getOnMouseUp",
0686: "setOnMouseUp");
0687: prop_onMouseUp
0688: .setDisplayName(resources
0689: .getString("RadioButtonGroup_onMouseUp_DisplayName"));
0690: prop_onMouseUp
0691: .setShortDescription(resources
0692: .getString("RadioButtonGroup_onMouseUp_Description"));
0693: prop_onMouseUp
0694: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0695: prop_onMouseUp.setExpert(false);
0696: prop_onMouseUp.setHidden(false);
0697: prop_onMouseUp.setPreferred(false);
0698: attrib = new AttributeDescriptor("onMouseUp", false, null,
0699: true);
0700: prop_onMouseUp.setValue(
0701: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0702: attrib);
0703: prop_onMouseUp
0704: .setValue(
0705: Constants.PropertyDescriptor.CATEGORY,
0706: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0707:
0708: PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0709: "onSelect", beanClass, "getOnSelect", "setOnSelect");
0710: prop_onSelect
0711: .setDisplayName(resources
0712: .getString("RadioButtonGroup_onSelect_DisplayName"));
0713: prop_onSelect
0714: .setShortDescription(resources
0715: .getString("RadioButtonGroup_onSelect_Description"));
0716: prop_onSelect
0717: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0718: prop_onSelect.setExpert(false);
0719: prop_onSelect.setHidden(true);
0720: prop_onSelect.setPreferred(false);
0721: prop_onSelect
0722: .setValue(
0723: Constants.PropertyDescriptor.CATEGORY,
0724: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0725:
0726: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0727: "readOnly", beanClass, "isReadOnly", "setReadOnly");
0728: prop_readOnly
0729: .setDisplayName(resources
0730: .getString("RadioButtonGroup_readOnly_DisplayName"));
0731: prop_readOnly
0732: .setShortDescription(resources
0733: .getString("RadioButtonGroup_readOnly_Description"));
0734: prop_readOnly.setExpert(false);
0735: prop_readOnly.setHidden(false);
0736: prop_readOnly.setPreferred(false);
0737: attrib = new AttributeDescriptor("readOnly", false, null,
0738: true);
0739: prop_readOnly.setValue(
0740: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0741: attrib);
0742: prop_readOnly
0743: .setValue(
0744: Constants.PropertyDescriptor.CATEGORY,
0745: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0746:
0747: PropertyDescriptor prop_selected = new PropertyDescriptor(
0748: "selected", beanClass, "getSelected", "setSelected");
0749: prop_selected
0750: .setDisplayName(resources
0751: .getString("RadioButtonGroup_selected_DisplayName"));
0752: prop_selected
0753: .setShortDescription(resources
0754: .getString("RadioButtonGroup_selected_Description"));
0755: prop_selected
0756: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0757: prop_selected.setExpert(false);
0758: prop_selected.setHidden(false);
0759: prop_selected.setPreferred(false);
0760: attrib = new AttributeDescriptor("selected", false, null,
0761: true);
0762: prop_selected.setValue(
0763: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0764: attrib);
0765: prop_selected
0766: .setValue(
0767: Constants.PropertyDescriptor.CATEGORY,
0768: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0769: prop_selected
0770: .setValue(
0771: "bindingPanelClassNames",
0772: new Class[] {
0773: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToDataProviderPanel.class,
0774: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0775:
0776: PropertyDescriptor prop_style = new PropertyDescriptor(
0777: "style", beanClass, "getStyle", "setStyle");
0778: prop_style.setDisplayName(resources
0779: .getString("RadioButtonGroup_style_DisplayName"));
0780: prop_style.setShortDescription(resources
0781: .getString("RadioButtonGroup_style_Description"));
0782: prop_style
0783: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0784: prop_style.setExpert(false);
0785: prop_style.setHidden(false);
0786: prop_style.setPreferred(false);
0787: attrib = new AttributeDescriptor("style", false, null, true);
0788: prop_style.setValue(
0789: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0790: attrib);
0791: prop_style
0792: .setValue(
0793: Constants.PropertyDescriptor.CATEGORY,
0794: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0795:
0796: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0797: "styleClass", beanClass, "getStyleClass",
0798: "setStyleClass");
0799: prop_styleClass
0800: .setDisplayName(resources
0801: .getString("RadioButtonGroup_styleClass_DisplayName"));
0802: prop_styleClass
0803: .setShortDescription(resources
0804: .getString("RadioButtonGroup_styleClass_Description"));
0805: prop_styleClass
0806: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0807: prop_styleClass.setExpert(false);
0808: prop_styleClass.setHidden(false);
0809: prop_styleClass.setPreferred(false);
0810: attrib = new AttributeDescriptor("styleClass", false, null,
0811: true);
0812: prop_styleClass.setValue(
0813: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0814: attrib);
0815: prop_styleClass
0816: .setValue(
0817: Constants.PropertyDescriptor.CATEGORY,
0818: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0819:
0820: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0821: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0822: prop_tabIndex
0823: .setDisplayName(resources
0824: .getString("RadioButtonGroup_tabIndex_DisplayName"));
0825: prop_tabIndex
0826: .setShortDescription(resources
0827: .getString("RadioButtonGroup_tabIndex_Description"));
0828: prop_tabIndex
0829: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0830: prop_tabIndex.setExpert(false);
0831: prop_tabIndex.setHidden(false);
0832: prop_tabIndex.setPreferred(false);
0833: attrib = new AttributeDescriptor("tabIndex", false, null,
0834: true);
0835: prop_tabIndex.setValue(
0836: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0837: attrib);
0838: prop_tabIndex
0839: .setValue(
0840: Constants.PropertyDescriptor.CATEGORY,
0841: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0842: prop_tabIndex.setValue(
0843: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0844:
0845: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0846: "toolTip", beanClass, "getToolTip", "setToolTip");
0847: prop_toolTip.setDisplayName(resources
0848: .getString("RadioButtonGroup_toolTip_DisplayName"));
0849: prop_toolTip.setShortDescription(resources
0850: .getString("RadioButtonGroup_toolTip_Description"));
0851: prop_toolTip
0852: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0853: prop_toolTip.setExpert(false);
0854: prop_toolTip.setHidden(false);
0855: prop_toolTip.setPreferred(false);
0856: attrib = new AttributeDescriptor("toolTip", false, null,
0857: true);
0858: prop_toolTip.setValue(
0859: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0860: attrib);
0861: prop_toolTip
0862: .setValue(
0863: Constants.PropertyDescriptor.CATEGORY,
0864: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0865:
0866: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0867: "attributes", beanClass, "getAttributes", null);
0868: prop_attributes
0869: .setDisplayName(resources
0870: .getString("RadioButtonGroup_attributes_DisplayName"));
0871: prop_attributes
0872: .setShortDescription(resources
0873: .getString("RadioButtonGroup_attributes_Description"));
0874: prop_attributes.setExpert(false);
0875: prop_attributes.setHidden(true);
0876: prop_attributes.setPreferred(false);
0877: prop_attributes
0878: .setValue(
0879: Constants.PropertyDescriptor.CATEGORY,
0880: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0881:
0882: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0883: "childCount", beanClass, "getChildCount", null);
0884: prop_childCount
0885: .setDisplayName(resources
0886: .getString("RadioButtonGroup_childCount_DisplayName"));
0887: prop_childCount
0888: .setShortDescription(resources
0889: .getString("RadioButtonGroup_childCount_Description"));
0890: prop_childCount.setExpert(false);
0891: prop_childCount.setHidden(true);
0892: prop_childCount.setPreferred(false);
0893: prop_childCount
0894: .setValue(
0895: Constants.PropertyDescriptor.CATEGORY,
0896: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0897:
0898: PropertyDescriptor prop_children = new PropertyDescriptor(
0899: "children", beanClass, "getChildren", null);
0900: prop_children
0901: .setDisplayName(resources
0902: .getString("RadioButtonGroup_children_DisplayName"));
0903: prop_children
0904: .setShortDescription(resources
0905: .getString("RadioButtonGroup_children_Description"));
0906: prop_children.setExpert(false);
0907: prop_children.setHidden(true);
0908: prop_children.setPreferred(false);
0909: prop_children
0910: .setValue(
0911: Constants.PropertyDescriptor.CATEGORY,
0912: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0913:
0914: PropertyDescriptor prop_converter = new PropertyDescriptor(
0915: "converter", beanClass, "getConverter",
0916: "setConverter");
0917: prop_converter
0918: .setDisplayName(resources
0919: .getString("RadioButtonGroup_converter_DisplayName"));
0920: prop_converter
0921: .setShortDescription(resources
0922: .getString("RadioButtonGroup_converter_Description"));
0923: prop_converter
0924: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
0925: prop_converter.setExpert(false);
0926: prop_converter.setHidden(false);
0927: prop_converter.setPreferred(false);
0928: attrib = new AttributeDescriptor("converter", false, null,
0929: true);
0930: prop_converter.setValue(
0931: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0932: attrib);
0933: prop_converter
0934: .setValue(
0935: Constants.PropertyDescriptor.CATEGORY,
0936: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0937:
0938: PropertyDescriptor prop_facets = new PropertyDescriptor(
0939: "facets", beanClass, "getFacets", null);
0940: prop_facets.setDisplayName(resources
0941: .getString("RadioButtonGroup_facets_DisplayName"));
0942: prop_facets.setShortDescription(resources
0943: .getString("RadioButtonGroup_facets_Description"));
0944: prop_facets.setExpert(false);
0945: prop_facets.setHidden(true);
0946: prop_facets.setPreferred(false);
0947: prop_facets
0948: .setValue(
0949: Constants.PropertyDescriptor.CATEGORY,
0950: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0951:
0952: PropertyDescriptor prop_family = new PropertyDescriptor(
0953: "family", beanClass, "getFamily", null);
0954: prop_family.setDisplayName(resources
0955: .getString("RadioButtonGroup_family_DisplayName"));
0956: prop_family.setShortDescription(resources
0957: .getString("RadioButtonGroup_family_Description"));
0958: prop_family.setExpert(false);
0959: prop_family.setHidden(true);
0960: prop_family.setPreferred(false);
0961: prop_family
0962: .setValue(
0963: Constants.PropertyDescriptor.CATEGORY,
0964: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0965:
0966: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0967: beanClass, "getId", "setId");
0968: prop_id.setDisplayName(resources
0969: .getString("RadioButtonGroup_id_DisplayName"));
0970: prop_id.setShortDescription(resources
0971: .getString("RadioButtonGroup_id_Description"));
0972: prop_id.setExpert(false);
0973: prop_id.setHidden(true);
0974: prop_id.setPreferred(false);
0975: attrib = new AttributeDescriptor("id", false, null, true);
0976: prop_id.setValue(
0977: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0978: attrib);
0979: prop_id
0980: .setValue(
0981: Constants.PropertyDescriptor.CATEGORY,
0982: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0983:
0984: PropertyDescriptor prop_immediate = new PropertyDescriptor(
0985: "immediate", beanClass, "isImmediate",
0986: "setImmediate");
0987: prop_immediate
0988: .setDisplayName(resources
0989: .getString("RadioButtonGroup_immediate_DisplayName"));
0990: prop_immediate
0991: .setShortDescription(resources
0992: .getString("RadioButtonGroup_immediate_Description"));
0993: prop_immediate.setExpert(false);
0994: prop_immediate.setHidden(false);
0995: prop_immediate.setPreferred(false);
0996: attrib = new AttributeDescriptor("immediate", false, null,
0997: true);
0998: prop_immediate.setValue(
0999: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1000: attrib);
1001: prop_immediate
1002: .setValue(
1003: Constants.PropertyDescriptor.CATEGORY,
1004: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1005:
1006: PropertyDescriptor prop_localValue = new PropertyDescriptor(
1007: "localValue", beanClass, "getLocalValue", null);
1008: prop_localValue
1009: .setDisplayName(resources
1010: .getString("RadioButtonGroup_localValue_DisplayName"));
1011: prop_localValue
1012: .setShortDescription(resources
1013: .getString("RadioButtonGroup_localValue_Description"));
1014: prop_localValue.setExpert(false);
1015: prop_localValue.setHidden(true);
1016: prop_localValue.setPreferred(false);
1017: prop_localValue
1018: .setValue(
1019: Constants.PropertyDescriptor.CATEGORY,
1020: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1021:
1022: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1023: "localValueSet", beanClass, "isLocalValueSet",
1024: "setLocalValueSet");
1025: prop_localValueSet
1026: .setDisplayName(resources
1027: .getString("RadioButtonGroup_localValueSet_DisplayName"));
1028: prop_localValueSet
1029: .setShortDescription(resources
1030: .getString("RadioButtonGroup_localValueSet_Description"));
1031: prop_localValueSet.setExpert(false);
1032: prop_localValueSet.setHidden(true);
1033: prop_localValueSet.setPreferred(false);
1034: prop_localValueSet
1035: .setValue(
1036: Constants.PropertyDescriptor.CATEGORY,
1037: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1038:
1039: PropertyDescriptor prop_parent = new PropertyDescriptor(
1040: "parent", beanClass, "getParent", null);
1041: prop_parent.setDisplayName(resources
1042: .getString("RadioButtonGroup_parent_DisplayName"));
1043: prop_parent.setShortDescription(resources
1044: .getString("RadioButtonGroup_parent_Description"));
1045: prop_parent.setExpert(false);
1046: prop_parent.setHidden(true);
1047: prop_parent.setPreferred(false);
1048: prop_parent
1049: .setValue(
1050: Constants.PropertyDescriptor.CATEGORY,
1051: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1052:
1053: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1054: "rendered", beanClass, "isRendered", "setRendered");
1055: prop_rendered
1056: .setDisplayName(resources
1057: .getString("RadioButtonGroup_rendered_DisplayName"));
1058: prop_rendered
1059: .setShortDescription(resources
1060: .getString("RadioButtonGroup_rendered_Description"));
1061: prop_rendered.setExpert(false);
1062: prop_rendered.setHidden(false);
1063: prop_rendered.setPreferred(false);
1064: attrib = new AttributeDescriptor("rendered", false, null,
1065: true);
1066: prop_rendered.setValue(
1067: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1068: attrib);
1069: prop_rendered
1070: .setValue(
1071: Constants.PropertyDescriptor.CATEGORY,
1072: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1073:
1074: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1075: "rendererType", beanClass, "getRendererType",
1076: "setRendererType");
1077: prop_rendererType
1078: .setDisplayName(resources
1079: .getString("RadioButtonGroup_rendererType_DisplayName"));
1080: prop_rendererType
1081: .setShortDescription(resources
1082: .getString("RadioButtonGroup_rendererType_Description"));
1083: prop_rendererType.setExpert(false);
1084: prop_rendererType.setHidden(true);
1085: prop_rendererType.setPreferred(false);
1086: prop_rendererType
1087: .setValue(
1088: Constants.PropertyDescriptor.CATEGORY,
1089: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1090:
1091: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1092: "rendersChildren", beanClass, "getRendersChildren",
1093: null);
1094: prop_rendersChildren
1095: .setDisplayName(resources
1096: .getString("RadioButtonGroup_rendersChildren_DisplayName"));
1097: prop_rendersChildren
1098: .setShortDescription(resources
1099: .getString("RadioButtonGroup_rendersChildren_Description"));
1100: prop_rendersChildren.setExpert(false);
1101: prop_rendersChildren.setHidden(true);
1102: prop_rendersChildren.setPreferred(false);
1103: prop_rendersChildren
1104: .setValue(
1105: Constants.PropertyDescriptor.CATEGORY,
1106: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1107:
1108: PropertyDescriptor prop_required = new PropertyDescriptor(
1109: "required", beanClass, "isRequired", "setRequired");
1110: prop_required
1111: .setDisplayName(resources
1112: .getString("RadioButtonGroup_required_DisplayName"));
1113: prop_required
1114: .setShortDescription(resources
1115: .getString("RadioButtonGroup_required_Description"));
1116: prop_required.setExpert(false);
1117: prop_required.setHidden(false);
1118: prop_required.setPreferred(false);
1119: attrib = new AttributeDescriptor("required", false, null,
1120: true);
1121: prop_required.setValue(
1122: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1123: attrib);
1124: prop_required
1125: .setValue(
1126: Constants.PropertyDescriptor.CATEGORY,
1127: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1128:
1129: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1130: "submittedValue", beanClass, "getSubmittedValue",
1131: "setSubmittedValue");
1132: prop_submittedValue
1133: .setDisplayName(resources
1134: .getString("RadioButtonGroup_submittedValue_DisplayName"));
1135: prop_submittedValue
1136: .setShortDescription(resources
1137: .getString("RadioButtonGroup_submittedValue_Description"));
1138: prop_submittedValue.setExpert(false);
1139: prop_submittedValue.setHidden(true);
1140: prop_submittedValue.setPreferred(false);
1141: prop_submittedValue
1142: .setValue(
1143: Constants.PropertyDescriptor.CATEGORY,
1144: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1145:
1146: PropertyDescriptor prop_validator = new PropertyDescriptor(
1147: "validator", beanClass, "getValidator",
1148: "setValidator");
1149: prop_validator
1150: .setDisplayName(resources
1151: .getString("RadioButtonGroup_validator_DisplayName"));
1152: prop_validator
1153: .setShortDescription(resources
1154: .getString("RadioButtonGroup_validator_Description"));
1155: prop_validator
1156: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1157: prop_validator.setExpert(false);
1158: prop_validator.setHidden(false);
1159: prop_validator.setPreferred(false);
1160: attrib = new AttributeDescriptor("validator", false, null,
1161: true);
1162: prop_validator.setValue(
1163: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1164: attrib);
1165: prop_validator
1166: .setValue(
1167: Constants.PropertyDescriptor.CATEGORY,
1168: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1169:
1170: PropertyDescriptor prop_value = new PropertyDescriptor(
1171: "value", beanClass, "getValue", "setValue");
1172: prop_value.setDisplayName(resources
1173: .getString("RadioButtonGroup_value_DisplayName"));
1174: prop_value.setShortDescription(resources
1175: .getString("RadioButtonGroup_value_Description"));
1176: prop_value.setExpert(false);
1177: prop_value.setHidden(true);
1178: prop_value.setPreferred(false);
1179: prop_value
1180: .setValue(
1181: Constants.PropertyDescriptor.CATEGORY,
1182: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1183:
1184: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1185: "valueChangeListener", beanClass,
1186: "getValueChangeListener", "setValueChangeListener");
1187: prop_valueChangeListener
1188: .setDisplayName(resources
1189: .getString("RadioButtonGroup_valueChangeListener_DisplayName"));
1190: prop_valueChangeListener
1191: .setShortDescription(resources
1192: .getString("RadioButtonGroup_valueChangeListener_Description"));
1193: prop_valueChangeListener
1194: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1195: prop_valueChangeListener.setExpert(false);
1196: prop_valueChangeListener.setHidden(false);
1197: prop_valueChangeListener.setPreferred(false);
1198: attrib = new AttributeDescriptor("valueChangeListener",
1199: false, null, true);
1200: prop_valueChangeListener.setValue(
1201: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1202: attrib);
1203: prop_valueChangeListener
1204: .setValue(
1205: Constants.PropertyDescriptor.CATEGORY,
1206: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1207:
1208: propDescriptors = new PropertyDescriptor[] {
1209: prop_attributes, prop_childCount, prop_children,
1210: prop_columns, prop_converter, prop_disabled,
1211: prop_facets, prop_family, prop_id, prop_immediate,
1212: prop_items, prop_label, prop_labelLevel,
1213: prop_localValue, prop_localValueSet, prop_onBlur,
1214: prop_onChange, prop_onClick, prop_onDblClick,
1215: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1216: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1217: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1218: prop_onSelect, prop_parent, prop_readOnly,
1219: prop_rendered, prop_rendererType,
1220: prop_rendersChildren, prop_required, prop_selected,
1221: prop_style, prop_styleClass, prop_submittedValue,
1222: prop_tabIndex, prop_toolTip, prop_validator,
1223: prop_value, prop_valueChangeListener, prop_visible, };
1224: return propDescriptors;
1225:
1226: } catch (IntrospectionException e) {
1227: e.printStackTrace();
1228: return null;
1229: }
1230:
1231: }
1232:
1233: }
1234: //GEN-END:BeanInfo
|