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 TextFieldBeanInfoBase 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(), TextFieldBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>TextFieldBeanInfoBase</code>.</p>
0075: */
0076: public TextFieldBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.TextField.class;
0079: defaultPropertyName = "text";
0080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextField_C16";
0081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextField_C32";
0082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextField_M16";
0083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TextField_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("TextField_DisplayName"));
0144: beanDescriptor.setShortDescription(resources
0145: .getString("TextField_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_field");
0154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155: "textField");
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_field_props");
0161: beanDescriptor.setValue(
0162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163: getCategoryDescriptors());
0164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165: "textField");
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("TextField_label_DisplayName"));
0227: facet_label.setShortDescription(resources
0228: .getString("TextField_label_Description"));
0229:
0230: FacetDescriptor facet_readOnly = new FacetDescriptor(
0231: "readOnly");
0232: facet_readOnly.setDisplayName(resources
0233: .getString("TextField_readOnly_DisplayName"));
0234: facet_readOnly.setShortDescription(resources
0235: .getString("TextField_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_columns = new PropertyDescriptor(
0311: "columns", beanClass, "getColumns", "setColumns");
0312: prop_columns.setDisplayName(resources
0313: .getString("TextField_columns_DisplayName"));
0314: prop_columns.setShortDescription(resources
0315: .getString("TextField_columns_Description"));
0316: prop_columns
0317: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0318: prop_columns.setExpert(false);
0319: prop_columns.setHidden(false);
0320: prop_columns.setPreferred(false);
0321: attrib = new AttributeDescriptor("columns", false, "20",
0322: true);
0323: prop_columns.setValue(
0324: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0325: attrib);
0326: prop_columns
0327: .setValue(
0328: Constants.PropertyDescriptor.CATEGORY,
0329: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0330: prop_columns.setValue(
0331: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0332:
0333: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0334: "disabled", beanClass, "isDisabled", "setDisabled");
0335: prop_disabled.setDisplayName(resources
0336: .getString("TextField_disabled_DisplayName"));
0337: prop_disabled.setShortDescription(resources
0338: .getString("TextField_disabled_Description"));
0339: prop_disabled.setExpert(false);
0340: prop_disabled.setHidden(false);
0341: prop_disabled.setPreferred(false);
0342: attrib = new AttributeDescriptor("disabled", false, null,
0343: true);
0344: prop_disabled.setValue(
0345: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0346: attrib);
0347: prop_disabled
0348: .setValue(
0349: Constants.PropertyDescriptor.CATEGORY,
0350: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0351:
0352: PropertyDescriptor prop_label = new PropertyDescriptor(
0353: "label", beanClass, "getLabel", "setLabel");
0354: prop_label.setDisplayName(resources
0355: .getString("TextField_label_DisplayName"));
0356: prop_label.setShortDescription(resources
0357: .getString("TextField_label_Description"));
0358: prop_label
0359: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0360: prop_label.setExpert(false);
0361: prop_label.setHidden(false);
0362: prop_label.setPreferred(false);
0363: attrib = new AttributeDescriptor("label", false, null, true);
0364: prop_label.setValue(
0365: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0366: attrib);
0367: prop_label
0368: .setValue(
0369: Constants.PropertyDescriptor.CATEGORY,
0370: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0371:
0372: PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0373: "labelLevel", beanClass, "getLabelLevel",
0374: "setLabelLevel");
0375: prop_labelLevel.setDisplayName(resources
0376: .getString("TextField_labelLevel_DisplayName"));
0377: prop_labelLevel.setShortDescription(resources
0378: .getString("TextField_labelLevel_Description"));
0379: prop_labelLevel
0380: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0381: prop_labelLevel.setExpert(false);
0382: prop_labelLevel.setHidden(false);
0383: prop_labelLevel.setPreferred(false);
0384: attrib = new AttributeDescriptor("labelLevel", false, "2",
0385: true);
0386: prop_labelLevel.setValue(
0387: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0388: attrib);
0389: prop_labelLevel
0390: .setValue(
0391: Constants.PropertyDescriptor.CATEGORY,
0392: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0393: prop_labelLevel
0394: .setValue(
0395: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0396: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0397:
0398: PropertyDescriptor prop_maxLength = new PropertyDescriptor(
0399: "maxLength", beanClass, "getMaxLength",
0400: "setMaxLength");
0401: prop_maxLength.setDisplayName(resources
0402: .getString("TextField_maxLength_DisplayName"));
0403: prop_maxLength.setShortDescription(resources
0404: .getString("TextField_maxLength_Description"));
0405: prop_maxLength
0406: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0407: prop_maxLength.setExpert(false);
0408: prop_maxLength.setHidden(false);
0409: prop_maxLength.setPreferred(false);
0410: attrib = new AttributeDescriptor("maxLength", false, null,
0411: true);
0412: prop_maxLength.setValue(
0413: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0414: attrib);
0415: prop_maxLength
0416: .setValue(
0417: Constants.PropertyDescriptor.CATEGORY,
0418: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0419: prop_maxLength.setValue(
0420: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0421:
0422: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0423: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0424: prop_onBlur.setDisplayName(resources
0425: .getString("TextField_onBlur_DisplayName"));
0426: prop_onBlur.setShortDescription(resources
0427: .getString("TextField_onBlur_Description"));
0428: prop_onBlur
0429: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0430: prop_onBlur.setExpert(false);
0431: prop_onBlur.setHidden(false);
0432: prop_onBlur.setPreferred(false);
0433: attrib = new AttributeDescriptor("onBlur", false, null,
0434: true);
0435: prop_onBlur.setValue(
0436: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0437: attrib);
0438: prop_onBlur
0439: .setValue(
0440: Constants.PropertyDescriptor.CATEGORY,
0441: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0442:
0443: PropertyDescriptor prop_onChange = new PropertyDescriptor(
0444: "onChange", beanClass, "getOnChange", "setOnChange");
0445: prop_onChange.setDisplayName(resources
0446: .getString("TextField_onChange_DisplayName"));
0447: prop_onChange.setShortDescription(resources
0448: .getString("TextField_onChange_Description"));
0449: prop_onChange
0450: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0451: prop_onChange.setExpert(false);
0452: prop_onChange.setHidden(false);
0453: prop_onChange.setPreferred(false);
0454: attrib = new AttributeDescriptor("onChange", false, null,
0455: true);
0456: prop_onChange.setValue(
0457: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0458: attrib);
0459: prop_onChange
0460: .setValue(
0461: Constants.PropertyDescriptor.CATEGORY,
0462: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0463:
0464: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0465: "onClick", beanClass, "getOnClick", "setOnClick");
0466: prop_onClick.setDisplayName(resources
0467: .getString("TextField_onClick_DisplayName"));
0468: prop_onClick.setShortDescription(resources
0469: .getString("TextField_onClick_Description"));
0470: prop_onClick
0471: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0472: prop_onClick.setExpert(false);
0473: prop_onClick.setHidden(false);
0474: prop_onClick.setPreferred(false);
0475: attrib = new AttributeDescriptor("onClick", false, null,
0476: true);
0477: prop_onClick.setValue(
0478: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0479: attrib);
0480: prop_onClick
0481: .setValue(
0482: Constants.PropertyDescriptor.CATEGORY,
0483: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0484:
0485: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0486: "onDblClick", beanClass, "getOnDblClick",
0487: "setOnDblClick");
0488: prop_onDblClick.setDisplayName(resources
0489: .getString("TextField_onDblClick_DisplayName"));
0490: prop_onDblClick.setShortDescription(resources
0491: .getString("TextField_onDblClick_Description"));
0492: prop_onDblClick
0493: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0494: prop_onDblClick.setExpert(false);
0495: prop_onDblClick.setHidden(false);
0496: prop_onDblClick.setPreferred(false);
0497: attrib = new AttributeDescriptor("onDblClick", false, null,
0498: true);
0499: prop_onDblClick.setValue(
0500: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0501: attrib);
0502: prop_onDblClick
0503: .setValue(
0504: Constants.PropertyDescriptor.CATEGORY,
0505: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0506:
0507: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0508: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0509: prop_onFocus.setDisplayName(resources
0510: .getString("TextField_onFocus_DisplayName"));
0511: prop_onFocus.setShortDescription(resources
0512: .getString("TextField_onFocus_Description"));
0513: prop_onFocus
0514: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0515: prop_onFocus.setExpert(false);
0516: prop_onFocus.setHidden(false);
0517: prop_onFocus.setPreferred(false);
0518: attrib = new AttributeDescriptor("onFocus", false, null,
0519: true);
0520: prop_onFocus.setValue(
0521: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0522: attrib);
0523: prop_onFocus
0524: .setValue(
0525: Constants.PropertyDescriptor.CATEGORY,
0526: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0527:
0528: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0529: "onKeyDown", beanClass, "getOnKeyDown",
0530: "setOnKeyDown");
0531: prop_onKeyDown.setDisplayName(resources
0532: .getString("TextField_onKeyDown_DisplayName"));
0533: prop_onKeyDown.setShortDescription(resources
0534: .getString("TextField_onKeyDown_Description"));
0535: prop_onKeyDown
0536: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0537: prop_onKeyDown.setExpert(false);
0538: prop_onKeyDown.setHidden(false);
0539: prop_onKeyDown.setPreferred(false);
0540: attrib = new AttributeDescriptor("onKeyDown", false, null,
0541: true);
0542: prop_onKeyDown.setValue(
0543: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0544: attrib);
0545: prop_onKeyDown
0546: .setValue(
0547: Constants.PropertyDescriptor.CATEGORY,
0548: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0549:
0550: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0551: "onKeyPress", beanClass, "getOnKeyPress",
0552: "setOnKeyPress");
0553: prop_onKeyPress.setDisplayName(resources
0554: .getString("TextField_onKeyPress_DisplayName"));
0555: prop_onKeyPress.setShortDescription(resources
0556: .getString("TextField_onKeyPress_Description"));
0557: prop_onKeyPress
0558: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0559: prop_onKeyPress.setExpert(false);
0560: prop_onKeyPress.setHidden(false);
0561: prop_onKeyPress.setPreferred(false);
0562: attrib = new AttributeDescriptor("onKeyPress", false, null,
0563: true);
0564: prop_onKeyPress.setValue(
0565: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0566: attrib);
0567: prop_onKeyPress
0568: .setValue(
0569: Constants.PropertyDescriptor.CATEGORY,
0570: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0571:
0572: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0573: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0574: prop_onKeyUp.setDisplayName(resources
0575: .getString("TextField_onKeyUp_DisplayName"));
0576: prop_onKeyUp.setShortDescription(resources
0577: .getString("TextField_onKeyUp_Description"));
0578: prop_onKeyUp
0579: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0580: prop_onKeyUp.setExpert(false);
0581: prop_onKeyUp.setHidden(false);
0582: prop_onKeyUp.setPreferred(false);
0583: attrib = new AttributeDescriptor("onKeyUp", false, null,
0584: true);
0585: prop_onKeyUp.setValue(
0586: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0587: attrib);
0588: prop_onKeyUp
0589: .setValue(
0590: Constants.PropertyDescriptor.CATEGORY,
0591: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0592:
0593: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0594: "onMouseDown", beanClass, "getOnMouseDown",
0595: "setOnMouseDown");
0596: prop_onMouseDown.setDisplayName(resources
0597: .getString("TextField_onMouseDown_DisplayName"));
0598: prop_onMouseDown.setShortDescription(resources
0599: .getString("TextField_onMouseDown_Description"));
0600: prop_onMouseDown
0601: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0602: prop_onMouseDown.setExpert(false);
0603: prop_onMouseDown.setHidden(false);
0604: prop_onMouseDown.setPreferred(false);
0605: attrib = new AttributeDescriptor("onMouseDown", false,
0606: null, true);
0607: prop_onMouseDown.setValue(
0608: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0609: attrib);
0610: prop_onMouseDown
0611: .setValue(
0612: Constants.PropertyDescriptor.CATEGORY,
0613: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0614:
0615: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0616: "onMouseMove", beanClass, "getOnMouseMove",
0617: "setOnMouseMove");
0618: prop_onMouseMove.setDisplayName(resources
0619: .getString("TextField_onMouseMove_DisplayName"));
0620: prop_onMouseMove.setShortDescription(resources
0621: .getString("TextField_onMouseMove_Description"));
0622: prop_onMouseMove
0623: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0624: prop_onMouseMove.setExpert(false);
0625: prop_onMouseMove.setHidden(false);
0626: prop_onMouseMove.setPreferred(false);
0627: attrib = new AttributeDescriptor("onMouseMove", false,
0628: null, true);
0629: prop_onMouseMove.setValue(
0630: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0631: attrib);
0632: prop_onMouseMove
0633: .setValue(
0634: Constants.PropertyDescriptor.CATEGORY,
0635: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0636:
0637: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0638: "onMouseOut", beanClass, "getOnMouseOut",
0639: "setOnMouseOut");
0640: prop_onMouseOut.setDisplayName(resources
0641: .getString("TextField_onMouseOut_DisplayName"));
0642: prop_onMouseOut.setShortDescription(resources
0643: .getString("TextField_onMouseOut_Description"));
0644: prop_onMouseOut
0645: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0646: prop_onMouseOut.setExpert(false);
0647: prop_onMouseOut.setHidden(false);
0648: prop_onMouseOut.setPreferred(false);
0649: attrib = new AttributeDescriptor("onMouseOut", false, null,
0650: true);
0651: prop_onMouseOut.setValue(
0652: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0653: attrib);
0654: prop_onMouseOut
0655: .setValue(
0656: Constants.PropertyDescriptor.CATEGORY,
0657: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0658:
0659: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0660: "onMouseOver", beanClass, "getOnMouseOver",
0661: "setOnMouseOver");
0662: prop_onMouseOver.setDisplayName(resources
0663: .getString("TextField_onMouseOver_DisplayName"));
0664: prop_onMouseOver.setShortDescription(resources
0665: .getString("TextField_onMouseOver_Description"));
0666: prop_onMouseOver
0667: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0668: prop_onMouseOver.setExpert(false);
0669: prop_onMouseOver.setHidden(false);
0670: prop_onMouseOver.setPreferred(false);
0671: attrib = new AttributeDescriptor("onMouseOver", false,
0672: null, true);
0673: prop_onMouseOver.setValue(
0674: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0675: attrib);
0676: prop_onMouseOver
0677: .setValue(
0678: Constants.PropertyDescriptor.CATEGORY,
0679: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0680:
0681: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0682: "onMouseUp", beanClass, "getOnMouseUp",
0683: "setOnMouseUp");
0684: prop_onMouseUp.setDisplayName(resources
0685: .getString("TextField_onMouseUp_DisplayName"));
0686: prop_onMouseUp.setShortDescription(resources
0687: .getString("TextField_onMouseUp_Description"));
0688: prop_onMouseUp
0689: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0690: prop_onMouseUp.setExpert(false);
0691: prop_onMouseUp.setHidden(false);
0692: prop_onMouseUp.setPreferred(false);
0693: attrib = new AttributeDescriptor("onMouseUp", false, null,
0694: true);
0695: prop_onMouseUp.setValue(
0696: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0697: attrib);
0698: prop_onMouseUp
0699: .setValue(
0700: Constants.PropertyDescriptor.CATEGORY,
0701: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0702:
0703: PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0704: "onSelect", beanClass, "getOnSelect", "setOnSelect");
0705: prop_onSelect.setDisplayName(resources
0706: .getString("TextField_onSelect_DisplayName"));
0707: prop_onSelect.setShortDescription(resources
0708: .getString("TextField_onSelect_Description"));
0709: prop_onSelect
0710: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0711: prop_onSelect.setExpert(false);
0712: prop_onSelect.setHidden(false);
0713: prop_onSelect.setPreferred(false);
0714: attrib = new AttributeDescriptor("onSelect", false, null,
0715: true);
0716: prop_onSelect.setValue(
0717: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0718: attrib);
0719: prop_onSelect
0720: .setValue(
0721: Constants.PropertyDescriptor.CATEGORY,
0722: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0723:
0724: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0725: "readOnly", beanClass, "isReadOnly", "setReadOnly");
0726: prop_readOnly.setDisplayName(resources
0727: .getString("TextField_readOnly_DisplayName"));
0728: prop_readOnly.setShortDescription(resources
0729: .getString("TextField_readOnly_Description"));
0730: prop_readOnly.setExpert(false);
0731: prop_readOnly.setHidden(false);
0732: prop_readOnly.setPreferred(false);
0733: attrib = new AttributeDescriptor("readOnly", false, null,
0734: true);
0735: prop_readOnly.setValue(
0736: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0737: attrib);
0738: prop_readOnly
0739: .setValue(
0740: Constants.PropertyDescriptor.CATEGORY,
0741: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0742:
0743: PropertyDescriptor prop_style = new PropertyDescriptor(
0744: "style", beanClass, "getStyle", "setStyle");
0745: prop_style.setDisplayName(resources
0746: .getString("TextField_style_DisplayName"));
0747: prop_style.setShortDescription(resources
0748: .getString("TextField_style_Description"));
0749: prop_style
0750: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0751: prop_style.setExpert(false);
0752: prop_style.setHidden(false);
0753: prop_style.setPreferred(false);
0754: attrib = new AttributeDescriptor("style", false, null, true);
0755: prop_style.setValue(
0756: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0757: attrib);
0758: prop_style
0759: .setValue(
0760: Constants.PropertyDescriptor.CATEGORY,
0761: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0762:
0763: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0764: "styleClass", beanClass, "getStyleClass",
0765: "setStyleClass");
0766: prop_styleClass.setDisplayName(resources
0767: .getString("TextField_styleClass_DisplayName"));
0768: prop_styleClass.setShortDescription(resources
0769: .getString("TextField_styleClass_Description"));
0770: prop_styleClass
0771: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0772: prop_styleClass.setExpert(false);
0773: prop_styleClass.setHidden(false);
0774: prop_styleClass.setPreferred(false);
0775: attrib = new AttributeDescriptor("styleClass", false, null,
0776: true);
0777: prop_styleClass.setValue(
0778: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0779: attrib);
0780: prop_styleClass
0781: .setValue(
0782: Constants.PropertyDescriptor.CATEGORY,
0783: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0784:
0785: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0786: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0787: prop_tabIndex.setDisplayName(resources
0788: .getString("TextField_tabIndex_DisplayName"));
0789: prop_tabIndex.setShortDescription(resources
0790: .getString("TextField_tabIndex_Description"));
0791: prop_tabIndex
0792: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0793: prop_tabIndex.setExpert(false);
0794: prop_tabIndex.setHidden(false);
0795: prop_tabIndex.setPreferred(false);
0796: attrib = new AttributeDescriptor("tabIndex", false, null,
0797: true);
0798: prop_tabIndex.setValue(
0799: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0800: attrib);
0801: prop_tabIndex
0802: .setValue(
0803: Constants.PropertyDescriptor.CATEGORY,
0804: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0805: prop_tabIndex.setValue(
0806: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0807:
0808: PropertyDescriptor prop_text = new PropertyDescriptor(
0809: "text", beanClass, "getText", "setText");
0810: prop_text.setDisplayName(resources
0811: .getString("TextField_text_DisplayName"));
0812: prop_text.setShortDescription(resources
0813: .getString("TextField_text_Description"));
0814: prop_text
0815: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0816: prop_text.setExpert(false);
0817: prop_text.setHidden(false);
0818: prop_text.setPreferred(false);
0819: attrib = new AttributeDescriptor("text", false, null, true);
0820: prop_text.setValue(
0821: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0822: attrib);
0823: prop_text
0824: .setValue(
0825: Constants.PropertyDescriptor.CATEGORY,
0826: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0827:
0828: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0829: "toolTip", beanClass, "getToolTip", "setToolTip");
0830: prop_toolTip.setDisplayName(resources
0831: .getString("TextField_toolTip_DisplayName"));
0832: prop_toolTip.setShortDescription(resources
0833: .getString("TextField_toolTip_Description"));
0834: prop_toolTip
0835: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0836: prop_toolTip.setExpert(false);
0837: prop_toolTip.setHidden(false);
0838: prop_toolTip.setPreferred(false);
0839: attrib = new AttributeDescriptor("toolTip", false, null,
0840: true);
0841: prop_toolTip.setValue(
0842: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0843: attrib);
0844: prop_toolTip
0845: .setValue(
0846: Constants.PropertyDescriptor.CATEGORY,
0847: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0848:
0849: PropertyDescriptor prop_trim = new PropertyDescriptor(
0850: "trim", beanClass, "isTrim", "setTrim");
0851: prop_trim.setDisplayName(resources
0852: .getString("TextField_trim_DisplayName"));
0853: prop_trim.setShortDescription(resources
0854: .getString("TextField_trim_Description"));
0855: prop_trim.setExpert(false);
0856: prop_trim.setHidden(false);
0857: prop_trim.setPreferred(false);
0858: attrib = new AttributeDescriptor("trim", false, "true",
0859: true);
0860: prop_trim.setValue(
0861: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0862: attrib);
0863: prop_trim
0864: .setValue(
0865: Constants.PropertyDescriptor.CATEGORY,
0866: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0867:
0868: PropertyDescriptor prop_visible = new PropertyDescriptor(
0869: "visible", beanClass, "isVisible", "setVisible");
0870: prop_visible.setDisplayName(resources
0871: .getString("TextField_visible_DisplayName"));
0872: prop_visible.setShortDescription(resources
0873: .getString("TextField_visible_Description"));
0874: prop_visible.setExpert(false);
0875: prop_visible.setHidden(false);
0876: prop_visible.setPreferred(false);
0877: attrib = new AttributeDescriptor("visible", false, "true",
0878: true);
0879: prop_visible.setValue(
0880: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0881: attrib);
0882: prop_visible
0883: .setValue(
0884: Constants.PropertyDescriptor.CATEGORY,
0885: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0886:
0887: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0888: "attributes", beanClass, "getAttributes", null);
0889: prop_attributes.setDisplayName(resources
0890: .getString("TextField_attributes_DisplayName"));
0891: prop_attributes.setShortDescription(resources
0892: .getString("TextField_attributes_Description"));
0893: prop_attributes.setExpert(false);
0894: prop_attributes.setHidden(true);
0895: prop_attributes.setPreferred(false);
0896: prop_attributes
0897: .setValue(
0898: Constants.PropertyDescriptor.CATEGORY,
0899: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0900:
0901: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0902: "childCount", beanClass, "getChildCount", null);
0903: prop_childCount.setDisplayName(resources
0904: .getString("TextField_childCount_DisplayName"));
0905: prop_childCount.setShortDescription(resources
0906: .getString("TextField_childCount_Description"));
0907: prop_childCount.setExpert(false);
0908: prop_childCount.setHidden(true);
0909: prop_childCount.setPreferred(false);
0910: prop_childCount
0911: .setValue(
0912: Constants.PropertyDescriptor.CATEGORY,
0913: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0914:
0915: PropertyDescriptor prop_children = new PropertyDescriptor(
0916: "children", beanClass, "getChildren", null);
0917: prop_children.setDisplayName(resources
0918: .getString("TextField_children_DisplayName"));
0919: prop_children.setShortDescription(resources
0920: .getString("TextField_children_Description"));
0921: prop_children.setExpert(false);
0922: prop_children.setHidden(true);
0923: prop_children.setPreferred(false);
0924: prop_children
0925: .setValue(
0926: Constants.PropertyDescriptor.CATEGORY,
0927: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0928:
0929: PropertyDescriptor prop_converter = new PropertyDescriptor(
0930: "converter", beanClass, "getConverter",
0931: "setConverter");
0932: prop_converter.setDisplayName(resources
0933: .getString("TextField_converter_DisplayName"));
0934: prop_converter.setShortDescription(resources
0935: .getString("TextField_converter_Description"));
0936: prop_converter
0937: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
0938: prop_converter.setExpert(false);
0939: prop_converter.setHidden(false);
0940: prop_converter.setPreferred(false);
0941: attrib = new AttributeDescriptor("converter", false, null,
0942: true);
0943: prop_converter.setValue(
0944: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0945: attrib);
0946: prop_converter
0947: .setValue(
0948: Constants.PropertyDescriptor.CATEGORY,
0949: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0950:
0951: PropertyDescriptor prop_facets = new PropertyDescriptor(
0952: "facets", beanClass, "getFacets", null);
0953: prop_facets.setDisplayName(resources
0954: .getString("TextField_facets_DisplayName"));
0955: prop_facets.setShortDescription(resources
0956: .getString("TextField_facets_Description"));
0957: prop_facets.setExpert(false);
0958: prop_facets.setHidden(true);
0959: prop_facets.setPreferred(false);
0960: prop_facets
0961: .setValue(
0962: Constants.PropertyDescriptor.CATEGORY,
0963: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0964:
0965: PropertyDescriptor prop_family = new PropertyDescriptor(
0966: "family", beanClass, "getFamily", null);
0967: prop_family.setDisplayName(resources
0968: .getString("TextField_family_DisplayName"));
0969: prop_family.setShortDescription(resources
0970: .getString("TextField_family_Description"));
0971: prop_family.setExpert(false);
0972: prop_family.setHidden(true);
0973: prop_family.setPreferred(false);
0974: prop_family
0975: .setValue(
0976: Constants.PropertyDescriptor.CATEGORY,
0977: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0978:
0979: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0980: beanClass, "getId", "setId");
0981: prop_id.setDisplayName(resources
0982: .getString("TextField_id_DisplayName"));
0983: prop_id.setShortDescription(resources
0984: .getString("TextField_id_Description"));
0985: prop_id.setExpert(false);
0986: prop_id.setHidden(true);
0987: prop_id.setPreferred(false);
0988: attrib = new AttributeDescriptor("id", false, null, true);
0989: prop_id.setValue(
0990: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0991: attrib);
0992: prop_id
0993: .setValue(
0994: Constants.PropertyDescriptor.CATEGORY,
0995: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0996:
0997: PropertyDescriptor prop_immediate = new PropertyDescriptor(
0998: "immediate", beanClass, "isImmediate",
0999: "setImmediate");
1000: prop_immediate.setDisplayName(resources
1001: .getString("TextField_immediate_DisplayName"));
1002: prop_immediate.setShortDescription(resources
1003: .getString("TextField_immediate_Description"));
1004: prop_immediate.setExpert(false);
1005: prop_immediate.setHidden(false);
1006: prop_immediate.setPreferred(false);
1007: attrib = new AttributeDescriptor("immediate", false, null,
1008: true);
1009: prop_immediate.setValue(
1010: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1011: attrib);
1012: prop_immediate
1013: .setValue(
1014: Constants.PropertyDescriptor.CATEGORY,
1015: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1016:
1017: PropertyDescriptor prop_localValue = new PropertyDescriptor(
1018: "localValue", beanClass, "getLocalValue", null);
1019: prop_localValue.setDisplayName(resources
1020: .getString("TextField_localValue_DisplayName"));
1021: prop_localValue.setShortDescription(resources
1022: .getString("TextField_localValue_Description"));
1023: prop_localValue.setExpert(false);
1024: prop_localValue.setHidden(true);
1025: prop_localValue.setPreferred(false);
1026: prop_localValue
1027: .setValue(
1028: Constants.PropertyDescriptor.CATEGORY,
1029: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1030:
1031: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1032: "localValueSet", beanClass, "isLocalValueSet",
1033: "setLocalValueSet");
1034: prop_localValueSet.setDisplayName(resources
1035: .getString("TextField_localValueSet_DisplayName"));
1036: prop_localValueSet.setShortDescription(resources
1037: .getString("TextField_localValueSet_Description"));
1038: prop_localValueSet.setExpert(false);
1039: prop_localValueSet.setHidden(true);
1040: prop_localValueSet.setPreferred(false);
1041: prop_localValueSet
1042: .setValue(
1043: Constants.PropertyDescriptor.CATEGORY,
1044: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1045:
1046: PropertyDescriptor prop_parent = new PropertyDescriptor(
1047: "parent", beanClass, "getParent", null);
1048: prop_parent.setDisplayName(resources
1049: .getString("TextField_parent_DisplayName"));
1050: prop_parent.setShortDescription(resources
1051: .getString("TextField_parent_Description"));
1052: prop_parent.setExpert(false);
1053: prop_parent.setHidden(true);
1054: prop_parent.setPreferred(false);
1055: prop_parent
1056: .setValue(
1057: Constants.PropertyDescriptor.CATEGORY,
1058: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1059:
1060: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1061: "rendered", beanClass, "isRendered", "setRendered");
1062: prop_rendered.setDisplayName(resources
1063: .getString("TextField_rendered_DisplayName"));
1064: prop_rendered.setShortDescription(resources
1065: .getString("TextField_rendered_Description"));
1066: prop_rendered.setExpert(false);
1067: prop_rendered.setHidden(false);
1068: prop_rendered.setPreferred(false);
1069: attrib = new AttributeDescriptor("rendered", false, null,
1070: true);
1071: prop_rendered.setValue(
1072: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1073: attrib);
1074: prop_rendered
1075: .setValue(
1076: Constants.PropertyDescriptor.CATEGORY,
1077: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1078:
1079: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1080: "rendererType", beanClass, "getRendererType",
1081: "setRendererType");
1082: prop_rendererType.setDisplayName(resources
1083: .getString("TextField_rendererType_DisplayName"));
1084: prop_rendererType.setShortDescription(resources
1085: .getString("TextField_rendererType_Description"));
1086: prop_rendererType.setExpert(false);
1087: prop_rendererType.setHidden(true);
1088: prop_rendererType.setPreferred(false);
1089: prop_rendererType
1090: .setValue(
1091: Constants.PropertyDescriptor.CATEGORY,
1092: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1093:
1094: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1095: "rendersChildren", beanClass, "getRendersChildren",
1096: null);
1097: prop_rendersChildren
1098: .setDisplayName(resources
1099: .getString("TextField_rendersChildren_DisplayName"));
1100: prop_rendersChildren
1101: .setShortDescription(resources
1102: .getString("TextField_rendersChildren_Description"));
1103: prop_rendersChildren.setExpert(false);
1104: prop_rendersChildren.setHidden(true);
1105: prop_rendersChildren.setPreferred(false);
1106: prop_rendersChildren
1107: .setValue(
1108: Constants.PropertyDescriptor.CATEGORY,
1109: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1110:
1111: PropertyDescriptor prop_required = new PropertyDescriptor(
1112: "required", beanClass, "isRequired", "setRequired");
1113: prop_required.setDisplayName(resources
1114: .getString("TextField_required_DisplayName"));
1115: prop_required.setShortDescription(resources
1116: .getString("TextField_required_Description"));
1117: prop_required.setExpert(false);
1118: prop_required.setHidden(false);
1119: prop_required.setPreferred(false);
1120: attrib = new AttributeDescriptor("required", false, null,
1121: true);
1122: prop_required.setValue(
1123: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1124: attrib);
1125: prop_required
1126: .setValue(
1127: Constants.PropertyDescriptor.CATEGORY,
1128: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1129:
1130: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1131: "submittedValue", beanClass, "getSubmittedValue",
1132: "setSubmittedValue");
1133: prop_submittedValue.setDisplayName(resources
1134: .getString("TextField_submittedValue_DisplayName"));
1135: prop_submittedValue.setShortDescription(resources
1136: .getString("TextField_submittedValue_Description"));
1137: prop_submittedValue.setExpert(false);
1138: prop_submittedValue.setHidden(true);
1139: prop_submittedValue.setPreferred(false);
1140: prop_submittedValue
1141: .setValue(
1142: Constants.PropertyDescriptor.CATEGORY,
1143: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1144:
1145: PropertyDescriptor prop_validator = new PropertyDescriptor(
1146: "validator", beanClass, "getValidator",
1147: "setValidator");
1148: prop_validator.setDisplayName(resources
1149: .getString("TextField_validator_DisplayName"));
1150: prop_validator.setShortDescription(resources
1151: .getString("TextField_validator_Description"));
1152: prop_validator
1153: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1154: prop_validator.setExpert(false);
1155: prop_validator.setHidden(false);
1156: prop_validator.setPreferred(false);
1157: attrib = new AttributeDescriptor("validator", false, null,
1158: true);
1159: prop_validator.setValue(
1160: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1161: attrib);
1162: prop_validator
1163: .setValue(
1164: Constants.PropertyDescriptor.CATEGORY,
1165: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1166:
1167: PropertyDescriptor prop_value = new PropertyDescriptor(
1168: "value", beanClass, "getValue", "setValue");
1169: prop_value.setDisplayName(resources
1170: .getString("TextField_value_DisplayName"));
1171: prop_value.setShortDescription(resources
1172: .getString("TextField_value_Description"));
1173: prop_value.setExpert(false);
1174: prop_value.setHidden(true);
1175: prop_value.setPreferred(false);
1176: prop_value
1177: .setValue(
1178: Constants.PropertyDescriptor.CATEGORY,
1179: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1180:
1181: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1182: "valueChangeListener", beanClass,
1183: "getValueChangeListener", "setValueChangeListener");
1184: prop_valueChangeListener
1185: .setDisplayName(resources
1186: .getString("TextField_valueChangeListener_DisplayName"));
1187: prop_valueChangeListener
1188: .setShortDescription(resources
1189: .getString("TextField_valueChangeListener_Description"));
1190: prop_valueChangeListener
1191: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1192: prop_valueChangeListener.setExpert(false);
1193: prop_valueChangeListener.setHidden(false);
1194: prop_valueChangeListener.setPreferred(false);
1195: attrib = new AttributeDescriptor("valueChangeListener",
1196: false, null, true);
1197: prop_valueChangeListener.setValue(
1198: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1199: attrib);
1200: prop_valueChangeListener
1201: .setValue(
1202: Constants.PropertyDescriptor.CATEGORY,
1203: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1204:
1205: propDescriptors = new PropertyDescriptor[] {
1206: prop_attributes, prop_childCount, prop_children,
1207: prop_columns, prop_converter, prop_disabled,
1208: prop_facets, prop_family, prop_id, prop_immediate,
1209: prop_label, prop_labelLevel, prop_localValue,
1210: prop_localValueSet, prop_maxLength, prop_onBlur,
1211: prop_onChange, prop_onClick, prop_onDblClick,
1212: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1213: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1214: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1215: prop_onSelect, prop_parent, prop_readOnly,
1216: prop_rendered, prop_rendererType,
1217: prop_rendersChildren, prop_required, prop_style,
1218: prop_styleClass, prop_submittedValue,
1219: prop_tabIndex, prop_text, prop_toolTip, prop_trim,
1220: prop_validator, prop_value,
1221: prop_valueChangeListener, prop_visible, };
1222: return propDescriptors;
1223:
1224: } catch (IntrospectionException e) {
1225: e.printStackTrace();
1226: return null;
1227: }
1228:
1229: }
1230:
1231: }
1232: //GEN-END:BeanInfo
|