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 CheckboxBeanInfoBase 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(), CheckboxBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>CheckboxBeanInfoBase</code>.</p>
0075: */
0076: public CheckboxBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.Checkbox.class;
0079: defaultPropertyName = "selectedValue";
0080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Checkbox_C16";
0081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Checkbox_C32";
0082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Checkbox_M16";
0083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Checkbox_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("Checkbox_DisplayName"));
0144: beanDescriptor.setShortDescription(resources
0145: .getString("Checkbox_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_checkbox");
0154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155: "checkbox");
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_checkbox_props");
0161: beanDescriptor.setValue(
0162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163: getCategoryDescriptors());
0164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165: "checkbox");
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("Checkbox_image_DisplayName"));
0227: facet_image.setShortDescription(resources
0228: .getString("Checkbox_image_Description"));
0229:
0230: FacetDescriptor facet_label = new FacetDescriptor("label");
0231: facet_label.setDisplayName(resources
0232: .getString("Checkbox_label_DisplayName"));
0233: facet_label.setShortDescription(resources
0234: .getString("Checkbox_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("Checkbox_labelLevel_DisplayName"));
0314: prop_labelLevel.setShortDescription(resources
0315: .getString("Checkbox_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("Checkbox_imageURL_DisplayName"));
0339: prop_imageURL.setShortDescription(resources
0340: .getString("Checkbox_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("Checkbox_items_DisplayName"));
0360: prop_items.setShortDescription(resources
0361: .getString("Checkbox_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("Checkbox_name_DisplayName"));
0382: prop_name.setShortDescription(resources
0383: .getString("Checkbox_name_Description"));
0384: prop_name
0385: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0386: prop_name.setExpert(false);
0387: prop_name.setHidden(true);
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("Checkbox_selected_DisplayName"));
0402: prop_selected.setShortDescription(resources
0403: .getString("Checkbox_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.setDisplayName(resources
0423: .getString("Checkbox_selectedValue_DisplayName"));
0424: prop_selectedValue.setShortDescription(resources
0425: .getString("Checkbox_selectedValue_Description"));
0426: prop_selectedValue
0427: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0428: prop_selectedValue.setExpert(false);
0429: prop_selectedValue.setHidden(false);
0430: prop_selectedValue.setPreferred(false);
0431: attrib = new AttributeDescriptor("selectedValue", false,
0432: null, true);
0433: prop_selectedValue.setValue(
0434: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0435: attrib);
0436: prop_selectedValue
0437: .setValue(
0438: Constants.PropertyDescriptor.CATEGORY,
0439: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0440:
0441: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0442: "disabled", beanClass, "isDisabled", "setDisabled");
0443: prop_disabled.setDisplayName(resources
0444: .getString("Checkbox_disabled_DisplayName"));
0445: prop_disabled.setShortDescription(resources
0446: .getString("Checkbox_disabled_Description"));
0447: prop_disabled.setExpert(false);
0448: prop_disabled.setHidden(false);
0449: prop_disabled.setPreferred(false);
0450: attrib = new AttributeDescriptor("disabled", false, null,
0451: true);
0452: prop_disabled.setValue(
0453: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0454: attrib);
0455: prop_disabled
0456: .setValue(
0457: Constants.PropertyDescriptor.CATEGORY,
0458: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0459:
0460: PropertyDescriptor prop_label = new PropertyDescriptor(
0461: "label", beanClass, "getLabel", "setLabel");
0462: prop_label.setDisplayName(resources
0463: .getString("Checkbox_label_DisplayName"));
0464: prop_label.setShortDescription(resources
0465: .getString("Checkbox_label_Description"));
0466: prop_label
0467: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0468: prop_label.setExpert(false);
0469: prop_label.setHidden(false);
0470: prop_label.setPreferred(false);
0471: attrib = new AttributeDescriptor("label", false, null, true);
0472: prop_label.setValue(
0473: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0474: attrib);
0475: prop_label
0476: .setValue(
0477: Constants.PropertyDescriptor.CATEGORY,
0478: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0479:
0480: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0481: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0482: prop_onBlur.setDisplayName(resources
0483: .getString("Checkbox_onBlur_DisplayName"));
0484: prop_onBlur.setShortDescription(resources
0485: .getString("Checkbox_onBlur_Description"));
0486: prop_onBlur
0487: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0488: prop_onBlur.setExpert(false);
0489: prop_onBlur.setHidden(false);
0490: prop_onBlur.setPreferred(false);
0491: attrib = new AttributeDescriptor("onBlur", false, null,
0492: true);
0493: prop_onBlur.setValue(
0494: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0495: attrib);
0496: prop_onBlur
0497: .setValue(
0498: Constants.PropertyDescriptor.CATEGORY,
0499: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0500:
0501: PropertyDescriptor prop_onChange = new PropertyDescriptor(
0502: "onChange", beanClass, "getOnChange", "setOnChange");
0503: prop_onChange.setDisplayName(resources
0504: .getString("Checkbox_onChange_DisplayName"));
0505: prop_onChange.setShortDescription(resources
0506: .getString("Checkbox_onChange_Description"));
0507: prop_onChange
0508: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0509: prop_onChange.setExpert(false);
0510: prop_onChange.setHidden(false);
0511: prop_onChange.setPreferred(false);
0512: attrib = new AttributeDescriptor("onChange", false, null,
0513: true);
0514: prop_onChange.setValue(
0515: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0516: attrib);
0517: prop_onChange
0518: .setValue(
0519: Constants.PropertyDescriptor.CATEGORY,
0520: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0521:
0522: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0523: "onClick", beanClass, "getOnClick", "setOnClick");
0524: prop_onClick.setDisplayName(resources
0525: .getString("Checkbox_onClick_DisplayName"));
0526: prop_onClick.setShortDescription(resources
0527: .getString("Checkbox_onClick_Description"));
0528: prop_onClick
0529: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0530: prop_onClick.setExpert(false);
0531: prop_onClick.setHidden(false);
0532: prop_onClick.setPreferred(false);
0533: attrib = new AttributeDescriptor("onClick", false, null,
0534: true);
0535: prop_onClick.setValue(
0536: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0537: attrib);
0538: prop_onClick
0539: .setValue(
0540: Constants.PropertyDescriptor.CATEGORY,
0541: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0542:
0543: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0544: "onDblClick", beanClass, "getOnDblClick",
0545: "setOnDblClick");
0546: prop_onDblClick.setDisplayName(resources
0547: .getString("Checkbox_onDblClick_DisplayName"));
0548: prop_onDblClick.setShortDescription(resources
0549: .getString("Checkbox_onDblClick_Description"));
0550: prop_onDblClick
0551: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0552: prop_onDblClick.setExpert(false);
0553: prop_onDblClick.setHidden(false);
0554: prop_onDblClick.setPreferred(false);
0555: attrib = new AttributeDescriptor("onDblClick", false, null,
0556: true);
0557: prop_onDblClick.setValue(
0558: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0559: attrib);
0560: prop_onDblClick
0561: .setValue(
0562: Constants.PropertyDescriptor.CATEGORY,
0563: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0564:
0565: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0566: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0567: prop_onFocus.setDisplayName(resources
0568: .getString("Checkbox_onFocus_DisplayName"));
0569: prop_onFocus.setShortDescription(resources
0570: .getString("Checkbox_onFocus_Description"));
0571: prop_onFocus
0572: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0573: prop_onFocus.setExpert(false);
0574: prop_onFocus.setHidden(false);
0575: prop_onFocus.setPreferred(false);
0576: attrib = new AttributeDescriptor("onFocus", false, null,
0577: true);
0578: prop_onFocus.setValue(
0579: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0580: attrib);
0581: prop_onFocus
0582: .setValue(
0583: Constants.PropertyDescriptor.CATEGORY,
0584: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0585:
0586: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0587: "onKeyDown", beanClass, "getOnKeyDown",
0588: "setOnKeyDown");
0589: prop_onKeyDown.setDisplayName(resources
0590: .getString("Checkbox_onKeyDown_DisplayName"));
0591: prop_onKeyDown.setShortDescription(resources
0592: .getString("Checkbox_onKeyDown_Description"));
0593: prop_onKeyDown
0594: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0595: prop_onKeyDown.setExpert(false);
0596: prop_onKeyDown.setHidden(false);
0597: prop_onKeyDown.setPreferred(false);
0598: attrib = new AttributeDescriptor("onKeyDown", false, null,
0599: true);
0600: prop_onKeyDown.setValue(
0601: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0602: attrib);
0603: prop_onKeyDown
0604: .setValue(
0605: Constants.PropertyDescriptor.CATEGORY,
0606: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0607:
0608: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0609: "onKeyPress", beanClass, "getOnKeyPress",
0610: "setOnKeyPress");
0611: prop_onKeyPress.setDisplayName(resources
0612: .getString("Checkbox_onKeyPress_DisplayName"));
0613: prop_onKeyPress.setShortDescription(resources
0614: .getString("Checkbox_onKeyPress_Description"));
0615: prop_onKeyPress
0616: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0617: prop_onKeyPress.setExpert(false);
0618: prop_onKeyPress.setHidden(false);
0619: prop_onKeyPress.setPreferred(false);
0620: attrib = new AttributeDescriptor("onKeyPress", false, null,
0621: true);
0622: prop_onKeyPress.setValue(
0623: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0624: attrib);
0625: prop_onKeyPress
0626: .setValue(
0627: Constants.PropertyDescriptor.CATEGORY,
0628: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0629:
0630: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0631: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0632: prop_onKeyUp.setDisplayName(resources
0633: .getString("Checkbox_onKeyUp_DisplayName"));
0634: prop_onKeyUp.setShortDescription(resources
0635: .getString("Checkbox_onKeyUp_Description"));
0636: prop_onKeyUp
0637: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0638: prop_onKeyUp.setExpert(false);
0639: prop_onKeyUp.setHidden(false);
0640: prop_onKeyUp.setPreferred(false);
0641: attrib = new AttributeDescriptor("onKeyUp", false, null,
0642: true);
0643: prop_onKeyUp.setValue(
0644: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0645: attrib);
0646: prop_onKeyUp
0647: .setValue(
0648: Constants.PropertyDescriptor.CATEGORY,
0649: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0650:
0651: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0652: "onMouseDown", beanClass, "getOnMouseDown",
0653: "setOnMouseDown");
0654: prop_onMouseDown.setDisplayName(resources
0655: .getString("Checkbox_onMouseDown_DisplayName"));
0656: prop_onMouseDown.setShortDescription(resources
0657: .getString("Checkbox_onMouseDown_Description"));
0658: prop_onMouseDown
0659: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0660: prop_onMouseDown.setExpert(false);
0661: prop_onMouseDown.setHidden(false);
0662: prop_onMouseDown.setPreferred(false);
0663: attrib = new AttributeDescriptor("onMouseDown", false,
0664: null, true);
0665: prop_onMouseDown.setValue(
0666: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0667: attrib);
0668: prop_onMouseDown
0669: .setValue(
0670: Constants.PropertyDescriptor.CATEGORY,
0671: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0672:
0673: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0674: "onMouseMove", beanClass, "getOnMouseMove",
0675: "setOnMouseMove");
0676: prop_onMouseMove.setDisplayName(resources
0677: .getString("Checkbox_onMouseMove_DisplayName"));
0678: prop_onMouseMove.setShortDescription(resources
0679: .getString("Checkbox_onMouseMove_Description"));
0680: prop_onMouseMove
0681: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0682: prop_onMouseMove.setExpert(false);
0683: prop_onMouseMove.setHidden(false);
0684: prop_onMouseMove.setPreferred(false);
0685: attrib = new AttributeDescriptor("onMouseMove", false,
0686: null, true);
0687: prop_onMouseMove.setValue(
0688: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0689: attrib);
0690: prop_onMouseMove
0691: .setValue(
0692: Constants.PropertyDescriptor.CATEGORY,
0693: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0694:
0695: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0696: "onMouseOut", beanClass, "getOnMouseOut",
0697: "setOnMouseOut");
0698: prop_onMouseOut.setDisplayName(resources
0699: .getString("Checkbox_onMouseOut_DisplayName"));
0700: prop_onMouseOut.setShortDescription(resources
0701: .getString("Checkbox_onMouseOut_Description"));
0702: prop_onMouseOut
0703: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0704: prop_onMouseOut.setExpert(false);
0705: prop_onMouseOut.setHidden(false);
0706: prop_onMouseOut.setPreferred(false);
0707: attrib = new AttributeDescriptor("onMouseOut", false, null,
0708: true);
0709: prop_onMouseOut.setValue(
0710: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0711: attrib);
0712: prop_onMouseOut
0713: .setValue(
0714: Constants.PropertyDescriptor.CATEGORY,
0715: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0716:
0717: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0718: "onMouseOver", beanClass, "getOnMouseOver",
0719: "setOnMouseOver");
0720: prop_onMouseOver.setDisplayName(resources
0721: .getString("Checkbox_onMouseOver_DisplayName"));
0722: prop_onMouseOver.setShortDescription(resources
0723: .getString("Checkbox_onMouseOver_Description"));
0724: prop_onMouseOver
0725: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0726: prop_onMouseOver.setExpert(false);
0727: prop_onMouseOver.setHidden(false);
0728: prop_onMouseOver.setPreferred(false);
0729: attrib = new AttributeDescriptor("onMouseOver", false,
0730: null, true);
0731: prop_onMouseOver.setValue(
0732: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0733: attrib);
0734: prop_onMouseOver
0735: .setValue(
0736: Constants.PropertyDescriptor.CATEGORY,
0737: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0738:
0739: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0740: "onMouseUp", beanClass, "getOnMouseUp",
0741: "setOnMouseUp");
0742: prop_onMouseUp.setDisplayName(resources
0743: .getString("Checkbox_onMouseUp_DisplayName"));
0744: prop_onMouseUp.setShortDescription(resources
0745: .getString("Checkbox_onMouseUp_Description"));
0746: prop_onMouseUp
0747: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0748: prop_onMouseUp.setExpert(false);
0749: prop_onMouseUp.setHidden(false);
0750: prop_onMouseUp.setPreferred(false);
0751: attrib = new AttributeDescriptor("onMouseUp", false, null,
0752: true);
0753: prop_onMouseUp.setValue(
0754: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0755: attrib);
0756: prop_onMouseUp
0757: .setValue(
0758: Constants.PropertyDescriptor.CATEGORY,
0759: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0760:
0761: PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0762: "onSelect", beanClass, "getOnSelect", "setOnSelect");
0763: prop_onSelect.setDisplayName(resources
0764: .getString("Checkbox_onSelect_DisplayName"));
0765: prop_onSelect.setShortDescription(resources
0766: .getString("Checkbox_onSelect_Description"));
0767: prop_onSelect
0768: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0769: prop_onSelect.setExpert(false);
0770: prop_onSelect.setHidden(true);
0771: prop_onSelect.setPreferred(false);
0772: prop_onSelect
0773: .setValue(
0774: Constants.PropertyDescriptor.CATEGORY,
0775: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0776:
0777: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0778: "readOnly", beanClass, "isReadOnly", "setReadOnly");
0779: prop_readOnly.setDisplayName(resources
0780: .getString("Checkbox_readOnly_DisplayName"));
0781: prop_readOnly.setShortDescription(resources
0782: .getString("Checkbox_readOnly_Description"));
0783: prop_readOnly.setExpert(false);
0784: prop_readOnly.setHidden(false);
0785: prop_readOnly.setPreferred(false);
0786: attrib = new AttributeDescriptor("readOnly", false, null,
0787: true);
0788: prop_readOnly.setValue(
0789: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0790: attrib);
0791: prop_readOnly
0792: .setValue(
0793: Constants.PropertyDescriptor.CATEGORY,
0794: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0795:
0796: PropertyDescriptor prop_style = new PropertyDescriptor(
0797: "style", beanClass, "getStyle", "setStyle");
0798: prop_style.setDisplayName(resources
0799: .getString("Checkbox_style_DisplayName"));
0800: prop_style.setShortDescription(resources
0801: .getString("Checkbox_style_Description"));
0802: prop_style
0803: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0804: prop_style.setExpert(false);
0805: prop_style.setHidden(false);
0806: prop_style.setPreferred(false);
0807: attrib = new AttributeDescriptor("style", false, null, true);
0808: prop_style.setValue(
0809: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0810: attrib);
0811: prop_style
0812: .setValue(
0813: Constants.PropertyDescriptor.CATEGORY,
0814: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0815:
0816: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0817: "styleClass", beanClass, "getStyleClass",
0818: "setStyleClass");
0819: prop_styleClass.setDisplayName(resources
0820: .getString("Checkbox_styleClass_DisplayName"));
0821: prop_styleClass.setShortDescription(resources
0822: .getString("Checkbox_styleClass_Description"));
0823: prop_styleClass
0824: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0825: prop_styleClass.setExpert(false);
0826: prop_styleClass.setHidden(false);
0827: prop_styleClass.setPreferred(false);
0828: attrib = new AttributeDescriptor("styleClass", false, null,
0829: true);
0830: prop_styleClass.setValue(
0831: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0832: attrib);
0833: prop_styleClass
0834: .setValue(
0835: Constants.PropertyDescriptor.CATEGORY,
0836: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0837:
0838: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0839: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0840: prop_tabIndex.setDisplayName(resources
0841: .getString("Checkbox_tabIndex_DisplayName"));
0842: prop_tabIndex.setShortDescription(resources
0843: .getString("Checkbox_tabIndex_Description"));
0844: prop_tabIndex
0845: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0846: prop_tabIndex.setExpert(false);
0847: prop_tabIndex.setHidden(false);
0848: prop_tabIndex.setPreferred(false);
0849: attrib = new AttributeDescriptor("tabIndex", false, null,
0850: true);
0851: prop_tabIndex.setValue(
0852: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0853: attrib);
0854: prop_tabIndex
0855: .setValue(
0856: Constants.PropertyDescriptor.CATEGORY,
0857: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0858: prop_tabIndex.setValue(
0859: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0860:
0861: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0862: "toolTip", beanClass, "getToolTip", "setToolTip");
0863: prop_toolTip.setDisplayName(resources
0864: .getString("Checkbox_toolTip_DisplayName"));
0865: prop_toolTip.setShortDescription(resources
0866: .getString("Checkbox_toolTip_Description"));
0867: prop_toolTip
0868: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0869: prop_toolTip.setExpert(false);
0870: prop_toolTip.setHidden(false);
0871: prop_toolTip.setPreferred(false);
0872: attrib = new AttributeDescriptor("toolTip", false, null,
0873: true);
0874: prop_toolTip.setValue(
0875: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0876: attrib);
0877: prop_toolTip
0878: .setValue(
0879: Constants.PropertyDescriptor.CATEGORY,
0880: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0881:
0882: PropertyDescriptor prop_visible = new PropertyDescriptor(
0883: "visible", beanClass, "isVisible", "setVisible");
0884: prop_visible.setDisplayName(resources
0885: .getString("Checkbox_visible_DisplayName"));
0886: prop_visible.setShortDescription(resources
0887: .getString("Checkbox_visible_Description"));
0888: prop_visible.setExpert(false);
0889: prop_visible.setHidden(false);
0890: prop_visible.setPreferred(false);
0891: attrib = new AttributeDescriptor("visible", false, "true",
0892: true);
0893: prop_visible.setValue(
0894: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0895: attrib);
0896: prop_visible
0897: .setValue(
0898: Constants.PropertyDescriptor.CATEGORY,
0899: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0900:
0901: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0902: "attributes", beanClass, "getAttributes", null);
0903: prop_attributes.setDisplayName(resources
0904: .getString("Checkbox_attributes_DisplayName"));
0905: prop_attributes.setShortDescription(resources
0906: .getString("Checkbox_attributes_Description"));
0907: prop_attributes.setExpert(false);
0908: prop_attributes.setHidden(true);
0909: prop_attributes.setPreferred(false);
0910: prop_attributes
0911: .setValue(
0912: Constants.PropertyDescriptor.CATEGORY,
0913: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0914:
0915: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0916: "childCount", beanClass, "getChildCount", null);
0917: prop_childCount.setDisplayName(resources
0918: .getString("Checkbox_childCount_DisplayName"));
0919: prop_childCount.setShortDescription(resources
0920: .getString("Checkbox_childCount_Description"));
0921: prop_childCount.setExpert(false);
0922: prop_childCount.setHidden(true);
0923: prop_childCount.setPreferred(false);
0924: prop_childCount
0925: .setValue(
0926: Constants.PropertyDescriptor.CATEGORY,
0927: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0928:
0929: PropertyDescriptor prop_children = new PropertyDescriptor(
0930: "children", beanClass, "getChildren", null);
0931: prop_children.setDisplayName(resources
0932: .getString("Checkbox_children_DisplayName"));
0933: prop_children.setShortDescription(resources
0934: .getString("Checkbox_children_Description"));
0935: prop_children.setExpert(false);
0936: prop_children.setHidden(true);
0937: prop_children.setPreferred(false);
0938: prop_children
0939: .setValue(
0940: Constants.PropertyDescriptor.CATEGORY,
0941: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0942:
0943: PropertyDescriptor prop_converter = new PropertyDescriptor(
0944: "converter", beanClass, "getConverter",
0945: "setConverter");
0946: prop_converter.setDisplayName(resources
0947: .getString("Checkbox_converter_DisplayName"));
0948: prop_converter.setShortDescription(resources
0949: .getString("Checkbox_converter_Description"));
0950: prop_converter
0951: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
0952: prop_converter.setExpert(false);
0953: prop_converter.setHidden(false);
0954: prop_converter.setPreferred(false);
0955: attrib = new AttributeDescriptor("converter", false, null,
0956: true);
0957: prop_converter.setValue(
0958: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0959: attrib);
0960: prop_converter
0961: .setValue(
0962: Constants.PropertyDescriptor.CATEGORY,
0963: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0964:
0965: PropertyDescriptor prop_facets = new PropertyDescriptor(
0966: "facets", beanClass, "getFacets", null);
0967: prop_facets.setDisplayName(resources
0968: .getString("Checkbox_facets_DisplayName"));
0969: prop_facets.setShortDescription(resources
0970: .getString("Checkbox_facets_Description"));
0971: prop_facets.setExpert(false);
0972: prop_facets.setHidden(true);
0973: prop_facets.setPreferred(false);
0974: prop_facets
0975: .setValue(
0976: Constants.PropertyDescriptor.CATEGORY,
0977: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0978:
0979: PropertyDescriptor prop_family = new PropertyDescriptor(
0980: "family", beanClass, "getFamily", null);
0981: prop_family.setDisplayName(resources
0982: .getString("Checkbox_family_DisplayName"));
0983: prop_family.setShortDescription(resources
0984: .getString("Checkbox_family_Description"));
0985: prop_family.setExpert(false);
0986: prop_family.setHidden(true);
0987: prop_family.setPreferred(false);
0988: prop_family
0989: .setValue(
0990: Constants.PropertyDescriptor.CATEGORY,
0991: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0992:
0993: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0994: beanClass, "getId", "setId");
0995: prop_id.setDisplayName(resources
0996: .getString("Checkbox_id_DisplayName"));
0997: prop_id.setShortDescription(resources
0998: .getString("Checkbox_id_Description"));
0999: prop_id.setExpert(false);
1000: prop_id.setHidden(true);
1001: prop_id.setPreferred(false);
1002: attrib = new AttributeDescriptor("id", false, null, true);
1003: prop_id.setValue(
1004: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1005: attrib);
1006: prop_id
1007: .setValue(
1008: Constants.PropertyDescriptor.CATEGORY,
1009: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1010:
1011: PropertyDescriptor prop_immediate = new PropertyDescriptor(
1012: "immediate", beanClass, "isImmediate",
1013: "setImmediate");
1014: prop_immediate.setDisplayName(resources
1015: .getString("Checkbox_immediate_DisplayName"));
1016: prop_immediate.setShortDescription(resources
1017: .getString("Checkbox_immediate_Description"));
1018: prop_immediate.setExpert(false);
1019: prop_immediate.setHidden(false);
1020: prop_immediate.setPreferred(false);
1021: attrib = new AttributeDescriptor("immediate", false, null,
1022: true);
1023: prop_immediate.setValue(
1024: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1025: attrib);
1026: prop_immediate
1027: .setValue(
1028: Constants.PropertyDescriptor.CATEGORY,
1029: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1030:
1031: PropertyDescriptor prop_localValue = new PropertyDescriptor(
1032: "localValue", beanClass, "getLocalValue", null);
1033: prop_localValue.setDisplayName(resources
1034: .getString("Checkbox_localValue_DisplayName"));
1035: prop_localValue.setShortDescription(resources
1036: .getString("Checkbox_localValue_Description"));
1037: prop_localValue.setExpert(false);
1038: prop_localValue.setHidden(true);
1039: prop_localValue.setPreferred(false);
1040: prop_localValue
1041: .setValue(
1042: Constants.PropertyDescriptor.CATEGORY,
1043: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1044:
1045: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1046: "localValueSet", beanClass, "isLocalValueSet",
1047: "setLocalValueSet");
1048: prop_localValueSet.setDisplayName(resources
1049: .getString("Checkbox_localValueSet_DisplayName"));
1050: prop_localValueSet.setShortDescription(resources
1051: .getString("Checkbox_localValueSet_Description"));
1052: prop_localValueSet.setExpert(false);
1053: prop_localValueSet.setHidden(true);
1054: prop_localValueSet.setPreferred(false);
1055: prop_localValueSet
1056: .setValue(
1057: Constants.PropertyDescriptor.CATEGORY,
1058: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1059:
1060: PropertyDescriptor prop_parent = new PropertyDescriptor(
1061: "parent", beanClass, "getParent", null);
1062: prop_parent.setDisplayName(resources
1063: .getString("Checkbox_parent_DisplayName"));
1064: prop_parent.setShortDescription(resources
1065: .getString("Checkbox_parent_Description"));
1066: prop_parent.setExpert(false);
1067: prop_parent.setHidden(true);
1068: prop_parent.setPreferred(false);
1069: prop_parent
1070: .setValue(
1071: Constants.PropertyDescriptor.CATEGORY,
1072: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1073:
1074: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1075: "rendered", beanClass, "isRendered", "setRendered");
1076: prop_rendered.setDisplayName(resources
1077: .getString("Checkbox_rendered_DisplayName"));
1078: prop_rendered.setShortDescription(resources
1079: .getString("Checkbox_rendered_Description"));
1080: prop_rendered.setExpert(false);
1081: prop_rendered.setHidden(false);
1082: prop_rendered.setPreferred(false);
1083: attrib = new AttributeDescriptor("rendered", false, null,
1084: true);
1085: prop_rendered.setValue(
1086: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1087: attrib);
1088: prop_rendered
1089: .setValue(
1090: Constants.PropertyDescriptor.CATEGORY,
1091: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1092:
1093: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1094: "rendererType", beanClass, "getRendererType",
1095: "setRendererType");
1096: prop_rendererType.setDisplayName(resources
1097: .getString("Checkbox_rendererType_DisplayName"));
1098: prop_rendererType.setShortDescription(resources
1099: .getString("Checkbox_rendererType_Description"));
1100: prop_rendererType.setExpert(false);
1101: prop_rendererType.setHidden(true);
1102: prop_rendererType.setPreferred(false);
1103: prop_rendererType
1104: .setValue(
1105: Constants.PropertyDescriptor.CATEGORY,
1106: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1107:
1108: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1109: "rendersChildren", beanClass, "getRendersChildren",
1110: null);
1111: prop_rendersChildren.setDisplayName(resources
1112: .getString("Checkbox_rendersChildren_DisplayName"));
1113: prop_rendersChildren.setShortDescription(resources
1114: .getString("Checkbox_rendersChildren_Description"));
1115: prop_rendersChildren.setExpert(false);
1116: prop_rendersChildren.setHidden(true);
1117: prop_rendersChildren.setPreferred(false);
1118: prop_rendersChildren
1119: .setValue(
1120: Constants.PropertyDescriptor.CATEGORY,
1121: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1122:
1123: PropertyDescriptor prop_required = new PropertyDescriptor(
1124: "required", beanClass, "isRequired", "setRequired");
1125: prop_required.setDisplayName(resources
1126: .getString("Checkbox_required_DisplayName"));
1127: prop_required.setShortDescription(resources
1128: .getString("Checkbox_required_Description"));
1129: prop_required.setExpert(false);
1130: prop_required.setHidden(true);
1131: prop_required.setPreferred(false);
1132: prop_required
1133: .setValue(
1134: Constants.PropertyDescriptor.CATEGORY,
1135: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1136:
1137: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1138: "submittedValue", beanClass, "getSubmittedValue",
1139: "setSubmittedValue");
1140: prop_submittedValue.setDisplayName(resources
1141: .getString("Checkbox_submittedValue_DisplayName"));
1142: prop_submittedValue.setShortDescription(resources
1143: .getString("Checkbox_submittedValue_Description"));
1144: prop_submittedValue.setExpert(false);
1145: prop_submittedValue.setHidden(true);
1146: prop_submittedValue.setPreferred(false);
1147: prop_submittedValue
1148: .setValue(
1149: Constants.PropertyDescriptor.CATEGORY,
1150: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1151:
1152: PropertyDescriptor prop_validator = new PropertyDescriptor(
1153: "validator", beanClass, "getValidator",
1154: "setValidator");
1155: prop_validator.setDisplayName(resources
1156: .getString("Checkbox_validator_DisplayName"));
1157: prop_validator.setShortDescription(resources
1158: .getString("Checkbox_validator_Description"));
1159: prop_validator
1160: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1161: prop_validator.setExpert(false);
1162: prop_validator.setHidden(false);
1163: prop_validator.setPreferred(false);
1164: attrib = new AttributeDescriptor("validator", false, null,
1165: true);
1166: prop_validator.setValue(
1167: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1168: attrib);
1169: prop_validator
1170: .setValue(
1171: Constants.PropertyDescriptor.CATEGORY,
1172: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1173:
1174: PropertyDescriptor prop_value = new PropertyDescriptor(
1175: "value", beanClass, "getValue", "setValue");
1176: prop_value.setDisplayName(resources
1177: .getString("Checkbox_value_DisplayName"));
1178: prop_value.setShortDescription(resources
1179: .getString("Checkbox_value_Description"));
1180: prop_value.setExpert(false);
1181: prop_value.setHidden(true);
1182: prop_value.setPreferred(false);
1183: prop_value
1184: .setValue(
1185: Constants.PropertyDescriptor.CATEGORY,
1186: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1187:
1188: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1189: "valueChangeListener", beanClass,
1190: "getValueChangeListener", "setValueChangeListener");
1191: prop_valueChangeListener
1192: .setDisplayName(resources
1193: .getString("Checkbox_valueChangeListener_DisplayName"));
1194: prop_valueChangeListener
1195: .setShortDescription(resources
1196: .getString("Checkbox_valueChangeListener_Description"));
1197: prop_valueChangeListener
1198: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1199: prop_valueChangeListener.setExpert(false);
1200: prop_valueChangeListener.setHidden(false);
1201: prop_valueChangeListener.setPreferred(false);
1202: attrib = new AttributeDescriptor("valueChangeListener",
1203: false, null, true);
1204: prop_valueChangeListener.setValue(
1205: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1206: attrib);
1207: prop_valueChangeListener
1208: .setValue(
1209: Constants.PropertyDescriptor.CATEGORY,
1210: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1211:
1212: propDescriptors = new PropertyDescriptor[] {
1213: prop_attributes, prop_childCount, prop_children,
1214: prop_converter, prop_disabled, prop_facets,
1215: prop_family, prop_id, prop_imageURL,
1216: prop_immediate, prop_items, prop_label,
1217: prop_labelLevel, prop_localValue,
1218: prop_localValueSet, prop_name, prop_onBlur,
1219: prop_onChange, prop_onClick, prop_onDblClick,
1220: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1221: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1222: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1223: prop_onSelect, prop_parent, prop_readOnly,
1224: prop_rendered, prop_rendererType,
1225: prop_rendersChildren, prop_required, prop_selected,
1226: prop_selectedValue, prop_style, prop_styleClass,
1227: prop_submittedValue, prop_tabIndex, prop_toolTip,
1228: prop_validator, prop_value,
1229: prop_valueChangeListener, prop_visible, };
1230: return propDescriptors;
1231:
1232: } catch (IntrospectionException e) {
1233: e.printStackTrace();
1234: return null;
1235: }
1236:
1237: }
1238:
1239: }
1240: //GEN-END:BeanInfo
|