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 RadioButtonBeanInfoBase 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(), RadioButtonBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>RadioButtonBeanInfoBase</code>.</p>
0075: */
0076: public RadioButtonBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.RadioButton.class;
0079: defaultPropertyName = "selectedValue";
0080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButton_C16";
0081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButton_C32";
0082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButton_M16";
0083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/RadioButton_M32";
0084:
0085: }
0086:
0087: /**
0088: * <p>The bean class that this BeanInfo represents.
0089: */
0090: protected Class beanClass;
0091:
0092: /**
0093: * <p>The cached BeanDescriptor.</p>
0094: */
0095: protected BeanDescriptor beanDescriptor;
0096:
0097: /**
0098: * <p>The index of the default property.</p>
0099: */
0100: protected int defaultPropertyIndex = -2;
0101:
0102: /**
0103: * <p>The name of the default property.</p>
0104: */
0105: protected String defaultPropertyName;
0106:
0107: /**
0108: * <p>The 16x16 color icon.</p>
0109: */
0110: protected String iconFileName_C16;
0111:
0112: /**
0113: * <p>The 32x32 color icon.</p>
0114: */
0115: protected String iconFileName_C32;
0116:
0117: /**
0118: * <p>The 16x16 monochrome icon.</p>
0119: */
0120: protected String iconFileName_M16;
0121:
0122: /**
0123: * <p>The 32x32 monochrome icon.</p>
0124: */
0125: protected String iconFileName_M32;
0126:
0127: /**
0128: * <p>The cached property descriptors.</p>
0129: */
0130: protected PropertyDescriptor[] propDescriptors;
0131:
0132: /**
0133: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
0134: */
0135: public BeanDescriptor getBeanDescriptor() {
0136:
0137: if (beanDescriptor != null) {
0138: return beanDescriptor;
0139: }
0140:
0141: beanDescriptor = new BeanDescriptor(beanClass);
0142: beanDescriptor.setDisplayName(resources
0143: .getString("RadioButton_DisplayName"));
0144: beanDescriptor.setShortDescription(resources
0145: .getString("RadioButton_Description"));
0146: beanDescriptor.setExpert(false);
0147: beanDescriptor.setHidden(false);
0148: beanDescriptor.setPreferred(false);
0149: beanDescriptor.setValue(
0150: Constants.BeanDescriptor.FACET_DESCRIPTORS,
0151: getFacetDescriptors());
0152: beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
0153: "projrave_ui_elements_palette_bh_radiobutton");
0154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155: "radioButton");
0156: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0157: Boolean.TRUE);
0158: beanDescriptor
0159: .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
0160: "projrave_ui_elements_palette_bh_propsheets_bh_radiobutton_props");
0161: beanDescriptor.setValue(
0162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163: getCategoryDescriptors());
0164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165: "radioButton");
0166: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0167: "ui");
0168: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0169: "http://www.sun.com/web/ui");
0170:
0171: return beanDescriptor;
0172:
0173: }
0174:
0175: /**
0176: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0177: */
0178: private CategoryDescriptor[] getCategoryDescriptors() {
0179:
0180: return com.sun.rave.designtime.base.CategoryDescriptors
0181: .getDefaultCategoryDescriptors();
0182:
0183: }
0184:
0185: /**
0186: * <p>Return the index of the default property, or
0187: * -1 if there is no default property.</p>
0188: */
0189: public int getDefaultPropertyIndex() {
0190:
0191: if (defaultPropertyIndex > -2) {
0192: return defaultPropertyIndex;
0193: } else {
0194: if (defaultPropertyName == null) {
0195: defaultPropertyIndex = -1;
0196: } else {
0197: PropertyDescriptor pd[] = getPropertyDescriptors();
0198: for (int i = 0; i < pd.length; i++) {
0199: if (defaultPropertyName.equals(pd[i].getName())) {
0200: defaultPropertyIndex = i;
0201: break;
0202: }
0203: }
0204: }
0205: }
0206: return defaultPropertyIndex;
0207: }
0208:
0209: /**
0210: * <p>The cached facet descriptors.</p>
0211: */
0212: protected FacetDescriptor[] facetDescriptors;
0213:
0214: /**
0215: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0216: */
0217: public FacetDescriptor[] getFacetDescriptors() {
0218:
0219: if (facetDescriptors != null) {
0220: return facetDescriptors;
0221: }
0222: try {
0223:
0224: FacetDescriptor facet_image = new FacetDescriptor("image");
0225: facet_image.setDisplayName(resources
0226: .getString("RadioButton_image_DisplayName"));
0227: facet_image.setShortDescription(resources
0228: .getString("RadioButton_image_Description"));
0229:
0230: FacetDescriptor facet_label = new FacetDescriptor("label");
0231: facet_label.setDisplayName(resources
0232: .getString("RadioButton_label_DisplayName"));
0233: facet_label.setShortDescription(resources
0234: .getString("RadioButton_label_Description"));
0235:
0236: facetDescriptors = new FacetDescriptor[] { facet_image,
0237: facet_label, };
0238: return facetDescriptors;
0239:
0240: } catch (RuntimeException e) {
0241: System.out.println(e.getMessage());
0242: e.printStackTrace(System.out);
0243: throw e;
0244: }
0245:
0246: }
0247:
0248: /**
0249: * <p>Return the specified image (if any)
0250: * for this component class.</p>
0251: */
0252: public Image getIcon(int kind) {
0253:
0254: String name;
0255: switch (kind) {
0256: case ICON_COLOR_16x16:
0257: name = iconFileName_C16;
0258: break;
0259: case ICON_COLOR_32x32:
0260: name = iconFileName_C32;
0261: break;
0262: case ICON_MONO_16x16:
0263: name = iconFileName_M16;
0264: break;
0265: case ICON_MONO_32x32:
0266: name = iconFileName_M32;
0267: break;
0268: default:
0269: name = null;
0270: break;
0271: }
0272: if (name == null) {
0273: return null;
0274: }
0275:
0276: Image image = loadImage(name + ".png");
0277: if (image == null) {
0278: image = loadImage(name + ".gif");
0279: }
0280: return image;
0281:
0282: }
0283:
0284: /**
0285: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0286: */
0287: private java.lang.Class loadClass(java.lang.String name) {
0288:
0289: try {
0290: return Class.forName(name);
0291: } catch (ClassNotFoundException e) {
0292: throw new RuntimeException(e);
0293: }
0294:
0295: }
0296:
0297: /**
0298: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0299: */
0300: public PropertyDescriptor[] getPropertyDescriptors() {
0301:
0302: if (propDescriptors != null) {
0303: return propDescriptors;
0304: }
0305: AttributeDescriptor attrib = null;
0306:
0307: try {
0308:
0309: PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0310: "labelLevel", beanClass, "getLabelLevel",
0311: "setLabelLevel");
0312: prop_labelLevel.setDisplayName(resources
0313: .getString("RadioButton_labelLevel_DisplayName"));
0314: prop_labelLevel.setShortDescription(resources
0315: .getString("RadioButton_labelLevel_Description"));
0316: prop_labelLevel
0317: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0318: prop_labelLevel.setExpert(false);
0319: prop_labelLevel.setHidden(false);
0320: prop_labelLevel.setPreferred(false);
0321: attrib = new AttributeDescriptor("labelLevel", false, "3",
0322: true);
0323: prop_labelLevel.setValue(
0324: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0325: attrib);
0326: prop_labelLevel
0327: .setValue(
0328: Constants.PropertyDescriptor.CATEGORY,
0329: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0330: prop_labelLevel
0331: .setValue(
0332: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0333: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0334:
0335: PropertyDescriptor prop_imageURL = new PropertyDescriptor(
0336: "imageURL", beanClass, "getImageURL", "setImageURL");
0337: prop_imageURL.setDisplayName(resources
0338: .getString("RadioButton_imageURL_DisplayName"));
0339: prop_imageURL.setShortDescription(resources
0340: .getString("RadioButton_imageURL_Description"));
0341: prop_imageURL
0342: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.ImageUrlPropertyEditor"));
0343: prop_imageURL.setExpert(false);
0344: prop_imageURL.setHidden(false);
0345: prop_imageURL.setPreferred(false);
0346: attrib = new AttributeDescriptor("imageURL", false, null,
0347: true);
0348: prop_imageURL.setValue(
0349: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0350: attrib);
0351: prop_imageURL
0352: .setValue(
0353: Constants.PropertyDescriptor.CATEGORY,
0354: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0355:
0356: PropertyDescriptor prop_items = new PropertyDescriptor(
0357: "items", beanClass, "getItems", "setItems");
0358: prop_items.setDisplayName(resources
0359: .getString("RadioButton_items_DisplayName"));
0360: prop_items.setShortDescription(resources
0361: .getString("RadioButton_items_Description"));
0362: prop_items
0363: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0364: prop_items.setExpert(false);
0365: prop_items.setHidden(true);
0366: prop_items.setPreferred(false);
0367: prop_items
0368: .setValue(
0369: Constants.PropertyDescriptor.CATEGORY,
0370: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0371: prop_items
0372: .setValue(
0373: "bindingPanelClassNames",
0374: new Class[] {
0375: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToDataProviderPanel.class,
0376: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0377:
0378: PropertyDescriptor prop_name = new PropertyDescriptor(
0379: "name", beanClass, "getName", "setName");
0380: prop_name.setDisplayName(resources
0381: .getString("RadioButton_name_DisplayName"));
0382: prop_name.setShortDescription(resources
0383: .getString("RadioButton_name_Description"));
0384: prop_name
0385: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0386: prop_name.setExpert(false);
0387: prop_name.setHidden(false);
0388: prop_name.setPreferred(false);
0389: attrib = new AttributeDescriptor("name", false, null, true);
0390: prop_name.setValue(
0391: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0392: attrib);
0393: prop_name
0394: .setValue(
0395: Constants.PropertyDescriptor.CATEGORY,
0396: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0397:
0398: PropertyDescriptor prop_selected = new PropertyDescriptor(
0399: "selected", beanClass, "getSelected", "setSelected");
0400: prop_selected.setDisplayName(resources
0401: .getString("RadioButton_selected_DisplayName"));
0402: prop_selected.setShortDescription(resources
0403: .getString("RadioButton_selected_Description"));
0404: prop_selected
0405: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.RbCbSelectedPropertyEditor"));
0406: prop_selected.setExpert(false);
0407: prop_selected.setHidden(false);
0408: prop_selected.setPreferred(false);
0409: attrib = new AttributeDescriptor("selected", false, null,
0410: true);
0411: prop_selected.setValue(
0412: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0413: attrib);
0414: prop_selected
0415: .setValue(
0416: Constants.PropertyDescriptor.CATEGORY,
0417: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0418:
0419: PropertyDescriptor prop_selectedValue = new PropertyDescriptor(
0420: "selectedValue", beanClass, "getSelectedValue",
0421: "setSelectedValue");
0422: prop_selectedValue
0423: .setDisplayName(resources
0424: .getString("RadioButton_selectedValue_DisplayName"));
0425: prop_selectedValue
0426: .setShortDescription(resources
0427: .getString("RadioButton_selectedValue_Description"));
0428: prop_selectedValue
0429: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0430: prop_selectedValue.setExpert(false);
0431: prop_selectedValue.setHidden(false);
0432: prop_selectedValue.setPreferred(false);
0433: attrib = new AttributeDescriptor("selectedValue", false,
0434: null, true);
0435: prop_selectedValue.setValue(
0436: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0437: attrib);
0438: prop_selectedValue
0439: .setValue(
0440: Constants.PropertyDescriptor.CATEGORY,
0441: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0442:
0443: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0444: "disabled", beanClass, "isDisabled", "setDisabled");
0445: prop_disabled.setDisplayName(resources
0446: .getString("RadioButton_disabled_DisplayName"));
0447: prop_disabled.setShortDescription(resources
0448: .getString("RadioButton_disabled_Description"));
0449: prop_disabled.setExpert(false);
0450: prop_disabled.setHidden(false);
0451: prop_disabled.setPreferred(false);
0452: attrib = new AttributeDescriptor("disabled", false, null,
0453: true);
0454: prop_disabled.setValue(
0455: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0456: attrib);
0457: prop_disabled
0458: .setValue(
0459: Constants.PropertyDescriptor.CATEGORY,
0460: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0461:
0462: PropertyDescriptor prop_label = new PropertyDescriptor(
0463: "label", beanClass, "getLabel", "setLabel");
0464: prop_label.setDisplayName(resources
0465: .getString("RadioButton_label_DisplayName"));
0466: prop_label.setShortDescription(resources
0467: .getString("RadioButton_label_Description"));
0468: prop_label
0469: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0470: prop_label.setExpert(false);
0471: prop_label.setHidden(false);
0472: prop_label.setPreferred(false);
0473: attrib = new AttributeDescriptor("label", false, null, true);
0474: prop_label.setValue(
0475: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0476: attrib);
0477: prop_label
0478: .setValue(
0479: Constants.PropertyDescriptor.CATEGORY,
0480: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0481:
0482: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0483: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0484: prop_onBlur.setDisplayName(resources
0485: .getString("RadioButton_onBlur_DisplayName"));
0486: prop_onBlur.setShortDescription(resources
0487: .getString("RadioButton_onBlur_Description"));
0488: prop_onBlur
0489: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0490: prop_onBlur.setExpert(false);
0491: prop_onBlur.setHidden(false);
0492: prop_onBlur.setPreferred(false);
0493: attrib = new AttributeDescriptor("onBlur", false, null,
0494: true);
0495: prop_onBlur.setValue(
0496: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0497: attrib);
0498: prop_onBlur
0499: .setValue(
0500: Constants.PropertyDescriptor.CATEGORY,
0501: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0502:
0503: PropertyDescriptor prop_onChange = new PropertyDescriptor(
0504: "onChange", beanClass, "getOnChange", "setOnChange");
0505: prop_onChange.setDisplayName(resources
0506: .getString("RadioButton_onChange_DisplayName"));
0507: prop_onChange.setShortDescription(resources
0508: .getString("RadioButton_onChange_Description"));
0509: prop_onChange
0510: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0511: prop_onChange.setExpert(false);
0512: prop_onChange.setHidden(false);
0513: prop_onChange.setPreferred(false);
0514: attrib = new AttributeDescriptor("onChange", false, null,
0515: true);
0516: prop_onChange.setValue(
0517: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0518: attrib);
0519: prop_onChange
0520: .setValue(
0521: Constants.PropertyDescriptor.CATEGORY,
0522: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0523:
0524: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0525: "onClick", beanClass, "getOnClick", "setOnClick");
0526: prop_onClick.setDisplayName(resources
0527: .getString("RadioButton_onClick_DisplayName"));
0528: prop_onClick.setShortDescription(resources
0529: .getString("RadioButton_onClick_Description"));
0530: prop_onClick
0531: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0532: prop_onClick.setExpert(false);
0533: prop_onClick.setHidden(false);
0534: prop_onClick.setPreferred(false);
0535: attrib = new AttributeDescriptor("onClick", false, null,
0536: true);
0537: prop_onClick.setValue(
0538: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0539: attrib);
0540: prop_onClick
0541: .setValue(
0542: Constants.PropertyDescriptor.CATEGORY,
0543: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0544:
0545: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0546: "onDblClick", beanClass, "getOnDblClick",
0547: "setOnDblClick");
0548: prop_onDblClick.setDisplayName(resources
0549: .getString("RadioButton_onDblClick_DisplayName"));
0550: prop_onDblClick.setShortDescription(resources
0551: .getString("RadioButton_onDblClick_Description"));
0552: prop_onDblClick
0553: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0554: prop_onDblClick.setExpert(false);
0555: prop_onDblClick.setHidden(false);
0556: prop_onDblClick.setPreferred(false);
0557: attrib = new AttributeDescriptor("onDblClick", false, null,
0558: true);
0559: prop_onDblClick.setValue(
0560: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0561: attrib);
0562: prop_onDblClick
0563: .setValue(
0564: Constants.PropertyDescriptor.CATEGORY,
0565: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0566:
0567: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0568: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0569: prop_onFocus.setDisplayName(resources
0570: .getString("RadioButton_onFocus_DisplayName"));
0571: prop_onFocus.setShortDescription(resources
0572: .getString("RadioButton_onFocus_Description"));
0573: prop_onFocus
0574: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0575: prop_onFocus.setExpert(false);
0576: prop_onFocus.setHidden(false);
0577: prop_onFocus.setPreferred(false);
0578: attrib = new AttributeDescriptor("onFocus", false, null,
0579: true);
0580: prop_onFocus.setValue(
0581: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0582: attrib);
0583: prop_onFocus
0584: .setValue(
0585: Constants.PropertyDescriptor.CATEGORY,
0586: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0587:
0588: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0589: "onKeyDown", beanClass, "getOnKeyDown",
0590: "setOnKeyDown");
0591: prop_onKeyDown.setDisplayName(resources
0592: .getString("RadioButton_onKeyDown_DisplayName"));
0593: prop_onKeyDown.setShortDescription(resources
0594: .getString("RadioButton_onKeyDown_Description"));
0595: prop_onKeyDown
0596: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0597: prop_onKeyDown.setExpert(false);
0598: prop_onKeyDown.setHidden(false);
0599: prop_onKeyDown.setPreferred(false);
0600: attrib = new AttributeDescriptor("onKeyDown", false, null,
0601: true);
0602: prop_onKeyDown.setValue(
0603: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0604: attrib);
0605: prop_onKeyDown
0606: .setValue(
0607: Constants.PropertyDescriptor.CATEGORY,
0608: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0609:
0610: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0611: "onKeyPress", beanClass, "getOnKeyPress",
0612: "setOnKeyPress");
0613: prop_onKeyPress.setDisplayName(resources
0614: .getString("RadioButton_onKeyPress_DisplayName"));
0615: prop_onKeyPress.setShortDescription(resources
0616: .getString("RadioButton_onKeyPress_Description"));
0617: prop_onKeyPress
0618: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0619: prop_onKeyPress.setExpert(false);
0620: prop_onKeyPress.setHidden(false);
0621: prop_onKeyPress.setPreferred(false);
0622: attrib = new AttributeDescriptor("onKeyPress", false, null,
0623: true);
0624: prop_onKeyPress.setValue(
0625: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0626: attrib);
0627: prop_onKeyPress
0628: .setValue(
0629: Constants.PropertyDescriptor.CATEGORY,
0630: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0631:
0632: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0633: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0634: prop_onKeyUp.setDisplayName(resources
0635: .getString("RadioButton_onKeyUp_DisplayName"));
0636: prop_onKeyUp.setShortDescription(resources
0637: .getString("RadioButton_onKeyUp_Description"));
0638: prop_onKeyUp
0639: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0640: prop_onKeyUp.setExpert(false);
0641: prop_onKeyUp.setHidden(false);
0642: prop_onKeyUp.setPreferred(false);
0643: attrib = new AttributeDescriptor("onKeyUp", false, null,
0644: true);
0645: prop_onKeyUp.setValue(
0646: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0647: attrib);
0648: prop_onKeyUp
0649: .setValue(
0650: Constants.PropertyDescriptor.CATEGORY,
0651: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0652:
0653: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0654: "onMouseDown", beanClass, "getOnMouseDown",
0655: "setOnMouseDown");
0656: prop_onMouseDown.setDisplayName(resources
0657: .getString("RadioButton_onMouseDown_DisplayName"));
0658: prop_onMouseDown.setShortDescription(resources
0659: .getString("RadioButton_onMouseDown_Description"));
0660: prop_onMouseDown
0661: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0662: prop_onMouseDown.setExpert(false);
0663: prop_onMouseDown.setHidden(false);
0664: prop_onMouseDown.setPreferred(false);
0665: attrib = new AttributeDescriptor("onMouseDown", false,
0666: null, true);
0667: prop_onMouseDown.setValue(
0668: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0669: attrib);
0670: prop_onMouseDown
0671: .setValue(
0672: Constants.PropertyDescriptor.CATEGORY,
0673: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0674:
0675: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0676: "onMouseMove", beanClass, "getOnMouseMove",
0677: "setOnMouseMove");
0678: prop_onMouseMove.setDisplayName(resources
0679: .getString("RadioButton_onMouseMove_DisplayName"));
0680: prop_onMouseMove.setShortDescription(resources
0681: .getString("RadioButton_onMouseMove_Description"));
0682: prop_onMouseMove
0683: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0684: prop_onMouseMove.setExpert(false);
0685: prop_onMouseMove.setHidden(false);
0686: prop_onMouseMove.setPreferred(false);
0687: attrib = new AttributeDescriptor("onMouseMove", false,
0688: null, true);
0689: prop_onMouseMove.setValue(
0690: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0691: attrib);
0692: prop_onMouseMove
0693: .setValue(
0694: Constants.PropertyDescriptor.CATEGORY,
0695: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0696:
0697: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0698: "onMouseOut", beanClass, "getOnMouseOut",
0699: "setOnMouseOut");
0700: prop_onMouseOut.setDisplayName(resources
0701: .getString("RadioButton_onMouseOut_DisplayName"));
0702: prop_onMouseOut.setShortDescription(resources
0703: .getString("RadioButton_onMouseOut_Description"));
0704: prop_onMouseOut
0705: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0706: prop_onMouseOut.setExpert(false);
0707: prop_onMouseOut.setHidden(false);
0708: prop_onMouseOut.setPreferred(false);
0709: attrib = new AttributeDescriptor("onMouseOut", false, null,
0710: true);
0711: prop_onMouseOut.setValue(
0712: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0713: attrib);
0714: prop_onMouseOut
0715: .setValue(
0716: Constants.PropertyDescriptor.CATEGORY,
0717: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0718:
0719: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0720: "onMouseOver", beanClass, "getOnMouseOver",
0721: "setOnMouseOver");
0722: prop_onMouseOver.setDisplayName(resources
0723: .getString("RadioButton_onMouseOver_DisplayName"));
0724: prop_onMouseOver.setShortDescription(resources
0725: .getString("RadioButton_onMouseOver_Description"));
0726: prop_onMouseOver
0727: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0728: prop_onMouseOver.setExpert(false);
0729: prop_onMouseOver.setHidden(false);
0730: prop_onMouseOver.setPreferred(false);
0731: attrib = new AttributeDescriptor("onMouseOver", false,
0732: null, true);
0733: prop_onMouseOver.setValue(
0734: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0735: attrib);
0736: prop_onMouseOver
0737: .setValue(
0738: Constants.PropertyDescriptor.CATEGORY,
0739: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0740:
0741: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0742: "onMouseUp", beanClass, "getOnMouseUp",
0743: "setOnMouseUp");
0744: prop_onMouseUp.setDisplayName(resources
0745: .getString("RadioButton_onMouseUp_DisplayName"));
0746: prop_onMouseUp.setShortDescription(resources
0747: .getString("RadioButton_onMouseUp_Description"));
0748: prop_onMouseUp
0749: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0750: prop_onMouseUp.setExpert(false);
0751: prop_onMouseUp.setHidden(false);
0752: prop_onMouseUp.setPreferred(false);
0753: attrib = new AttributeDescriptor("onMouseUp", false, null,
0754: true);
0755: prop_onMouseUp.setValue(
0756: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0757: attrib);
0758: prop_onMouseUp
0759: .setValue(
0760: Constants.PropertyDescriptor.CATEGORY,
0761: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0762:
0763: PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0764: "onSelect", beanClass, "getOnSelect", "setOnSelect");
0765: prop_onSelect.setDisplayName(resources
0766: .getString("RadioButton_onSelect_DisplayName"));
0767: prop_onSelect.setShortDescription(resources
0768: .getString("RadioButton_onSelect_Description"));
0769: prop_onSelect
0770: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0771: prop_onSelect.setExpert(false);
0772: prop_onSelect.setHidden(true);
0773: prop_onSelect.setPreferred(false);
0774: prop_onSelect
0775: .setValue(
0776: Constants.PropertyDescriptor.CATEGORY,
0777: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0778:
0779: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0780: "readOnly", beanClass, "isReadOnly", "setReadOnly");
0781: prop_readOnly.setDisplayName(resources
0782: .getString("RadioButton_readOnly_DisplayName"));
0783: prop_readOnly.setShortDescription(resources
0784: .getString("RadioButton_readOnly_Description"));
0785: prop_readOnly.setExpert(false);
0786: prop_readOnly.setHidden(false);
0787: prop_readOnly.setPreferred(false);
0788: attrib = new AttributeDescriptor("readOnly", false, null,
0789: true);
0790: prop_readOnly.setValue(
0791: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0792: attrib);
0793: prop_readOnly
0794: .setValue(
0795: Constants.PropertyDescriptor.CATEGORY,
0796: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0797:
0798: PropertyDescriptor prop_style = new PropertyDescriptor(
0799: "style", beanClass, "getStyle", "setStyle");
0800: prop_style.setDisplayName(resources
0801: .getString("RadioButton_style_DisplayName"));
0802: prop_style.setShortDescription(resources
0803: .getString("RadioButton_style_Description"));
0804: prop_style
0805: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0806: prop_style.setExpert(false);
0807: prop_style.setHidden(false);
0808: prop_style.setPreferred(false);
0809: attrib = new AttributeDescriptor("style", false, null, true);
0810: prop_style.setValue(
0811: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0812: attrib);
0813: prop_style
0814: .setValue(
0815: Constants.PropertyDescriptor.CATEGORY,
0816: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0817:
0818: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0819: "styleClass", beanClass, "getStyleClass",
0820: "setStyleClass");
0821: prop_styleClass.setDisplayName(resources
0822: .getString("RadioButton_styleClass_DisplayName"));
0823: prop_styleClass.setShortDescription(resources
0824: .getString("RadioButton_styleClass_Description"));
0825: prop_styleClass
0826: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0827: prop_styleClass.setExpert(false);
0828: prop_styleClass.setHidden(false);
0829: prop_styleClass.setPreferred(false);
0830: attrib = new AttributeDescriptor("styleClass", false, null,
0831: true);
0832: prop_styleClass.setValue(
0833: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0834: attrib);
0835: prop_styleClass
0836: .setValue(
0837: Constants.PropertyDescriptor.CATEGORY,
0838: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0839:
0840: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0841: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0842: prop_tabIndex.setDisplayName(resources
0843: .getString("RadioButton_tabIndex_DisplayName"));
0844: prop_tabIndex.setShortDescription(resources
0845: .getString("RadioButton_tabIndex_Description"));
0846: prop_tabIndex
0847: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0848: prop_tabIndex.setExpert(false);
0849: prop_tabIndex.setHidden(false);
0850: prop_tabIndex.setPreferred(false);
0851: attrib = new AttributeDescriptor("tabIndex", false, null,
0852: true);
0853: prop_tabIndex.setValue(
0854: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0855: attrib);
0856: prop_tabIndex
0857: .setValue(
0858: Constants.PropertyDescriptor.CATEGORY,
0859: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0860: prop_tabIndex.setValue(
0861: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0862:
0863: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0864: "toolTip", beanClass, "getToolTip", "setToolTip");
0865: prop_toolTip.setDisplayName(resources
0866: .getString("RadioButton_toolTip_DisplayName"));
0867: prop_toolTip.setShortDescription(resources
0868: .getString("RadioButton_toolTip_Description"));
0869: prop_toolTip
0870: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0871: prop_toolTip.setExpert(false);
0872: prop_toolTip.setHidden(false);
0873: prop_toolTip.setPreferred(false);
0874: attrib = new AttributeDescriptor("toolTip", false, null,
0875: true);
0876: prop_toolTip.setValue(
0877: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0878: attrib);
0879: prop_toolTip
0880: .setValue(
0881: Constants.PropertyDescriptor.CATEGORY,
0882: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0883:
0884: PropertyDescriptor prop_visible = new PropertyDescriptor(
0885: "visible", beanClass, "isVisible", "setVisible");
0886: prop_visible.setDisplayName(resources
0887: .getString("RadioButton_visible_DisplayName"));
0888: prop_visible.setShortDescription(resources
0889: .getString("RadioButton_visible_Description"));
0890: prop_visible.setExpert(false);
0891: prop_visible.setHidden(false);
0892: prop_visible.setPreferred(false);
0893: attrib = new AttributeDescriptor("visible", false, "true",
0894: true);
0895: prop_visible.setValue(
0896: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0897: attrib);
0898: prop_visible
0899: .setValue(
0900: Constants.PropertyDescriptor.CATEGORY,
0901: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0902:
0903: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0904: "attributes", beanClass, "getAttributes", null);
0905: prop_attributes.setDisplayName(resources
0906: .getString("RadioButton_attributes_DisplayName"));
0907: prop_attributes.setShortDescription(resources
0908: .getString("RadioButton_attributes_Description"));
0909: prop_attributes.setExpert(false);
0910: prop_attributes.setHidden(true);
0911: prop_attributes.setPreferred(false);
0912: prop_attributes
0913: .setValue(
0914: Constants.PropertyDescriptor.CATEGORY,
0915: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0916:
0917: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0918: "childCount", beanClass, "getChildCount", null);
0919: prop_childCount.setDisplayName(resources
0920: .getString("RadioButton_childCount_DisplayName"));
0921: prop_childCount.setShortDescription(resources
0922: .getString("RadioButton_childCount_Description"));
0923: prop_childCount.setExpert(false);
0924: prop_childCount.setHidden(true);
0925: prop_childCount.setPreferred(false);
0926: prop_childCount
0927: .setValue(
0928: Constants.PropertyDescriptor.CATEGORY,
0929: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0930:
0931: PropertyDescriptor prop_children = new PropertyDescriptor(
0932: "children", beanClass, "getChildren", null);
0933: prop_children.setDisplayName(resources
0934: .getString("RadioButton_children_DisplayName"));
0935: prop_children.setShortDescription(resources
0936: .getString("RadioButton_children_Description"));
0937: prop_children.setExpert(false);
0938: prop_children.setHidden(true);
0939: prop_children.setPreferred(false);
0940: prop_children
0941: .setValue(
0942: Constants.PropertyDescriptor.CATEGORY,
0943: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0944:
0945: PropertyDescriptor prop_converter = new PropertyDescriptor(
0946: "converter", beanClass, "getConverter",
0947: "setConverter");
0948: prop_converter.setDisplayName(resources
0949: .getString("RadioButton_converter_DisplayName"));
0950: prop_converter.setShortDescription(resources
0951: .getString("RadioButton_converter_Description"));
0952: prop_converter
0953: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
0954: prop_converter.setExpert(false);
0955: prop_converter.setHidden(false);
0956: prop_converter.setPreferred(false);
0957: attrib = new AttributeDescriptor("converter", false, null,
0958: true);
0959: prop_converter.setValue(
0960: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0961: attrib);
0962: prop_converter
0963: .setValue(
0964: Constants.PropertyDescriptor.CATEGORY,
0965: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0966:
0967: PropertyDescriptor prop_facets = new PropertyDescriptor(
0968: "facets", beanClass, "getFacets", null);
0969: prop_facets.setDisplayName(resources
0970: .getString("RadioButton_facets_DisplayName"));
0971: prop_facets.setShortDescription(resources
0972: .getString("RadioButton_facets_Description"));
0973: prop_facets.setExpert(false);
0974: prop_facets.setHidden(true);
0975: prop_facets.setPreferred(false);
0976: prop_facets
0977: .setValue(
0978: Constants.PropertyDescriptor.CATEGORY,
0979: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0980:
0981: PropertyDescriptor prop_family = new PropertyDescriptor(
0982: "family", beanClass, "getFamily", null);
0983: prop_family.setDisplayName(resources
0984: .getString("RadioButton_family_DisplayName"));
0985: prop_family.setShortDescription(resources
0986: .getString("RadioButton_family_Description"));
0987: prop_family.setExpert(false);
0988: prop_family.setHidden(true);
0989: prop_family.setPreferred(false);
0990: prop_family
0991: .setValue(
0992: Constants.PropertyDescriptor.CATEGORY,
0993: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0994:
0995: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0996: beanClass, "getId", "setId");
0997: prop_id.setDisplayName(resources
0998: .getString("RadioButton_id_DisplayName"));
0999: prop_id.setShortDescription(resources
1000: .getString("RadioButton_id_Description"));
1001: prop_id.setExpert(false);
1002: prop_id.setHidden(true);
1003: prop_id.setPreferred(false);
1004: attrib = new AttributeDescriptor("id", false, null, true);
1005: prop_id.setValue(
1006: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1007: attrib);
1008: prop_id
1009: .setValue(
1010: Constants.PropertyDescriptor.CATEGORY,
1011: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1012:
1013: PropertyDescriptor prop_immediate = new PropertyDescriptor(
1014: "immediate", beanClass, "isImmediate",
1015: "setImmediate");
1016: prop_immediate.setDisplayName(resources
1017: .getString("RadioButton_immediate_DisplayName"));
1018: prop_immediate.setShortDescription(resources
1019: .getString("RadioButton_immediate_Description"));
1020: prop_immediate.setExpert(false);
1021: prop_immediate.setHidden(false);
1022: prop_immediate.setPreferred(false);
1023: attrib = new AttributeDescriptor("immediate", false, null,
1024: true);
1025: prop_immediate.setValue(
1026: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1027: attrib);
1028: prop_immediate
1029: .setValue(
1030: Constants.PropertyDescriptor.CATEGORY,
1031: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1032:
1033: PropertyDescriptor prop_localValue = new PropertyDescriptor(
1034: "localValue", beanClass, "getLocalValue", null);
1035: prop_localValue.setDisplayName(resources
1036: .getString("RadioButton_localValue_DisplayName"));
1037: prop_localValue.setShortDescription(resources
1038: .getString("RadioButton_localValue_Description"));
1039: prop_localValue.setExpert(false);
1040: prop_localValue.setHidden(true);
1041: prop_localValue.setPreferred(false);
1042: prop_localValue
1043: .setValue(
1044: Constants.PropertyDescriptor.CATEGORY,
1045: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1046:
1047: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1048: "localValueSet", beanClass, "isLocalValueSet",
1049: "setLocalValueSet");
1050: prop_localValueSet
1051: .setDisplayName(resources
1052: .getString("RadioButton_localValueSet_DisplayName"));
1053: prop_localValueSet
1054: .setShortDescription(resources
1055: .getString("RadioButton_localValueSet_Description"));
1056: prop_localValueSet.setExpert(false);
1057: prop_localValueSet.setHidden(true);
1058: prop_localValueSet.setPreferred(false);
1059: prop_localValueSet
1060: .setValue(
1061: Constants.PropertyDescriptor.CATEGORY,
1062: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1063:
1064: PropertyDescriptor prop_parent = new PropertyDescriptor(
1065: "parent", beanClass, "getParent", null);
1066: prop_parent.setDisplayName(resources
1067: .getString("RadioButton_parent_DisplayName"));
1068: prop_parent.setShortDescription(resources
1069: .getString("RadioButton_parent_Description"));
1070: prop_parent.setExpert(false);
1071: prop_parent.setHidden(true);
1072: prop_parent.setPreferred(false);
1073: prop_parent
1074: .setValue(
1075: Constants.PropertyDescriptor.CATEGORY,
1076: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1077:
1078: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1079: "rendered", beanClass, "isRendered", "setRendered");
1080: prop_rendered.setDisplayName(resources
1081: .getString("RadioButton_rendered_DisplayName"));
1082: prop_rendered.setShortDescription(resources
1083: .getString("RadioButton_rendered_Description"));
1084: prop_rendered.setExpert(false);
1085: prop_rendered.setHidden(false);
1086: prop_rendered.setPreferred(false);
1087: attrib = new AttributeDescriptor("rendered", false, null,
1088: true);
1089: prop_rendered.setValue(
1090: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1091: attrib);
1092: prop_rendered
1093: .setValue(
1094: Constants.PropertyDescriptor.CATEGORY,
1095: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1096:
1097: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1098: "rendererType", beanClass, "getRendererType",
1099: "setRendererType");
1100: prop_rendererType.setDisplayName(resources
1101: .getString("RadioButton_rendererType_DisplayName"));
1102: prop_rendererType.setShortDescription(resources
1103: .getString("RadioButton_rendererType_Description"));
1104: prop_rendererType.setExpert(false);
1105: prop_rendererType.setHidden(true);
1106: prop_rendererType.setPreferred(false);
1107: prop_rendererType
1108: .setValue(
1109: Constants.PropertyDescriptor.CATEGORY,
1110: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1111:
1112: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1113: "rendersChildren", beanClass, "getRendersChildren",
1114: null);
1115: prop_rendersChildren
1116: .setDisplayName(resources
1117: .getString("RadioButton_rendersChildren_DisplayName"));
1118: prop_rendersChildren
1119: .setShortDescription(resources
1120: .getString("RadioButton_rendersChildren_Description"));
1121: prop_rendersChildren.setExpert(false);
1122: prop_rendersChildren.setHidden(true);
1123: prop_rendersChildren.setPreferred(false);
1124: prop_rendersChildren
1125: .setValue(
1126: Constants.PropertyDescriptor.CATEGORY,
1127: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1128:
1129: PropertyDescriptor prop_required = new PropertyDescriptor(
1130: "required", beanClass, "isRequired", "setRequired");
1131: prop_required.setDisplayName(resources
1132: .getString("RadioButton_required_DisplayName"));
1133: prop_required.setShortDescription(resources
1134: .getString("RadioButton_required_Description"));
1135: prop_required.setExpert(false);
1136: prop_required.setHidden(true);
1137: prop_required.setPreferred(false);
1138: prop_required
1139: .setValue(
1140: Constants.PropertyDescriptor.CATEGORY,
1141: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1142:
1143: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1144: "submittedValue", beanClass, "getSubmittedValue",
1145: "setSubmittedValue");
1146: prop_submittedValue
1147: .setDisplayName(resources
1148: .getString("RadioButton_submittedValue_DisplayName"));
1149: prop_submittedValue
1150: .setShortDescription(resources
1151: .getString("RadioButton_submittedValue_Description"));
1152: prop_submittedValue.setExpert(false);
1153: prop_submittedValue.setHidden(true);
1154: prop_submittedValue.setPreferred(false);
1155: prop_submittedValue
1156: .setValue(
1157: Constants.PropertyDescriptor.CATEGORY,
1158: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1159:
1160: PropertyDescriptor prop_validator = new PropertyDescriptor(
1161: "validator", beanClass, "getValidator",
1162: "setValidator");
1163: prop_validator.setDisplayName(resources
1164: .getString("RadioButton_validator_DisplayName"));
1165: prop_validator.setShortDescription(resources
1166: .getString("RadioButton_validator_Description"));
1167: prop_validator
1168: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1169: prop_validator.setExpert(false);
1170: prop_validator.setHidden(false);
1171: prop_validator.setPreferred(false);
1172: attrib = new AttributeDescriptor("validator", false, null,
1173: true);
1174: prop_validator.setValue(
1175: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1176: attrib);
1177: prop_validator
1178: .setValue(
1179: Constants.PropertyDescriptor.CATEGORY,
1180: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1181:
1182: PropertyDescriptor prop_value = new PropertyDescriptor(
1183: "value", beanClass, "getValue", "setValue");
1184: prop_value.setDisplayName(resources
1185: .getString("RadioButton_value_DisplayName"));
1186: prop_value.setShortDescription(resources
1187: .getString("RadioButton_value_Description"));
1188: prop_value.setExpert(false);
1189: prop_value.setHidden(true);
1190: prop_value.setPreferred(false);
1191: prop_value
1192: .setValue(
1193: Constants.PropertyDescriptor.CATEGORY,
1194: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1195:
1196: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1197: "valueChangeListener", beanClass,
1198: "getValueChangeListener", "setValueChangeListener");
1199: prop_valueChangeListener
1200: .setDisplayName(resources
1201: .getString("RadioButton_valueChangeListener_DisplayName"));
1202: prop_valueChangeListener
1203: .setShortDescription(resources
1204: .getString("RadioButton_valueChangeListener_Description"));
1205: prop_valueChangeListener
1206: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1207: prop_valueChangeListener.setExpert(false);
1208: prop_valueChangeListener.setHidden(false);
1209: prop_valueChangeListener.setPreferred(false);
1210: attrib = new AttributeDescriptor("valueChangeListener",
1211: false, null, true);
1212: prop_valueChangeListener.setValue(
1213: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1214: attrib);
1215: prop_valueChangeListener
1216: .setValue(
1217: Constants.PropertyDescriptor.CATEGORY,
1218: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1219:
1220: propDescriptors = new PropertyDescriptor[] {
1221: prop_attributes, prop_childCount, prop_children,
1222: prop_converter, prop_disabled, prop_facets,
1223: prop_family, prop_id, prop_imageURL,
1224: prop_immediate, prop_items, prop_label,
1225: prop_labelLevel, prop_localValue,
1226: prop_localValueSet, prop_name, prop_onBlur,
1227: prop_onChange, prop_onClick, prop_onDblClick,
1228: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1229: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1230: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1231: prop_onSelect, prop_parent, prop_readOnly,
1232: prop_rendered, prop_rendererType,
1233: prop_rendersChildren, prop_required, prop_selected,
1234: prop_selectedValue, prop_style, prop_styleClass,
1235: prop_submittedValue, prop_tabIndex, prop_toolTip,
1236: prop_validator, prop_value,
1237: prop_valueChangeListener, prop_visible, };
1238: return propDescriptors;
1239:
1240: } catch (IntrospectionException e) {
1241: e.printStackTrace();
1242: return null;
1243: }
1244:
1245: }
1246:
1247: }
1248: //GEN-END:BeanInfo
|