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 TextAreaBeanInfoBase 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(), TextAreaBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>TextAreaBeanInfoBase</code>.</p>
0075: */
0076: public TextAreaBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.TextArea.class;
0079: defaultPropertyName = "text";
0080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextArea_C16";
0081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextArea_C32";
0082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextArea_M16";
0083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextArea_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("TextArea_DisplayName"));
0144: beanDescriptor.setShortDescription(resources
0145: .getString("TextArea_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_text_area");
0154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155: "textArea");
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_text_area_props");
0161: beanDescriptor.setValue(
0162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163: getCategoryDescriptors());
0164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165: "textArea");
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_label = new FacetDescriptor("label");
0225: facet_label.setDisplayName(resources
0226: .getString("TextArea_label_DisplayName"));
0227: facet_label.setShortDescription(resources
0228: .getString("TextArea_label_Description"));
0229:
0230: FacetDescriptor facet_readOnly = new FacetDescriptor(
0231: "readOnly");
0232: facet_readOnly.setDisplayName(resources
0233: .getString("TextArea_readOnly_DisplayName"));
0234: facet_readOnly.setShortDescription(resources
0235: .getString("TextArea_readOnly_Description"));
0236:
0237: facetDescriptors = new FacetDescriptor[] { facet_label,
0238: facet_readOnly, };
0239: return facetDescriptors;
0240:
0241: } catch (RuntimeException e) {
0242: System.out.println(e.getMessage());
0243: e.printStackTrace(System.out);
0244: throw e;
0245: }
0246:
0247: }
0248:
0249: /**
0250: * <p>Return the specified image (if any)
0251: * for this component class.</p>
0252: */
0253: public Image getIcon(int kind) {
0254:
0255: String name;
0256: switch (kind) {
0257: case ICON_COLOR_16x16:
0258: name = iconFileName_C16;
0259: break;
0260: case ICON_COLOR_32x32:
0261: name = iconFileName_C32;
0262: break;
0263: case ICON_MONO_16x16:
0264: name = iconFileName_M16;
0265: break;
0266: case ICON_MONO_32x32:
0267: name = iconFileName_M32;
0268: break;
0269: default:
0270: name = null;
0271: break;
0272: }
0273: if (name == null) {
0274: return null;
0275: }
0276:
0277: Image image = loadImage(name + ".png");
0278: if (image == null) {
0279: image = loadImage(name + ".gif");
0280: }
0281: return image;
0282:
0283: }
0284:
0285: /**
0286: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0287: */
0288: private java.lang.Class loadClass(java.lang.String name) {
0289:
0290: try {
0291: return Class.forName(name);
0292: } catch (ClassNotFoundException e) {
0293: throw new RuntimeException(e);
0294: }
0295:
0296: }
0297:
0298: /**
0299: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0300: */
0301: public PropertyDescriptor[] getPropertyDescriptors() {
0302:
0303: if (propDescriptors != null) {
0304: return propDescriptors;
0305: }
0306: AttributeDescriptor attrib = null;
0307:
0308: try {
0309:
0310: PropertyDescriptor prop_maxLength = new PropertyDescriptor(
0311: "maxLength", beanClass, "getMaxLength",
0312: "setMaxLength");
0313: prop_maxLength.setDisplayName(resources
0314: .getString("TextArea_maxLength_DisplayName"));
0315: prop_maxLength.setShortDescription(resources
0316: .getString("TextArea_maxLength_Description"));
0317: prop_maxLength.setExpert(false);
0318: prop_maxLength.setHidden(true);
0319: prop_maxLength.setPreferred(false);
0320: prop_maxLength
0321: .setValue(
0322: Constants.PropertyDescriptor.CATEGORY,
0323: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0324:
0325: PropertyDescriptor prop_rows = new PropertyDescriptor(
0326: "rows", beanClass, "getRows", "setRows");
0327: prop_rows.setDisplayName(resources
0328: .getString("TextArea_rows_DisplayName"));
0329: prop_rows.setShortDescription(resources
0330: .getString("TextArea_rows_Description"));
0331: prop_rows
0332: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0333: prop_rows.setExpert(false);
0334: prop_rows.setHidden(false);
0335: prop_rows.setPreferred(false);
0336: attrib = new AttributeDescriptor("rows", false, "2", true);
0337: prop_rows.setValue(
0338: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0339: attrib);
0340: prop_rows
0341: .setValue(
0342: Constants.PropertyDescriptor.CATEGORY,
0343: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0344: prop_rows.setValue(
0345: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0346:
0347: PropertyDescriptor prop_columns = new PropertyDescriptor(
0348: "columns", beanClass, "getColumns", "setColumns");
0349: prop_columns.setDisplayName(resources
0350: .getString("TextArea_columns_DisplayName"));
0351: prop_columns.setShortDescription(resources
0352: .getString("TextArea_columns_Description"));
0353: prop_columns
0354: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0355: prop_columns.setExpert(false);
0356: prop_columns.setHidden(false);
0357: prop_columns.setPreferred(false);
0358: attrib = new AttributeDescriptor("columns", false, "20",
0359: true);
0360: prop_columns.setValue(
0361: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0362: attrib);
0363: prop_columns
0364: .setValue(
0365: Constants.PropertyDescriptor.CATEGORY,
0366: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0367: prop_columns.setValue(
0368: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0369:
0370: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0371: "disabled", beanClass, "isDisabled", "setDisabled");
0372: prop_disabled.setDisplayName(resources
0373: .getString("TextArea_disabled_DisplayName"));
0374: prop_disabled.setShortDescription(resources
0375: .getString("TextArea_disabled_Description"));
0376: prop_disabled.setExpert(false);
0377: prop_disabled.setHidden(false);
0378: prop_disabled.setPreferred(false);
0379: attrib = new AttributeDescriptor("disabled", false, null,
0380: true);
0381: prop_disabled.setValue(
0382: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0383: attrib);
0384: prop_disabled
0385: .setValue(
0386: Constants.PropertyDescriptor.CATEGORY,
0387: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0388:
0389: PropertyDescriptor prop_label = new PropertyDescriptor(
0390: "label", beanClass, "getLabel", "setLabel");
0391: prop_label.setDisplayName(resources
0392: .getString("TextArea_label_DisplayName"));
0393: prop_label.setShortDescription(resources
0394: .getString("TextArea_label_Description"));
0395: prop_label
0396: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0397: prop_label.setExpert(false);
0398: prop_label.setHidden(false);
0399: prop_label.setPreferred(false);
0400: attrib = new AttributeDescriptor("label", false, null, true);
0401: prop_label.setValue(
0402: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0403: attrib);
0404: prop_label
0405: .setValue(
0406: Constants.PropertyDescriptor.CATEGORY,
0407: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0408:
0409: PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0410: "labelLevel", beanClass, "getLabelLevel",
0411: "setLabelLevel");
0412: prop_labelLevel.setDisplayName(resources
0413: .getString("TextArea_labelLevel_DisplayName"));
0414: prop_labelLevel.setShortDescription(resources
0415: .getString("TextArea_labelLevel_Description"));
0416: prop_labelLevel
0417: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0418: prop_labelLevel.setExpert(false);
0419: prop_labelLevel.setHidden(false);
0420: prop_labelLevel.setPreferred(false);
0421: attrib = new AttributeDescriptor("labelLevel", false, "2",
0422: true);
0423: prop_labelLevel.setValue(
0424: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0425: attrib);
0426: prop_labelLevel
0427: .setValue(
0428: Constants.PropertyDescriptor.CATEGORY,
0429: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0430: prop_labelLevel
0431: .setValue(
0432: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0433: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0434:
0435: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0436: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0437: prop_onBlur.setDisplayName(resources
0438: .getString("TextArea_onBlur_DisplayName"));
0439: prop_onBlur.setShortDescription(resources
0440: .getString("TextArea_onBlur_Description"));
0441: prop_onBlur
0442: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0443: prop_onBlur.setExpert(false);
0444: prop_onBlur.setHidden(false);
0445: prop_onBlur.setPreferred(false);
0446: attrib = new AttributeDescriptor("onBlur", false, null,
0447: true);
0448: prop_onBlur.setValue(
0449: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0450: attrib);
0451: prop_onBlur
0452: .setValue(
0453: Constants.PropertyDescriptor.CATEGORY,
0454: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0455:
0456: PropertyDescriptor prop_onChange = new PropertyDescriptor(
0457: "onChange", beanClass, "getOnChange", "setOnChange");
0458: prop_onChange.setDisplayName(resources
0459: .getString("TextArea_onChange_DisplayName"));
0460: prop_onChange.setShortDescription(resources
0461: .getString("TextArea_onChange_Description"));
0462: prop_onChange
0463: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0464: prop_onChange.setExpert(false);
0465: prop_onChange.setHidden(false);
0466: prop_onChange.setPreferred(false);
0467: attrib = new AttributeDescriptor("onChange", false, null,
0468: true);
0469: prop_onChange.setValue(
0470: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0471: attrib);
0472: prop_onChange
0473: .setValue(
0474: Constants.PropertyDescriptor.CATEGORY,
0475: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0476:
0477: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0478: "onClick", beanClass, "getOnClick", "setOnClick");
0479: prop_onClick.setDisplayName(resources
0480: .getString("TextArea_onClick_DisplayName"));
0481: prop_onClick.setShortDescription(resources
0482: .getString("TextArea_onClick_Description"));
0483: prop_onClick
0484: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0485: prop_onClick.setExpert(false);
0486: prop_onClick.setHidden(false);
0487: prop_onClick.setPreferred(false);
0488: attrib = new AttributeDescriptor("onClick", false, null,
0489: true);
0490: prop_onClick.setValue(
0491: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0492: attrib);
0493: prop_onClick
0494: .setValue(
0495: Constants.PropertyDescriptor.CATEGORY,
0496: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0497:
0498: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0499: "onDblClick", beanClass, "getOnDblClick",
0500: "setOnDblClick");
0501: prop_onDblClick.setDisplayName(resources
0502: .getString("TextArea_onDblClick_DisplayName"));
0503: prop_onDblClick.setShortDescription(resources
0504: .getString("TextArea_onDblClick_Description"));
0505: prop_onDblClick
0506: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0507: prop_onDblClick.setExpert(false);
0508: prop_onDblClick.setHidden(false);
0509: prop_onDblClick.setPreferred(false);
0510: attrib = new AttributeDescriptor("onDblClick", false, null,
0511: true);
0512: prop_onDblClick.setValue(
0513: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0514: attrib);
0515: prop_onDblClick
0516: .setValue(
0517: Constants.PropertyDescriptor.CATEGORY,
0518: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0519:
0520: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0521: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0522: prop_onFocus.setDisplayName(resources
0523: .getString("TextArea_onFocus_DisplayName"));
0524: prop_onFocus.setShortDescription(resources
0525: .getString("TextArea_onFocus_Description"));
0526: prop_onFocus
0527: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0528: prop_onFocus.setExpert(false);
0529: prop_onFocus.setHidden(false);
0530: prop_onFocus.setPreferred(false);
0531: attrib = new AttributeDescriptor("onFocus", false, null,
0532: true);
0533: prop_onFocus.setValue(
0534: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0535: attrib);
0536: prop_onFocus
0537: .setValue(
0538: Constants.PropertyDescriptor.CATEGORY,
0539: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0540:
0541: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0542: "onKeyDown", beanClass, "getOnKeyDown",
0543: "setOnKeyDown");
0544: prop_onKeyDown.setDisplayName(resources
0545: .getString("TextArea_onKeyDown_DisplayName"));
0546: prop_onKeyDown.setShortDescription(resources
0547: .getString("TextArea_onKeyDown_Description"));
0548: prop_onKeyDown
0549: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0550: prop_onKeyDown.setExpert(false);
0551: prop_onKeyDown.setHidden(false);
0552: prop_onKeyDown.setPreferred(false);
0553: attrib = new AttributeDescriptor("onKeyDown", false, null,
0554: true);
0555: prop_onKeyDown.setValue(
0556: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0557: attrib);
0558: prop_onKeyDown
0559: .setValue(
0560: Constants.PropertyDescriptor.CATEGORY,
0561: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0562:
0563: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0564: "onKeyPress", beanClass, "getOnKeyPress",
0565: "setOnKeyPress");
0566: prop_onKeyPress.setDisplayName(resources
0567: .getString("TextArea_onKeyPress_DisplayName"));
0568: prop_onKeyPress.setShortDescription(resources
0569: .getString("TextArea_onKeyPress_Description"));
0570: prop_onKeyPress
0571: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0572: prop_onKeyPress.setExpert(false);
0573: prop_onKeyPress.setHidden(false);
0574: prop_onKeyPress.setPreferred(false);
0575: attrib = new AttributeDescriptor("onKeyPress", false, null,
0576: true);
0577: prop_onKeyPress.setValue(
0578: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0579: attrib);
0580: prop_onKeyPress
0581: .setValue(
0582: Constants.PropertyDescriptor.CATEGORY,
0583: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0584:
0585: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0586: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0587: prop_onKeyUp.setDisplayName(resources
0588: .getString("TextArea_onKeyUp_DisplayName"));
0589: prop_onKeyUp.setShortDescription(resources
0590: .getString("TextArea_onKeyUp_Description"));
0591: prop_onKeyUp
0592: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0593: prop_onKeyUp.setExpert(false);
0594: prop_onKeyUp.setHidden(false);
0595: prop_onKeyUp.setPreferred(false);
0596: attrib = new AttributeDescriptor("onKeyUp", false, null,
0597: true);
0598: prop_onKeyUp.setValue(
0599: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0600: attrib);
0601: prop_onKeyUp
0602: .setValue(
0603: Constants.PropertyDescriptor.CATEGORY,
0604: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0605:
0606: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0607: "onMouseDown", beanClass, "getOnMouseDown",
0608: "setOnMouseDown");
0609: prop_onMouseDown.setDisplayName(resources
0610: .getString("TextArea_onMouseDown_DisplayName"));
0611: prop_onMouseDown.setShortDescription(resources
0612: .getString("TextArea_onMouseDown_Description"));
0613: prop_onMouseDown
0614: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0615: prop_onMouseDown.setExpert(false);
0616: prop_onMouseDown.setHidden(false);
0617: prop_onMouseDown.setPreferred(false);
0618: attrib = new AttributeDescriptor("onMouseDown", false,
0619: null, true);
0620: prop_onMouseDown.setValue(
0621: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0622: attrib);
0623: prop_onMouseDown
0624: .setValue(
0625: Constants.PropertyDescriptor.CATEGORY,
0626: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0627:
0628: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0629: "onMouseMove", beanClass, "getOnMouseMove",
0630: "setOnMouseMove");
0631: prop_onMouseMove.setDisplayName(resources
0632: .getString("TextArea_onMouseMove_DisplayName"));
0633: prop_onMouseMove.setShortDescription(resources
0634: .getString("TextArea_onMouseMove_Description"));
0635: prop_onMouseMove
0636: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0637: prop_onMouseMove.setExpert(false);
0638: prop_onMouseMove.setHidden(false);
0639: prop_onMouseMove.setPreferred(false);
0640: attrib = new AttributeDescriptor("onMouseMove", false,
0641: null, true);
0642: prop_onMouseMove.setValue(
0643: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0644: attrib);
0645: prop_onMouseMove
0646: .setValue(
0647: Constants.PropertyDescriptor.CATEGORY,
0648: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0649:
0650: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0651: "onMouseOut", beanClass, "getOnMouseOut",
0652: "setOnMouseOut");
0653: prop_onMouseOut.setDisplayName(resources
0654: .getString("TextArea_onMouseOut_DisplayName"));
0655: prop_onMouseOut.setShortDescription(resources
0656: .getString("TextArea_onMouseOut_Description"));
0657: prop_onMouseOut
0658: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0659: prop_onMouseOut.setExpert(false);
0660: prop_onMouseOut.setHidden(false);
0661: prop_onMouseOut.setPreferred(false);
0662: attrib = new AttributeDescriptor("onMouseOut", false, null,
0663: true);
0664: prop_onMouseOut.setValue(
0665: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0666: attrib);
0667: prop_onMouseOut
0668: .setValue(
0669: Constants.PropertyDescriptor.CATEGORY,
0670: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0671:
0672: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0673: "onMouseOver", beanClass, "getOnMouseOver",
0674: "setOnMouseOver");
0675: prop_onMouseOver.setDisplayName(resources
0676: .getString("TextArea_onMouseOver_DisplayName"));
0677: prop_onMouseOver.setShortDescription(resources
0678: .getString("TextArea_onMouseOver_Description"));
0679: prop_onMouseOver
0680: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0681: prop_onMouseOver.setExpert(false);
0682: prop_onMouseOver.setHidden(false);
0683: prop_onMouseOver.setPreferred(false);
0684: attrib = new AttributeDescriptor("onMouseOver", false,
0685: null, true);
0686: prop_onMouseOver.setValue(
0687: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0688: attrib);
0689: prop_onMouseOver
0690: .setValue(
0691: Constants.PropertyDescriptor.CATEGORY,
0692: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0693:
0694: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0695: "onMouseUp", beanClass, "getOnMouseUp",
0696: "setOnMouseUp");
0697: prop_onMouseUp.setDisplayName(resources
0698: .getString("TextArea_onMouseUp_DisplayName"));
0699: prop_onMouseUp.setShortDescription(resources
0700: .getString("TextArea_onMouseUp_Description"));
0701: prop_onMouseUp
0702: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0703: prop_onMouseUp.setExpert(false);
0704: prop_onMouseUp.setHidden(false);
0705: prop_onMouseUp.setPreferred(false);
0706: attrib = new AttributeDescriptor("onMouseUp", false, null,
0707: true);
0708: prop_onMouseUp.setValue(
0709: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0710: attrib);
0711: prop_onMouseUp
0712: .setValue(
0713: Constants.PropertyDescriptor.CATEGORY,
0714: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0715:
0716: PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0717: "onSelect", beanClass, "getOnSelect", "setOnSelect");
0718: prop_onSelect.setDisplayName(resources
0719: .getString("TextArea_onSelect_DisplayName"));
0720: prop_onSelect.setShortDescription(resources
0721: .getString("TextArea_onSelect_Description"));
0722: prop_onSelect
0723: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0724: prop_onSelect.setExpert(false);
0725: prop_onSelect.setHidden(false);
0726: prop_onSelect.setPreferred(false);
0727: attrib = new AttributeDescriptor("onSelect", false, null,
0728: true);
0729: prop_onSelect.setValue(
0730: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0731: attrib);
0732: prop_onSelect
0733: .setValue(
0734: Constants.PropertyDescriptor.CATEGORY,
0735: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0736:
0737: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0738: "readOnly", beanClass, "isReadOnly", "setReadOnly");
0739: prop_readOnly.setDisplayName(resources
0740: .getString("TextArea_readOnly_DisplayName"));
0741: prop_readOnly.setShortDescription(resources
0742: .getString("TextArea_readOnly_Description"));
0743: prop_readOnly.setExpert(false);
0744: prop_readOnly.setHidden(false);
0745: prop_readOnly.setPreferred(false);
0746: attrib = new AttributeDescriptor("readOnly", false, null,
0747: true);
0748: prop_readOnly.setValue(
0749: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0750: attrib);
0751: prop_readOnly
0752: .setValue(
0753: Constants.PropertyDescriptor.CATEGORY,
0754: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0755:
0756: PropertyDescriptor prop_style = new PropertyDescriptor(
0757: "style", beanClass, "getStyle", "setStyle");
0758: prop_style.setDisplayName(resources
0759: .getString("TextArea_style_DisplayName"));
0760: prop_style.setShortDescription(resources
0761: .getString("TextArea_style_Description"));
0762: prop_style
0763: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0764: prop_style.setExpert(false);
0765: prop_style.setHidden(false);
0766: prop_style.setPreferred(false);
0767: attrib = new AttributeDescriptor("style", false, null, true);
0768: prop_style.setValue(
0769: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0770: attrib);
0771: prop_style
0772: .setValue(
0773: Constants.PropertyDescriptor.CATEGORY,
0774: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0775:
0776: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0777: "styleClass", beanClass, "getStyleClass",
0778: "setStyleClass");
0779: prop_styleClass.setDisplayName(resources
0780: .getString("TextArea_styleClass_DisplayName"));
0781: prop_styleClass.setShortDescription(resources
0782: .getString("TextArea_styleClass_Description"));
0783: prop_styleClass
0784: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0785: prop_styleClass.setExpert(false);
0786: prop_styleClass.setHidden(false);
0787: prop_styleClass.setPreferred(false);
0788: attrib = new AttributeDescriptor("styleClass", false, null,
0789: true);
0790: prop_styleClass.setValue(
0791: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0792: attrib);
0793: prop_styleClass
0794: .setValue(
0795: Constants.PropertyDescriptor.CATEGORY,
0796: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0797:
0798: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0799: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0800: prop_tabIndex.setDisplayName(resources
0801: .getString("TextArea_tabIndex_DisplayName"));
0802: prop_tabIndex.setShortDescription(resources
0803: .getString("TextArea_tabIndex_Description"));
0804: prop_tabIndex
0805: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0806: prop_tabIndex.setExpert(false);
0807: prop_tabIndex.setHidden(false);
0808: prop_tabIndex.setPreferred(false);
0809: attrib = new AttributeDescriptor("tabIndex", false, null,
0810: true);
0811: prop_tabIndex.setValue(
0812: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0813: attrib);
0814: prop_tabIndex
0815: .setValue(
0816: Constants.PropertyDescriptor.CATEGORY,
0817: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0818: prop_tabIndex.setValue(
0819: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0820:
0821: PropertyDescriptor prop_text = new PropertyDescriptor(
0822: "text", beanClass, "getText", "setText");
0823: prop_text.setDisplayName(resources
0824: .getString("TextArea_text_DisplayName"));
0825: prop_text.setShortDescription(resources
0826: .getString("TextArea_text_Description"));
0827: prop_text
0828: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0829: prop_text.setExpert(false);
0830: prop_text.setHidden(false);
0831: prop_text.setPreferred(false);
0832: attrib = new AttributeDescriptor("text", false, null, true);
0833: prop_text.setValue(
0834: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0835: attrib);
0836: prop_text
0837: .setValue(
0838: Constants.PropertyDescriptor.CATEGORY,
0839: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0840:
0841: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0842: "toolTip", beanClass, "getToolTip", "setToolTip");
0843: prop_toolTip.setDisplayName(resources
0844: .getString("TextArea_toolTip_DisplayName"));
0845: prop_toolTip.setShortDescription(resources
0846: .getString("TextArea_toolTip_Description"));
0847: prop_toolTip
0848: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0849: prop_toolTip.setExpert(false);
0850: prop_toolTip.setHidden(false);
0851: prop_toolTip.setPreferred(false);
0852: attrib = new AttributeDescriptor("toolTip", false, null,
0853: true);
0854: prop_toolTip.setValue(
0855: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0856: attrib);
0857: prop_toolTip
0858: .setValue(
0859: Constants.PropertyDescriptor.CATEGORY,
0860: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0861:
0862: PropertyDescriptor prop_trim = new PropertyDescriptor(
0863: "trim", beanClass, "isTrim", "setTrim");
0864: prop_trim.setDisplayName(resources
0865: .getString("TextArea_trim_DisplayName"));
0866: prop_trim.setShortDescription(resources
0867: .getString("TextArea_trim_Description"));
0868: prop_trim.setExpert(false);
0869: prop_trim.setHidden(false);
0870: prop_trim.setPreferred(false);
0871: attrib = new AttributeDescriptor("trim", false, "true",
0872: true);
0873: prop_trim.setValue(
0874: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0875: attrib);
0876: prop_trim
0877: .setValue(
0878: Constants.PropertyDescriptor.CATEGORY,
0879: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0880:
0881: PropertyDescriptor prop_visible = new PropertyDescriptor(
0882: "visible", beanClass, "isVisible", "setVisible");
0883: prop_visible.setDisplayName(resources
0884: .getString("TextArea_visible_DisplayName"));
0885: prop_visible.setShortDescription(resources
0886: .getString("TextArea_visible_Description"));
0887: prop_visible.setExpert(false);
0888: prop_visible.setHidden(false);
0889: prop_visible.setPreferred(false);
0890: attrib = new AttributeDescriptor("visible", false, "true",
0891: true);
0892: prop_visible.setValue(
0893: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0894: attrib);
0895: prop_visible
0896: .setValue(
0897: Constants.PropertyDescriptor.CATEGORY,
0898: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0899:
0900: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0901: "attributes", beanClass, "getAttributes", null);
0902: prop_attributes.setDisplayName(resources
0903: .getString("TextArea_attributes_DisplayName"));
0904: prop_attributes.setShortDescription(resources
0905: .getString("TextArea_attributes_Description"));
0906: prop_attributes.setExpert(false);
0907: prop_attributes.setHidden(true);
0908: prop_attributes.setPreferred(false);
0909: prop_attributes
0910: .setValue(
0911: Constants.PropertyDescriptor.CATEGORY,
0912: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0913:
0914: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0915: "childCount", beanClass, "getChildCount", null);
0916: prop_childCount.setDisplayName(resources
0917: .getString("TextArea_childCount_DisplayName"));
0918: prop_childCount.setShortDescription(resources
0919: .getString("TextArea_childCount_Description"));
0920: prop_childCount.setExpert(false);
0921: prop_childCount.setHidden(true);
0922: prop_childCount.setPreferred(false);
0923: prop_childCount
0924: .setValue(
0925: Constants.PropertyDescriptor.CATEGORY,
0926: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0927:
0928: PropertyDescriptor prop_children = new PropertyDescriptor(
0929: "children", beanClass, "getChildren", null);
0930: prop_children.setDisplayName(resources
0931: .getString("TextArea_children_DisplayName"));
0932: prop_children.setShortDescription(resources
0933: .getString("TextArea_children_Description"));
0934: prop_children.setExpert(false);
0935: prop_children.setHidden(true);
0936: prop_children.setPreferred(false);
0937: prop_children
0938: .setValue(
0939: Constants.PropertyDescriptor.CATEGORY,
0940: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0941:
0942: PropertyDescriptor prop_converter = new PropertyDescriptor(
0943: "converter", beanClass, "getConverter",
0944: "setConverter");
0945: prop_converter.setDisplayName(resources
0946: .getString("TextArea_converter_DisplayName"));
0947: prop_converter.setShortDescription(resources
0948: .getString("TextArea_converter_Description"));
0949: prop_converter
0950: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
0951: prop_converter.setExpert(false);
0952: prop_converter.setHidden(false);
0953: prop_converter.setPreferred(false);
0954: attrib = new AttributeDescriptor("converter", false, null,
0955: true);
0956: prop_converter.setValue(
0957: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0958: attrib);
0959: prop_converter
0960: .setValue(
0961: Constants.PropertyDescriptor.CATEGORY,
0962: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0963:
0964: PropertyDescriptor prop_facets = new PropertyDescriptor(
0965: "facets", beanClass, "getFacets", null);
0966: prop_facets.setDisplayName(resources
0967: .getString("TextArea_facets_DisplayName"));
0968: prop_facets.setShortDescription(resources
0969: .getString("TextArea_facets_Description"));
0970: prop_facets.setExpert(false);
0971: prop_facets.setHidden(true);
0972: prop_facets.setPreferred(false);
0973: prop_facets
0974: .setValue(
0975: Constants.PropertyDescriptor.CATEGORY,
0976: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0977:
0978: PropertyDescriptor prop_family = new PropertyDescriptor(
0979: "family", beanClass, "getFamily", null);
0980: prop_family.setDisplayName(resources
0981: .getString("TextArea_family_DisplayName"));
0982: prop_family.setShortDescription(resources
0983: .getString("TextArea_family_Description"));
0984: prop_family.setExpert(false);
0985: prop_family.setHidden(true);
0986: prop_family.setPreferred(false);
0987: prop_family
0988: .setValue(
0989: Constants.PropertyDescriptor.CATEGORY,
0990: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0991:
0992: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0993: beanClass, "getId", "setId");
0994: prop_id.setDisplayName(resources
0995: .getString("TextArea_id_DisplayName"));
0996: prop_id.setShortDescription(resources
0997: .getString("TextArea_id_Description"));
0998: prop_id.setExpert(false);
0999: prop_id.setHidden(true);
1000: prop_id.setPreferred(false);
1001: attrib = new AttributeDescriptor("id", false, null, true);
1002: prop_id.setValue(
1003: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1004: attrib);
1005: prop_id
1006: .setValue(
1007: Constants.PropertyDescriptor.CATEGORY,
1008: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1009:
1010: PropertyDescriptor prop_immediate = new PropertyDescriptor(
1011: "immediate", beanClass, "isImmediate",
1012: "setImmediate");
1013: prop_immediate.setDisplayName(resources
1014: .getString("TextArea_immediate_DisplayName"));
1015: prop_immediate.setShortDescription(resources
1016: .getString("TextArea_immediate_Description"));
1017: prop_immediate.setExpert(false);
1018: prop_immediate.setHidden(false);
1019: prop_immediate.setPreferred(false);
1020: attrib = new AttributeDescriptor("immediate", false, null,
1021: true);
1022: prop_immediate.setValue(
1023: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1024: attrib);
1025: prop_immediate
1026: .setValue(
1027: Constants.PropertyDescriptor.CATEGORY,
1028: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1029:
1030: PropertyDescriptor prop_localValue = new PropertyDescriptor(
1031: "localValue", beanClass, "getLocalValue", null);
1032: prop_localValue.setDisplayName(resources
1033: .getString("TextArea_localValue_DisplayName"));
1034: prop_localValue.setShortDescription(resources
1035: .getString("TextArea_localValue_Description"));
1036: prop_localValue.setExpert(false);
1037: prop_localValue.setHidden(true);
1038: prop_localValue.setPreferred(false);
1039: prop_localValue
1040: .setValue(
1041: Constants.PropertyDescriptor.CATEGORY,
1042: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1043:
1044: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1045: "localValueSet", beanClass, "isLocalValueSet",
1046: "setLocalValueSet");
1047: prop_localValueSet.setDisplayName(resources
1048: .getString("TextArea_localValueSet_DisplayName"));
1049: prop_localValueSet.setShortDescription(resources
1050: .getString("TextArea_localValueSet_Description"));
1051: prop_localValueSet.setExpert(false);
1052: prop_localValueSet.setHidden(true);
1053: prop_localValueSet.setPreferred(false);
1054: prop_localValueSet
1055: .setValue(
1056: Constants.PropertyDescriptor.CATEGORY,
1057: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1058:
1059: PropertyDescriptor prop_parent = new PropertyDescriptor(
1060: "parent", beanClass, "getParent", null);
1061: prop_parent.setDisplayName(resources
1062: .getString("TextArea_parent_DisplayName"));
1063: prop_parent.setShortDescription(resources
1064: .getString("TextArea_parent_Description"));
1065: prop_parent.setExpert(false);
1066: prop_parent.setHidden(true);
1067: prop_parent.setPreferred(false);
1068: prop_parent
1069: .setValue(
1070: Constants.PropertyDescriptor.CATEGORY,
1071: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1072:
1073: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1074: "rendered", beanClass, "isRendered", "setRendered");
1075: prop_rendered.setDisplayName(resources
1076: .getString("TextArea_rendered_DisplayName"));
1077: prop_rendered.setShortDescription(resources
1078: .getString("TextArea_rendered_Description"));
1079: prop_rendered.setExpert(false);
1080: prop_rendered.setHidden(false);
1081: prop_rendered.setPreferred(false);
1082: attrib = new AttributeDescriptor("rendered", false, null,
1083: true);
1084: prop_rendered.setValue(
1085: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1086: attrib);
1087: prop_rendered
1088: .setValue(
1089: Constants.PropertyDescriptor.CATEGORY,
1090: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1091:
1092: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1093: "rendererType", beanClass, "getRendererType",
1094: "setRendererType");
1095: prop_rendererType.setDisplayName(resources
1096: .getString("TextArea_rendererType_DisplayName"));
1097: prop_rendererType.setShortDescription(resources
1098: .getString("TextArea_rendererType_Description"));
1099: prop_rendererType.setExpert(false);
1100: prop_rendererType.setHidden(true);
1101: prop_rendererType.setPreferred(false);
1102: prop_rendererType
1103: .setValue(
1104: Constants.PropertyDescriptor.CATEGORY,
1105: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1106:
1107: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1108: "rendersChildren", beanClass, "getRendersChildren",
1109: null);
1110: prop_rendersChildren.setDisplayName(resources
1111: .getString("TextArea_rendersChildren_DisplayName"));
1112: prop_rendersChildren.setShortDescription(resources
1113: .getString("TextArea_rendersChildren_Description"));
1114: prop_rendersChildren.setExpert(false);
1115: prop_rendersChildren.setHidden(true);
1116: prop_rendersChildren.setPreferred(false);
1117: prop_rendersChildren
1118: .setValue(
1119: Constants.PropertyDescriptor.CATEGORY,
1120: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1121:
1122: PropertyDescriptor prop_required = new PropertyDescriptor(
1123: "required", beanClass, "isRequired", "setRequired");
1124: prop_required.setDisplayName(resources
1125: .getString("TextArea_required_DisplayName"));
1126: prop_required.setShortDescription(resources
1127: .getString("TextArea_required_Description"));
1128: prop_required.setExpert(false);
1129: prop_required.setHidden(false);
1130: prop_required.setPreferred(false);
1131: attrib = new AttributeDescriptor("required", false, null,
1132: true);
1133: prop_required.setValue(
1134: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1135: attrib);
1136: prop_required
1137: .setValue(
1138: Constants.PropertyDescriptor.CATEGORY,
1139: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1140:
1141: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1142: "submittedValue", beanClass, "getSubmittedValue",
1143: "setSubmittedValue");
1144: prop_submittedValue.setDisplayName(resources
1145: .getString("TextArea_submittedValue_DisplayName"));
1146: prop_submittedValue.setShortDescription(resources
1147: .getString("TextArea_submittedValue_Description"));
1148: prop_submittedValue.setExpert(false);
1149: prop_submittedValue.setHidden(true);
1150: prop_submittedValue.setPreferred(false);
1151: prop_submittedValue
1152: .setValue(
1153: Constants.PropertyDescriptor.CATEGORY,
1154: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1155:
1156: PropertyDescriptor prop_validator = new PropertyDescriptor(
1157: "validator", beanClass, "getValidator",
1158: "setValidator");
1159: prop_validator.setDisplayName(resources
1160: .getString("TextArea_validator_DisplayName"));
1161: prop_validator.setShortDescription(resources
1162: .getString("TextArea_validator_Description"));
1163: prop_validator
1164: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1165: prop_validator.setExpert(false);
1166: prop_validator.setHidden(false);
1167: prop_validator.setPreferred(false);
1168: attrib = new AttributeDescriptor("validator", false, null,
1169: true);
1170: prop_validator.setValue(
1171: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1172: attrib);
1173: prop_validator
1174: .setValue(
1175: Constants.PropertyDescriptor.CATEGORY,
1176: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1177:
1178: PropertyDescriptor prop_value = new PropertyDescriptor(
1179: "value", beanClass, "getValue", "setValue");
1180: prop_value.setDisplayName(resources
1181: .getString("TextArea_value_DisplayName"));
1182: prop_value.setShortDescription(resources
1183: .getString("TextArea_value_Description"));
1184: prop_value.setExpert(false);
1185: prop_value.setHidden(true);
1186: prop_value.setPreferred(false);
1187: prop_value
1188: .setValue(
1189: Constants.PropertyDescriptor.CATEGORY,
1190: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1191:
1192: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1193: "valueChangeListener", beanClass,
1194: "getValueChangeListener", "setValueChangeListener");
1195: prop_valueChangeListener
1196: .setDisplayName(resources
1197: .getString("TextArea_valueChangeListener_DisplayName"));
1198: prop_valueChangeListener
1199: .setShortDescription(resources
1200: .getString("TextArea_valueChangeListener_Description"));
1201: prop_valueChangeListener
1202: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1203: prop_valueChangeListener.setExpert(false);
1204: prop_valueChangeListener.setHidden(false);
1205: prop_valueChangeListener.setPreferred(false);
1206: attrib = new AttributeDescriptor("valueChangeListener",
1207: false, null, true);
1208: prop_valueChangeListener.setValue(
1209: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1210: attrib);
1211: prop_valueChangeListener
1212: .setValue(
1213: Constants.PropertyDescriptor.CATEGORY,
1214: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1215:
1216: propDescriptors = new PropertyDescriptor[] {
1217: prop_attributes, prop_childCount, prop_children,
1218: prop_columns, prop_converter, prop_disabled,
1219: prop_facets, prop_family, prop_id, prop_immediate,
1220: prop_label, prop_labelLevel, prop_localValue,
1221: prop_localValueSet, prop_maxLength, prop_onBlur,
1222: prop_onChange, prop_onClick, prop_onDblClick,
1223: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1224: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1225: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1226: prop_onSelect, prop_parent, prop_readOnly,
1227: prop_rendered, prop_rendererType,
1228: prop_rendersChildren, prop_required, prop_rows,
1229: prop_style, prop_styleClass, prop_submittedValue,
1230: prop_tabIndex, prop_text, prop_toolTip, prop_trim,
1231: prop_validator, prop_value,
1232: prop_valueChangeListener, prop_visible, };
1233: return propDescriptors;
1234:
1235: } catch (IntrospectionException e) {
1236: e.printStackTrace();
1237: return null;
1238: }
1239:
1240: }
1241:
1242: }
1243: //GEN-END:BeanInfo
|