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