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 AddRemoveBeanInfoBase 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(), AddRemoveBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>AddRemoveBeanInfoBase</code>.</p>
0075: */
0076: public AddRemoveBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.AddRemove.class;
0079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/AddRemove_C16";
0080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/AddRemove_C32";
0081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/AddRemove_M16";
0082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/AddRemove_M32";
0083:
0084: }
0085:
0086: /**
0087: * <p>The bean class that this BeanInfo represents.
0088: */
0089: protected Class beanClass;
0090:
0091: /**
0092: * <p>The cached BeanDescriptor.</p>
0093: */
0094: protected BeanDescriptor beanDescriptor;
0095:
0096: /**
0097: * <p>The index of the default property.</p>
0098: */
0099: protected int defaultPropertyIndex = -2;
0100:
0101: /**
0102: * <p>The name of the default property.</p>
0103: */
0104: protected String defaultPropertyName;
0105:
0106: /**
0107: * <p>The 16x16 color icon.</p>
0108: */
0109: protected String iconFileName_C16;
0110:
0111: /**
0112: * <p>The 32x32 color icon.</p>
0113: */
0114: protected String iconFileName_C32;
0115:
0116: /**
0117: * <p>The 16x16 monochrome icon.</p>
0118: */
0119: protected String iconFileName_M16;
0120:
0121: /**
0122: * <p>The 32x32 monochrome icon.</p>
0123: */
0124: protected String iconFileName_M32;
0125:
0126: /**
0127: * <p>The cached property descriptors.</p>
0128: */
0129: protected PropertyDescriptor[] propDescriptors;
0130:
0131: /**
0132: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
0133: */
0134: public BeanDescriptor getBeanDescriptor() {
0135:
0136: if (beanDescriptor != null) {
0137: return beanDescriptor;
0138: }
0139:
0140: beanDescriptor = new BeanDescriptor(beanClass);
0141: beanDescriptor.setDisplayName(resources
0142: .getString("AddRemove_DisplayName"));
0143: beanDescriptor.setShortDescription(resources
0144: .getString("AddRemove_Description"));
0145: beanDescriptor.setExpert(false);
0146: beanDescriptor.setHidden(false);
0147: beanDescriptor.setPreferred(false);
0148: beanDescriptor.setValue(
0149: Constants.BeanDescriptor.FACET_DESCRIPTORS,
0150: getFacetDescriptors());
0151: beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
0152: "projrave_ui_elements_palette_bh_add_remove_list");
0153: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0154: "addRemoveList");
0155: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0156: Boolean.TRUE);
0157: beanDescriptor
0158: .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
0159: "projrave_ui_elements_palette_bh_propsheets_bh_addremovelist_props");
0160: beanDescriptor.setValue(
0161: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0162: getCategoryDescriptors());
0163: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0164: "addRemove");
0165: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0166: "ui");
0167: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0168: "http://www.sun.com/web/ui");
0169:
0170: return beanDescriptor;
0171:
0172: }
0173:
0174: /**
0175: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0176: */
0177: private CategoryDescriptor[] getCategoryDescriptors() {
0178:
0179: return com.sun.rave.designtime.base.CategoryDescriptors
0180: .getDefaultCategoryDescriptors();
0181:
0182: }
0183:
0184: /**
0185: * <p>Return the index of the default property, or
0186: * -1 if there is no default property.</p>
0187: */
0188: public int getDefaultPropertyIndex() {
0189:
0190: if (defaultPropertyIndex > -2) {
0191: return defaultPropertyIndex;
0192: } else {
0193: if (defaultPropertyName == null) {
0194: defaultPropertyIndex = -1;
0195: } else {
0196: PropertyDescriptor pd[] = getPropertyDescriptors();
0197: for (int i = 0; i < pd.length; i++) {
0198: if (defaultPropertyName.equals(pd[i].getName())) {
0199: defaultPropertyIndex = i;
0200: break;
0201: }
0202: }
0203: }
0204: }
0205: return defaultPropertyIndex;
0206: }
0207:
0208: /**
0209: * <p>The cached facet descriptors.</p>
0210: */
0211: protected FacetDescriptor[] facetDescriptors;
0212:
0213: /**
0214: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0215: */
0216: public FacetDescriptor[] getFacetDescriptors() {
0217:
0218: if (facetDescriptors != null) {
0219: return facetDescriptors;
0220: }
0221: try {
0222:
0223: FacetDescriptor facet_addAllButton = new FacetDescriptor(
0224: "addAllButton");
0225: facet_addAllButton.setDisplayName(resources
0226: .getString("AddRemove_addAllButton_DisplayName"));
0227: facet_addAllButton.setShortDescription(resources
0228: .getString("AddRemove_addAllButton_Description"));
0229:
0230: FacetDescriptor facet_addButton = new FacetDescriptor(
0231: "addButton");
0232: facet_addButton.setDisplayName(resources
0233: .getString("AddRemove_addButton_DisplayName"));
0234: facet_addButton.setShortDescription(resources
0235: .getString("AddRemove_addButton_Description"));
0236:
0237: FacetDescriptor facet_footer = new FacetDescriptor("footer");
0238: facet_footer.setDisplayName(resources
0239: .getString("AddRemove_footer_DisplayName"));
0240: facet_footer.setShortDescription(resources
0241: .getString("AddRemove_footer_Description"));
0242:
0243: FacetDescriptor facet_header = new FacetDescriptor("header");
0244: facet_header.setDisplayName(resources
0245: .getString("AddRemove_header_DisplayName"));
0246: facet_header.setShortDescription(resources
0247: .getString("AddRemove_header_Description"));
0248:
0249: FacetDescriptor facet_moveDownButton = new FacetDescriptor(
0250: "moveDownButton");
0251: facet_moveDownButton.setDisplayName(resources
0252: .getString("AddRemove_moveDownButton_DisplayName"));
0253: facet_moveDownButton.setShortDescription(resources
0254: .getString("AddRemove_moveDownButton_Description"));
0255:
0256: FacetDescriptor facet_moveUpButton = new FacetDescriptor(
0257: "moveUpButton");
0258: facet_moveUpButton.setDisplayName(resources
0259: .getString("AddRemove_moveUpButton_DisplayName"));
0260: facet_moveUpButton.setShortDescription(resources
0261: .getString("AddRemove_moveUpButton_Description"));
0262:
0263: FacetDescriptor facet_removeAllButton = new FacetDescriptor(
0264: "removeAllButton");
0265: facet_removeAllButton
0266: .setDisplayName(resources
0267: .getString("AddRemove_removeAllButton_DisplayName"));
0268: facet_removeAllButton
0269: .setShortDescription(resources
0270: .getString("AddRemove_removeAllButton_Description"));
0271:
0272: FacetDescriptor facet_removeButton = new FacetDescriptor(
0273: "removeButton");
0274: facet_removeButton.setDisplayName(resources
0275: .getString("AddRemove_removeButton_DisplayName"));
0276: facet_removeButton.setShortDescription(resources
0277: .getString("AddRemove_removeButton_Description"));
0278:
0279: facetDescriptors = new FacetDescriptor[] {
0280: facet_addAllButton, facet_addButton, facet_footer,
0281: facet_header, facet_moveDownButton,
0282: facet_moveUpButton, facet_removeAllButton,
0283: facet_removeButton, };
0284: return facetDescriptors;
0285:
0286: } catch (RuntimeException e) {
0287: System.out.println(e.getMessage());
0288: e.printStackTrace(System.out);
0289: throw e;
0290: }
0291:
0292: }
0293:
0294: /**
0295: * <p>Return the specified image (if any)
0296: * for this component class.</p>
0297: */
0298: public Image getIcon(int kind) {
0299:
0300: String name;
0301: switch (kind) {
0302: case ICON_COLOR_16x16:
0303: name = iconFileName_C16;
0304: break;
0305: case ICON_COLOR_32x32:
0306: name = iconFileName_C32;
0307: break;
0308: case ICON_MONO_16x16:
0309: name = iconFileName_M16;
0310: break;
0311: case ICON_MONO_32x32:
0312: name = iconFileName_M32;
0313: break;
0314: default:
0315: name = null;
0316: break;
0317: }
0318: if (name == null) {
0319: return null;
0320: }
0321:
0322: Image image = loadImage(name + ".png");
0323: if (image == null) {
0324: image = loadImage(name + ".gif");
0325: }
0326: return image;
0327:
0328: }
0329:
0330: /**
0331: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0332: */
0333: private java.lang.Class loadClass(java.lang.String name) {
0334:
0335: try {
0336: return Class.forName(name);
0337: } catch (ClassNotFoundException e) {
0338: throw new RuntimeException(e);
0339: }
0340:
0341: }
0342:
0343: /**
0344: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0345: */
0346: public PropertyDescriptor[] getPropertyDescriptors() {
0347:
0348: if (propDescriptors != null) {
0349: return propDescriptors;
0350: }
0351: AttributeDescriptor attrib = null;
0352:
0353: try {
0354:
0355: PropertyDescriptor prop_availableItemsLabel = new PropertyDescriptor(
0356: "availableItemsLabel", beanClass,
0357: "getAvailableItemsLabel", "setAvailableItemsLabel");
0358: prop_availableItemsLabel
0359: .setDisplayName(resources
0360: .getString("AddRemove_availableItemsLabel_DisplayName"));
0361: prop_availableItemsLabel
0362: .setShortDescription(resources
0363: .getString("AddRemove_availableItemsLabel_Description"));
0364: prop_availableItemsLabel
0365: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0366: prop_availableItemsLabel.setExpert(false);
0367: prop_availableItemsLabel.setHidden(false);
0368: prop_availableItemsLabel.setPreferred(false);
0369: attrib = new AttributeDescriptor("availableItemsLabel",
0370: false, null, true);
0371: prop_availableItemsLabel.setValue(
0372: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0373: attrib);
0374: prop_availableItemsLabel
0375: .setValue(
0376: Constants.PropertyDescriptor.CATEGORY,
0377: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0378:
0379: PropertyDescriptor prop_duplicateSelections = new PropertyDescriptor(
0380: "duplicateSelections", beanClass,
0381: "isDuplicateSelections", "setDuplicateSelections");
0382: prop_duplicateSelections
0383: .setDisplayName(resources
0384: .getString("AddRemove_duplicateSelections_DisplayName"));
0385: prop_duplicateSelections
0386: .setShortDescription(resources
0387: .getString("AddRemove_duplicateSelections_Description"));
0388: prop_duplicateSelections.setExpert(false);
0389: prop_duplicateSelections.setHidden(false);
0390: prop_duplicateSelections.setPreferred(false);
0391: attrib = new AttributeDescriptor("duplicateSelections",
0392: false, null, true);
0393: prop_duplicateSelections.setValue(
0394: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0395: attrib);
0396: prop_duplicateSelections
0397: .setValue(
0398: Constants.PropertyDescriptor.CATEGORY,
0399: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0400:
0401: PropertyDescriptor prop_moveButtons = new PropertyDescriptor(
0402: "moveButtons", beanClass, "isMoveButtons",
0403: "setMoveButtons");
0404: prop_moveButtons.setDisplayName(resources
0405: .getString("AddRemove_moveButtons_DisplayName"));
0406: prop_moveButtons.setShortDescription(resources
0407: .getString("AddRemove_moveButtons_Description"));
0408: prop_moveButtons.setExpert(false);
0409: prop_moveButtons.setHidden(false);
0410: prop_moveButtons.setPreferred(false);
0411: attrib = new AttributeDescriptor("moveButtons", false,
0412: null, true);
0413: prop_moveButtons.setValue(
0414: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0415: attrib);
0416: prop_moveButtons
0417: .setValue(
0418: Constants.PropertyDescriptor.CATEGORY,
0419: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0420:
0421: PropertyDescriptor prop_selectAll = new PropertyDescriptor(
0422: "selectAll", beanClass, "isSelectAll",
0423: "setSelectAll");
0424: prop_selectAll.setDisplayName(resources
0425: .getString("AddRemove_selectAll_DisplayName"));
0426: prop_selectAll.setShortDescription(resources
0427: .getString("AddRemove_selectAll_Description"));
0428: prop_selectAll.setExpert(false);
0429: prop_selectAll.setHidden(false);
0430: prop_selectAll.setPreferred(false);
0431: attrib = new AttributeDescriptor("selectAll", false, null,
0432: true);
0433: prop_selectAll.setValue(
0434: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0435: attrib);
0436: prop_selectAll
0437: .setValue(
0438: Constants.PropertyDescriptor.CATEGORY,
0439: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0440:
0441: PropertyDescriptor prop_selectedItemsLabel = new PropertyDescriptor(
0442: "selectedItemsLabel", beanClass,
0443: "getSelectedItemsLabel", "setSelectedItemsLabel");
0444: prop_selectedItemsLabel
0445: .setDisplayName(resources
0446: .getString("AddRemove_selectedItemsLabel_DisplayName"));
0447: prop_selectedItemsLabel
0448: .setShortDescription(resources
0449: .getString("AddRemove_selectedItemsLabel_Description"));
0450: prop_selectedItemsLabel
0451: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0452: prop_selectedItemsLabel.setExpert(false);
0453: prop_selectedItemsLabel.setHidden(false);
0454: prop_selectedItemsLabel.setPreferred(false);
0455: attrib = new AttributeDescriptor("selectedItemsLabel",
0456: false, null, true);
0457: prop_selectedItemsLabel.setValue(
0458: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0459: attrib);
0460: prop_selectedItemsLabel
0461: .setValue(
0462: Constants.PropertyDescriptor.CATEGORY,
0463: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0464:
0465: PropertyDescriptor prop_sorted = new PropertyDescriptor(
0466: "sorted", beanClass, "isSorted", "setSorted");
0467: prop_sorted.setDisplayName(resources
0468: .getString("AddRemove_sorted_DisplayName"));
0469: prop_sorted.setShortDescription(resources
0470: .getString("AddRemove_sorted_Description"));
0471: prop_sorted.setExpert(false);
0472: prop_sorted.setHidden(false);
0473: prop_sorted.setPreferred(false);
0474: attrib = new AttributeDescriptor("sorted", false, null,
0475: true);
0476: prop_sorted.setValue(
0477: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0478: attrib);
0479: prop_sorted
0480: .setValue(
0481: Constants.PropertyDescriptor.CATEGORY,
0482: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0483:
0484: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0485: "toolTip", beanClass, "getToolTip", "setToolTip");
0486: prop_toolTip.setDisplayName(resources
0487: .getString("AddRemove_toolTip_DisplayName"));
0488: prop_toolTip.setShortDescription(resources
0489: .getString("AddRemove_toolTip_Description"));
0490: prop_toolTip
0491: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0492: prop_toolTip.setExpert(false);
0493: prop_toolTip.setHidden(false);
0494: prop_toolTip.setPreferred(false);
0495: attrib = new AttributeDescriptor("toolTip", false, null,
0496: true);
0497: prop_toolTip.setValue(
0498: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0499: attrib);
0500: prop_toolTip
0501: .setValue(
0502: Constants.PropertyDescriptor.CATEGORY,
0503: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0504:
0505: PropertyDescriptor prop_vertical = new PropertyDescriptor(
0506: "vertical", beanClass, "isVertical", "setVertical");
0507: prop_vertical.setDisplayName(resources
0508: .getString("AddRemove_vertical_DisplayName"));
0509: prop_vertical.setShortDescription(resources
0510: .getString("AddRemove_vertical_Description"));
0511: prop_vertical.setExpert(false);
0512: prop_vertical.setHidden(false);
0513: prop_vertical.setPreferred(false);
0514: attrib = new AttributeDescriptor("vertical", false, null,
0515: true);
0516: prop_vertical.setValue(
0517: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0518: attrib);
0519: prop_vertical
0520: .setValue(
0521: Constants.PropertyDescriptor.CATEGORY,
0522: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0523:
0524: PropertyDescriptor prop_labelOnTop = new PropertyDescriptor(
0525: "labelOnTop", beanClass, "isLabelOnTop",
0526: "setLabelOnTop");
0527: prop_labelOnTop.setDisplayName(resources
0528: .getString("AddRemove_labelOnTop_DisplayName"));
0529: prop_labelOnTop.setShortDescription(resources
0530: .getString("AddRemove_labelOnTop_Description"));
0531: prop_labelOnTop.setExpert(false);
0532: prop_labelOnTop.setHidden(false);
0533: prop_labelOnTop.setPreferred(false);
0534: attrib = new AttributeDescriptor("labelOnTop", false, null,
0535: true);
0536: prop_labelOnTop.setValue(
0537: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0538: attrib);
0539: prop_labelOnTop
0540: .setValue(
0541: Constants.PropertyDescriptor.CATEGORY,
0542: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0543:
0544: PropertyDescriptor prop_rows = new PropertyDescriptor(
0545: "rows", beanClass, "getRows", "setRows");
0546: prop_rows.setDisplayName(resources
0547: .getString("AddRemove_rows_DisplayName"));
0548: prop_rows.setShortDescription(resources
0549: .getString("AddRemove_rows_Description"));
0550: prop_rows
0551: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0552: prop_rows.setExpert(false);
0553: prop_rows.setHidden(false);
0554: prop_rows.setPreferred(false);
0555: attrib = new AttributeDescriptor("rows", false, "12", true);
0556: prop_rows.setValue(
0557: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0558: attrib);
0559: prop_rows
0560: .setValue(
0561: Constants.PropertyDescriptor.CATEGORY,
0562: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0563: prop_rows.setValue(
0564: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0565:
0566: PropertyDescriptor prop_separators = new PropertyDescriptor(
0567: "separators", beanClass, "isSeparators",
0568: "setSeparators");
0569: prop_separators.setDisplayName(resources
0570: .getString("AddRemove_separators_DisplayName"));
0571: prop_separators.setShortDescription(resources
0572: .getString("AddRemove_separators_Description"));
0573: prop_separators.setExpert(false);
0574: prop_separators.setHidden(true);
0575: prop_separators.setPreferred(false);
0576: prop_separators
0577: .setValue(
0578: Constants.PropertyDescriptor.CATEGORY,
0579: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0580:
0581: PropertyDescriptor prop_visible = new PropertyDescriptor(
0582: "visible", beanClass, "isVisible", "setVisible");
0583: prop_visible.setDisplayName(resources
0584: .getString("AddRemove_visible_DisplayName"));
0585: prop_visible.setShortDescription(resources
0586: .getString("AddRemove_visible_Description"));
0587: prop_visible.setExpert(false);
0588: prop_visible.setHidden(false);
0589: prop_visible.setPreferred(false);
0590: attrib = new AttributeDescriptor("visible", false, "true",
0591: true);
0592: prop_visible.setValue(
0593: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0594: attrib);
0595: prop_visible
0596: .setValue(
0597: Constants.PropertyDescriptor.CATEGORY,
0598: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0599:
0600: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0601: "disabled", beanClass, "isDisabled", "setDisabled");
0602: prop_disabled.setDisplayName(resources
0603: .getString("AddRemove_disabled_DisplayName"));
0604: prop_disabled.setShortDescription(resources
0605: .getString("AddRemove_disabled_Description"));
0606: prop_disabled.setExpert(false);
0607: prop_disabled.setHidden(false);
0608: prop_disabled.setPreferred(false);
0609: attrib = new AttributeDescriptor("disabled", false, null,
0610: true);
0611: prop_disabled.setValue(
0612: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0613: attrib);
0614: prop_disabled
0615: .setValue(
0616: Constants.PropertyDescriptor.CATEGORY,
0617: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0618:
0619: PropertyDescriptor prop_items = new PropertyDescriptor(
0620: "items", beanClass, "getItems", "setItems");
0621: prop_items.setDisplayName(resources
0622: .getString("AddRemove_items_DisplayName"));
0623: prop_items.setShortDescription(resources
0624: .getString("AddRemove_items_Description"));
0625: prop_items
0626: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0627: prop_items.setExpert(false);
0628: prop_items.setHidden(false);
0629: prop_items.setPreferred(false);
0630: attrib = new AttributeDescriptor("items", false, null, true);
0631: prop_items.setValue(
0632: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0633: attrib);
0634: prop_items
0635: .setValue(
0636: Constants.PropertyDescriptor.CATEGORY,
0637: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0638: prop_items
0639: .setValue(
0640: "bindingPanelClassNames",
0641: new Class[] {
0642: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindOptionsToDataProviderPanel.class,
0643: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0644:
0645: PropertyDescriptor prop_label = new PropertyDescriptor(
0646: "label", beanClass, "getLabel", "setLabel");
0647: prop_label.setDisplayName(resources
0648: .getString("AddRemove_label_DisplayName"));
0649: prop_label.setShortDescription(resources
0650: .getString("AddRemove_label_Description"));
0651: prop_label
0652: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0653: prop_label.setExpert(false);
0654: prop_label.setHidden(false);
0655: prop_label.setPreferred(false);
0656: attrib = new AttributeDescriptor("label", false, null, true);
0657: prop_label.setValue(
0658: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0659: attrib);
0660: prop_label
0661: .setValue(
0662: Constants.PropertyDescriptor.CATEGORY,
0663: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0664:
0665: PropertyDescriptor prop_labelLevel = new PropertyDescriptor(
0666: "labelLevel", beanClass, "getLabelLevel",
0667: "setLabelLevel");
0668: prop_labelLevel.setDisplayName(resources
0669: .getString("AddRemove_labelLevel_DisplayName"));
0670: prop_labelLevel.setShortDescription(resources
0671: .getString("AddRemove_labelLevel_Description"));
0672: prop_labelLevel
0673: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0674: prop_labelLevel.setExpert(false);
0675: prop_labelLevel.setHidden(true);
0676: prop_labelLevel.setPreferred(false);
0677: prop_labelLevel
0678: .setValue(
0679: Constants.PropertyDescriptor.CATEGORY,
0680: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0681: prop_labelLevel
0682: .setValue(
0683: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0684: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.LabelLevelsDomain.class);
0685:
0686: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0687: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0688: prop_onBlur.setDisplayName(resources
0689: .getString("AddRemove_onBlur_DisplayName"));
0690: prop_onBlur.setShortDescription(resources
0691: .getString("AddRemove_onBlur_Description"));
0692: prop_onBlur
0693: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0694: prop_onBlur.setExpert(false);
0695: prop_onBlur.setHidden(true);
0696: prop_onBlur.setPreferred(false);
0697: prop_onBlur
0698: .setValue(
0699: Constants.PropertyDescriptor.CATEGORY,
0700: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0701:
0702: PropertyDescriptor prop_onChange = new PropertyDescriptor(
0703: "onChange", beanClass, "getOnChange", "setOnChange");
0704: prop_onChange.setDisplayName(resources
0705: .getString("AddRemove_onChange_DisplayName"));
0706: prop_onChange.setShortDescription(resources
0707: .getString("AddRemove_onChange_Description"));
0708: prop_onChange
0709: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0710: prop_onChange.setExpert(false);
0711: prop_onChange.setHidden(true);
0712: prop_onChange.setPreferred(false);
0713: prop_onChange
0714: .setValue(
0715: Constants.PropertyDescriptor.CATEGORY,
0716: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0717:
0718: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0719: "onClick", beanClass, "getOnClick", "setOnClick");
0720: prop_onClick.setDisplayName(resources
0721: .getString("AddRemove_onClick_DisplayName"));
0722: prop_onClick.setShortDescription(resources
0723: .getString("AddRemove_onClick_Description"));
0724: prop_onClick
0725: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0726: prop_onClick.setExpert(false);
0727: prop_onClick.setHidden(true);
0728: prop_onClick.setPreferred(false);
0729: prop_onClick
0730: .setValue(
0731: Constants.PropertyDescriptor.CATEGORY,
0732: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0733:
0734: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0735: "onDblClick", beanClass, "getOnDblClick",
0736: "setOnDblClick");
0737: prop_onDblClick.setDisplayName(resources
0738: .getString("AddRemove_onDblClick_DisplayName"));
0739: prop_onDblClick.setShortDescription(resources
0740: .getString("AddRemove_onDblClick_Description"));
0741: prop_onDblClick
0742: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0743: prop_onDblClick.setExpert(false);
0744: prop_onDblClick.setHidden(true);
0745: prop_onDblClick.setPreferred(false);
0746: prop_onDblClick
0747: .setValue(
0748: Constants.PropertyDescriptor.CATEGORY,
0749: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0750:
0751: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0752: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0753: prop_onFocus.setDisplayName(resources
0754: .getString("AddRemove_onFocus_DisplayName"));
0755: prop_onFocus.setShortDescription(resources
0756: .getString("AddRemove_onFocus_Description"));
0757: prop_onFocus
0758: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0759: prop_onFocus.setExpert(false);
0760: prop_onFocus.setHidden(true);
0761: prop_onFocus.setPreferred(false);
0762: prop_onFocus
0763: .setValue(
0764: Constants.PropertyDescriptor.CATEGORY,
0765: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0766:
0767: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0768: "onKeyDown", beanClass, "getOnKeyDown",
0769: "setOnKeyDown");
0770: prop_onKeyDown.setDisplayName(resources
0771: .getString("AddRemove_onKeyDown_DisplayName"));
0772: prop_onKeyDown.setShortDescription(resources
0773: .getString("AddRemove_onKeyDown_Description"));
0774: prop_onKeyDown
0775: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0776: prop_onKeyDown.setExpert(false);
0777: prop_onKeyDown.setHidden(true);
0778: prop_onKeyDown.setPreferred(false);
0779: prop_onKeyDown
0780: .setValue(
0781: Constants.PropertyDescriptor.CATEGORY,
0782: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0783:
0784: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0785: "onKeyPress", beanClass, "getOnKeyPress",
0786: "setOnKeyPress");
0787: prop_onKeyPress.setDisplayName(resources
0788: .getString("AddRemove_onKeyPress_DisplayName"));
0789: prop_onKeyPress.setShortDescription(resources
0790: .getString("AddRemove_onKeyPress_Description"));
0791: prop_onKeyPress
0792: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0793: prop_onKeyPress.setExpert(false);
0794: prop_onKeyPress.setHidden(true);
0795: prop_onKeyPress.setPreferred(false);
0796: prop_onKeyPress
0797: .setValue(
0798: Constants.PropertyDescriptor.CATEGORY,
0799: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0800:
0801: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0802: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0803: prop_onKeyUp.setDisplayName(resources
0804: .getString("AddRemove_onKeyUp_DisplayName"));
0805: prop_onKeyUp.setShortDescription(resources
0806: .getString("AddRemove_onKeyUp_Description"));
0807: prop_onKeyUp
0808: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0809: prop_onKeyUp.setExpert(false);
0810: prop_onKeyUp.setHidden(true);
0811: prop_onKeyUp.setPreferred(false);
0812: prop_onKeyUp
0813: .setValue(
0814: Constants.PropertyDescriptor.CATEGORY,
0815: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0816:
0817: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0818: "onMouseDown", beanClass, "getOnMouseDown",
0819: "setOnMouseDown");
0820: prop_onMouseDown.setDisplayName(resources
0821: .getString("AddRemove_onMouseDown_DisplayName"));
0822: prop_onMouseDown.setShortDescription(resources
0823: .getString("AddRemove_onMouseDown_Description"));
0824: prop_onMouseDown
0825: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0826: prop_onMouseDown.setExpert(false);
0827: prop_onMouseDown.setHidden(true);
0828: prop_onMouseDown.setPreferred(false);
0829: prop_onMouseDown
0830: .setValue(
0831: Constants.PropertyDescriptor.CATEGORY,
0832: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0833:
0834: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0835: "onMouseMove", beanClass, "getOnMouseMove",
0836: "setOnMouseMove");
0837: prop_onMouseMove.setDisplayName(resources
0838: .getString("AddRemove_onMouseMove_DisplayName"));
0839: prop_onMouseMove.setShortDescription(resources
0840: .getString("AddRemove_onMouseMove_Description"));
0841: prop_onMouseMove
0842: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0843: prop_onMouseMove.setExpert(false);
0844: prop_onMouseMove.setHidden(true);
0845: prop_onMouseMove.setPreferred(false);
0846: prop_onMouseMove
0847: .setValue(
0848: Constants.PropertyDescriptor.CATEGORY,
0849: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0850:
0851: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0852: "onMouseOut", beanClass, "getOnMouseOut",
0853: "setOnMouseOut");
0854: prop_onMouseOut.setDisplayName(resources
0855: .getString("AddRemove_onMouseOut_DisplayName"));
0856: prop_onMouseOut.setShortDescription(resources
0857: .getString("AddRemove_onMouseOut_Description"));
0858: prop_onMouseOut
0859: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0860: prop_onMouseOut.setExpert(false);
0861: prop_onMouseOut.setHidden(true);
0862: prop_onMouseOut.setPreferred(false);
0863: prop_onMouseOut
0864: .setValue(
0865: Constants.PropertyDescriptor.CATEGORY,
0866: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0867:
0868: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0869: "onMouseOver", beanClass, "getOnMouseOver",
0870: "setOnMouseOver");
0871: prop_onMouseOver.setDisplayName(resources
0872: .getString("AddRemove_onMouseOver_DisplayName"));
0873: prop_onMouseOver.setShortDescription(resources
0874: .getString("AddRemove_onMouseOver_Description"));
0875: prop_onMouseOver
0876: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0877: prop_onMouseOver.setExpert(false);
0878: prop_onMouseOver.setHidden(true);
0879: prop_onMouseOver.setPreferred(false);
0880: prop_onMouseOver
0881: .setValue(
0882: Constants.PropertyDescriptor.CATEGORY,
0883: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0884:
0885: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0886: "onMouseUp", beanClass, "getOnMouseUp",
0887: "setOnMouseUp");
0888: prop_onMouseUp.setDisplayName(resources
0889: .getString("AddRemove_onMouseUp_DisplayName"));
0890: prop_onMouseUp.setShortDescription(resources
0891: .getString("AddRemove_onMouseUp_Description"));
0892: prop_onMouseUp
0893: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0894: prop_onMouseUp.setExpert(false);
0895: prop_onMouseUp.setHidden(true);
0896: prop_onMouseUp.setPreferred(false);
0897: prop_onMouseUp
0898: .setValue(
0899: Constants.PropertyDescriptor.CATEGORY,
0900: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0901:
0902: PropertyDescriptor prop_onSelect = new PropertyDescriptor(
0903: "onSelect", beanClass, "getOnSelect", "setOnSelect");
0904: prop_onSelect.setDisplayName(resources
0905: .getString("AddRemove_onSelect_DisplayName"));
0906: prop_onSelect.setShortDescription(resources
0907: .getString("AddRemove_onSelect_Description"));
0908: prop_onSelect
0909: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0910: prop_onSelect.setExpert(false);
0911: prop_onSelect.setHidden(true);
0912: prop_onSelect.setPreferred(false);
0913: prop_onSelect
0914: .setValue(
0915: Constants.PropertyDescriptor.CATEGORY,
0916: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0917:
0918: PropertyDescriptor prop_readOnly = new PropertyDescriptor(
0919: "readOnly", beanClass, "isReadOnly", "setReadOnly");
0920: prop_readOnly.setDisplayName(resources
0921: .getString("AddRemove_readOnly_DisplayName"));
0922: prop_readOnly.setShortDescription(resources
0923: .getString("AddRemove_readOnly_Description"));
0924: prop_readOnly.setExpert(false);
0925: prop_readOnly.setHidden(false);
0926: prop_readOnly.setPreferred(false);
0927: attrib = new AttributeDescriptor("readOnly", false, null,
0928: true);
0929: prop_readOnly.setValue(
0930: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0931: attrib);
0932: prop_readOnly
0933: .setValue(
0934: Constants.PropertyDescriptor.CATEGORY,
0935: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0936:
0937: PropertyDescriptor prop_selected = new PropertyDescriptor(
0938: "selected", beanClass, "getSelected", "setSelected");
0939: prop_selected.setDisplayName(resources
0940: .getString("AddRemove_selected_DisplayName"));
0941: prop_selected.setShortDescription(resources
0942: .getString("AddRemove_selected_Description"));
0943: prop_selected
0944: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
0945: prop_selected.setExpert(false);
0946: prop_selected.setHidden(false);
0947: prop_selected.setPreferred(false);
0948: attrib = new AttributeDescriptor("selected", false, null,
0949: true);
0950: prop_selected.setValue(
0951: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0952: attrib);
0953: prop_selected
0954: .setValue(
0955: Constants.PropertyDescriptor.CATEGORY,
0956: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0957: prop_selected
0958: .setValue(
0959: "bindingPanelClassNames",
0960: new Class[] {
0961: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToDataProviderPanel.class,
0962: org.netbeans.modules.visualweb.propertyeditors.binding.data.BindValueToObjectPanel.class });
0963:
0964: PropertyDescriptor prop_style = new PropertyDescriptor(
0965: "style", beanClass, "getStyle", "setStyle");
0966: prop_style.setDisplayName(resources
0967: .getString("AddRemove_style_DisplayName"));
0968: prop_style.setShortDescription(resources
0969: .getString("AddRemove_style_Description"));
0970: prop_style
0971: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0972: prop_style.setExpert(false);
0973: prop_style.setHidden(false);
0974: prop_style.setPreferred(false);
0975: attrib = new AttributeDescriptor("style", false, null, true);
0976: prop_style.setValue(
0977: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0978: attrib);
0979: prop_style
0980: .setValue(
0981: Constants.PropertyDescriptor.CATEGORY,
0982: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0983:
0984: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0985: "styleClass", beanClass, "getStyleClass",
0986: "setStyleClass");
0987: prop_styleClass.setDisplayName(resources
0988: .getString("AddRemove_styleClass_DisplayName"));
0989: prop_styleClass.setShortDescription(resources
0990: .getString("AddRemove_styleClass_Description"));
0991: prop_styleClass
0992: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0993: prop_styleClass.setExpert(false);
0994: prop_styleClass.setHidden(false);
0995: prop_styleClass.setPreferred(false);
0996: attrib = new AttributeDescriptor("styleClass", false, null,
0997: true);
0998: prop_styleClass.setValue(
0999: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1000: attrib);
1001: prop_styleClass
1002: .setValue(
1003: Constants.PropertyDescriptor.CATEGORY,
1004: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1005:
1006: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
1007: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
1008: prop_tabIndex.setDisplayName(resources
1009: .getString("AddRemove_tabIndex_DisplayName"));
1010: prop_tabIndex.setShortDescription(resources
1011: .getString("AddRemove_tabIndex_Description"));
1012: prop_tabIndex
1013: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
1014: prop_tabIndex.setExpert(false);
1015: prop_tabIndex.setHidden(false);
1016: prop_tabIndex.setPreferred(false);
1017: attrib = new AttributeDescriptor("tabIndex", false, null,
1018: true);
1019: prop_tabIndex.setValue(
1020: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1021: attrib);
1022: prop_tabIndex
1023: .setValue(
1024: Constants.PropertyDescriptor.CATEGORY,
1025: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
1026: prop_tabIndex.setValue(
1027: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
1028:
1029: PropertyDescriptor prop_attributes = new PropertyDescriptor(
1030: "attributes", beanClass, "getAttributes", null);
1031: prop_attributes.setDisplayName(resources
1032: .getString("AddRemove_attributes_DisplayName"));
1033: prop_attributes.setShortDescription(resources
1034: .getString("AddRemove_attributes_Description"));
1035: prop_attributes.setExpert(false);
1036: prop_attributes.setHidden(true);
1037: prop_attributes.setPreferred(false);
1038: prop_attributes
1039: .setValue(
1040: Constants.PropertyDescriptor.CATEGORY,
1041: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1042:
1043: PropertyDescriptor prop_childCount = new PropertyDescriptor(
1044: "childCount", beanClass, "getChildCount", null);
1045: prop_childCount.setDisplayName(resources
1046: .getString("AddRemove_childCount_DisplayName"));
1047: prop_childCount.setShortDescription(resources
1048: .getString("AddRemove_childCount_Description"));
1049: prop_childCount.setExpert(false);
1050: prop_childCount.setHidden(true);
1051: prop_childCount.setPreferred(false);
1052: prop_childCount
1053: .setValue(
1054: Constants.PropertyDescriptor.CATEGORY,
1055: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1056:
1057: PropertyDescriptor prop_children = new PropertyDescriptor(
1058: "children", beanClass, "getChildren", null);
1059: prop_children.setDisplayName(resources
1060: .getString("AddRemove_children_DisplayName"));
1061: prop_children.setShortDescription(resources
1062: .getString("AddRemove_children_Description"));
1063: prop_children.setExpert(false);
1064: prop_children.setHidden(true);
1065: prop_children.setPreferred(false);
1066: prop_children
1067: .setValue(
1068: Constants.PropertyDescriptor.CATEGORY,
1069: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1070:
1071: PropertyDescriptor prop_converter = new PropertyDescriptor(
1072: "converter", beanClass, "getConverter",
1073: "setConverter");
1074: prop_converter.setDisplayName(resources
1075: .getString("AddRemove_converter_DisplayName"));
1076: prop_converter.setShortDescription(resources
1077: .getString("AddRemove_converter_Description"));
1078: prop_converter
1079: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ConverterPropertyEditor"));
1080: prop_converter.setExpert(false);
1081: prop_converter.setHidden(false);
1082: prop_converter.setPreferred(false);
1083: attrib = new AttributeDescriptor("converter", false, null,
1084: true);
1085: prop_converter.setValue(
1086: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1087: attrib);
1088: prop_converter
1089: .setValue(
1090: Constants.PropertyDescriptor.CATEGORY,
1091: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1092:
1093: PropertyDescriptor prop_facets = new PropertyDescriptor(
1094: "facets", beanClass, "getFacets", null);
1095: prop_facets.setDisplayName(resources
1096: .getString("AddRemove_facets_DisplayName"));
1097: prop_facets.setShortDescription(resources
1098: .getString("AddRemove_facets_Description"));
1099: prop_facets.setExpert(false);
1100: prop_facets.setHidden(true);
1101: prop_facets.setPreferred(false);
1102: prop_facets
1103: .setValue(
1104: Constants.PropertyDescriptor.CATEGORY,
1105: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1106:
1107: PropertyDescriptor prop_family = new PropertyDescriptor(
1108: "family", beanClass, "getFamily", null);
1109: prop_family.setDisplayName(resources
1110: .getString("AddRemove_family_DisplayName"));
1111: prop_family.setShortDescription(resources
1112: .getString("AddRemove_family_Description"));
1113: prop_family.setExpert(false);
1114: prop_family.setHidden(true);
1115: prop_family.setPreferred(false);
1116: prop_family
1117: .setValue(
1118: Constants.PropertyDescriptor.CATEGORY,
1119: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1120:
1121: PropertyDescriptor prop_id = new PropertyDescriptor("id",
1122: beanClass, "getId", "setId");
1123: prop_id.setDisplayName(resources
1124: .getString("AddRemove_id_DisplayName"));
1125: prop_id.setShortDescription(resources
1126: .getString("AddRemove_id_Description"));
1127: prop_id.setExpert(false);
1128: prop_id.setHidden(true);
1129: prop_id.setPreferred(false);
1130: attrib = new AttributeDescriptor("id", false, null, true);
1131: prop_id.setValue(
1132: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1133: attrib);
1134: prop_id
1135: .setValue(
1136: Constants.PropertyDescriptor.CATEGORY,
1137: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1138:
1139: PropertyDescriptor prop_immediate = new PropertyDescriptor(
1140: "immediate", beanClass, "isImmediate",
1141: "setImmediate");
1142: prop_immediate.setDisplayName(resources
1143: .getString("AddRemove_immediate_DisplayName"));
1144: prop_immediate.setShortDescription(resources
1145: .getString("AddRemove_immediate_Description"));
1146: prop_immediate.setExpert(false);
1147: prop_immediate.setHidden(false);
1148: prop_immediate.setPreferred(false);
1149: attrib = new AttributeDescriptor("immediate", false, null,
1150: true);
1151: prop_immediate.setValue(
1152: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1153: attrib);
1154: prop_immediate
1155: .setValue(
1156: Constants.PropertyDescriptor.CATEGORY,
1157: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1158:
1159: PropertyDescriptor prop_localValue = new PropertyDescriptor(
1160: "localValue", beanClass, "getLocalValue", null);
1161: prop_localValue.setDisplayName(resources
1162: .getString("AddRemove_localValue_DisplayName"));
1163: prop_localValue.setShortDescription(resources
1164: .getString("AddRemove_localValue_Description"));
1165: prop_localValue.setExpert(false);
1166: prop_localValue.setHidden(true);
1167: prop_localValue.setPreferred(false);
1168: prop_localValue
1169: .setValue(
1170: Constants.PropertyDescriptor.CATEGORY,
1171: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1172:
1173: PropertyDescriptor prop_localValueSet = new PropertyDescriptor(
1174: "localValueSet", beanClass, "isLocalValueSet",
1175: "setLocalValueSet");
1176: prop_localValueSet.setDisplayName(resources
1177: .getString("AddRemove_localValueSet_DisplayName"));
1178: prop_localValueSet.setShortDescription(resources
1179: .getString("AddRemove_localValueSet_Description"));
1180: prop_localValueSet.setExpert(false);
1181: prop_localValueSet.setHidden(true);
1182: prop_localValueSet.setPreferred(false);
1183: prop_localValueSet
1184: .setValue(
1185: Constants.PropertyDescriptor.CATEGORY,
1186: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1187:
1188: PropertyDescriptor prop_parent = new PropertyDescriptor(
1189: "parent", beanClass, "getParent", null);
1190: prop_parent.setDisplayName(resources
1191: .getString("AddRemove_parent_DisplayName"));
1192: prop_parent.setShortDescription(resources
1193: .getString("AddRemove_parent_Description"));
1194: prop_parent.setExpert(false);
1195: prop_parent.setHidden(true);
1196: prop_parent.setPreferred(false);
1197: prop_parent
1198: .setValue(
1199: Constants.PropertyDescriptor.CATEGORY,
1200: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1201:
1202: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1203: "rendered", beanClass, "isRendered", "setRendered");
1204: prop_rendered.setDisplayName(resources
1205: .getString("AddRemove_rendered_DisplayName"));
1206: prop_rendered.setShortDescription(resources
1207: .getString("AddRemove_rendered_Description"));
1208: prop_rendered.setExpert(false);
1209: prop_rendered.setHidden(false);
1210: prop_rendered.setPreferred(false);
1211: attrib = new AttributeDescriptor("rendered", false, null,
1212: true);
1213: prop_rendered.setValue(
1214: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1215: attrib);
1216: prop_rendered
1217: .setValue(
1218: Constants.PropertyDescriptor.CATEGORY,
1219: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1220:
1221: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1222: "rendererType", beanClass, "getRendererType",
1223: "setRendererType");
1224: prop_rendererType.setDisplayName(resources
1225: .getString("AddRemove_rendererType_DisplayName"));
1226: prop_rendererType.setShortDescription(resources
1227: .getString("AddRemove_rendererType_Description"));
1228: prop_rendererType.setExpert(false);
1229: prop_rendererType.setHidden(true);
1230: prop_rendererType.setPreferred(false);
1231: prop_rendererType
1232: .setValue(
1233: Constants.PropertyDescriptor.CATEGORY,
1234: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1235:
1236: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1237: "rendersChildren", beanClass, "getRendersChildren",
1238: null);
1239: prop_rendersChildren
1240: .setDisplayName(resources
1241: .getString("AddRemove_rendersChildren_DisplayName"));
1242: prop_rendersChildren
1243: .setShortDescription(resources
1244: .getString("AddRemove_rendersChildren_Description"));
1245: prop_rendersChildren.setExpert(false);
1246: prop_rendersChildren.setHidden(true);
1247: prop_rendersChildren.setPreferred(false);
1248: prop_rendersChildren
1249: .setValue(
1250: Constants.PropertyDescriptor.CATEGORY,
1251: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1252:
1253: PropertyDescriptor prop_required = new PropertyDescriptor(
1254: "required", beanClass, "isRequired", "setRequired");
1255: prop_required.setDisplayName(resources
1256: .getString("AddRemove_required_DisplayName"));
1257: prop_required.setShortDescription(resources
1258: .getString("AddRemove_required_Description"));
1259: prop_required.setExpert(false);
1260: prop_required.setHidden(false);
1261: prop_required.setPreferred(false);
1262: attrib = new AttributeDescriptor("required", false, null,
1263: true);
1264: prop_required.setValue(
1265: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1266: attrib);
1267: prop_required
1268: .setValue(
1269: Constants.PropertyDescriptor.CATEGORY,
1270: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1271:
1272: PropertyDescriptor prop_submittedValue = new PropertyDescriptor(
1273: "submittedValue", beanClass, "getSubmittedValue",
1274: "setSubmittedValue");
1275: prop_submittedValue.setDisplayName(resources
1276: .getString("AddRemove_submittedValue_DisplayName"));
1277: prop_submittedValue.setShortDescription(resources
1278: .getString("AddRemove_submittedValue_Description"));
1279: prop_submittedValue.setExpert(false);
1280: prop_submittedValue.setHidden(true);
1281: prop_submittedValue.setPreferred(false);
1282: prop_submittedValue
1283: .setValue(
1284: Constants.PropertyDescriptor.CATEGORY,
1285: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1286:
1287: PropertyDescriptor prop_validator = new PropertyDescriptor(
1288: "validator", beanClass, "getValidator",
1289: "setValidator");
1290: prop_validator.setDisplayName(resources
1291: .getString("AddRemove_validator_DisplayName"));
1292: prop_validator.setShortDescription(resources
1293: .getString("AddRemove_validator_Description"));
1294: prop_validator
1295: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.JSF1_1ValidatorPropertyEditor"));
1296: prop_validator.setExpert(false);
1297: prop_validator.setHidden(false);
1298: prop_validator.setPreferred(false);
1299: attrib = new AttributeDescriptor("validator", false, null,
1300: true);
1301: prop_validator.setValue(
1302: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1303: attrib);
1304: prop_validator
1305: .setValue(
1306: Constants.PropertyDescriptor.CATEGORY,
1307: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1308:
1309: PropertyDescriptor prop_value = new PropertyDescriptor(
1310: "value", beanClass, "getValue", "setValue");
1311: prop_value.setDisplayName(resources
1312: .getString("AddRemove_value_DisplayName"));
1313: prop_value.setShortDescription(resources
1314: .getString("AddRemove_value_Description"));
1315: prop_value.setExpert(false);
1316: prop_value.setHidden(true);
1317: prop_value.setPreferred(false);
1318: prop_value
1319: .setValue(
1320: Constants.PropertyDescriptor.CATEGORY,
1321: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1322:
1323: PropertyDescriptor prop_valueChangeListener = new PropertyDescriptor(
1324: "valueChangeListener", beanClass,
1325: "getValueChangeListener", "setValueChangeListener");
1326: prop_valueChangeListener
1327: .setDisplayName(resources
1328: .getString("AddRemove_valueChangeListener_DisplayName"));
1329: prop_valueChangeListener
1330: .setShortDescription(resources
1331: .getString("AddRemove_valueChangeListener_Description"));
1332: prop_valueChangeListener
1333: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
1334: prop_valueChangeListener.setExpert(false);
1335: prop_valueChangeListener.setHidden(false);
1336: prop_valueChangeListener.setPreferred(false);
1337: attrib = new AttributeDescriptor("valueChangeListener",
1338: false, null, true);
1339: prop_valueChangeListener.setValue(
1340: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1341: attrib);
1342: prop_valueChangeListener
1343: .setValue(
1344: Constants.PropertyDescriptor.CATEGORY,
1345: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1346:
1347: propDescriptors = new PropertyDescriptor[] {
1348: prop_attributes, prop_availableItemsLabel,
1349: prop_childCount, prop_children, prop_converter,
1350: prop_disabled, prop_duplicateSelections,
1351: prop_facets, prop_family, prop_id, prop_immediate,
1352: prop_items, prop_label, prop_labelLevel,
1353: prop_labelOnTop, prop_localValue,
1354: prop_localValueSet, prop_moveButtons, prop_onBlur,
1355: prop_onChange, prop_onClick, prop_onDblClick,
1356: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1357: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1358: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1359: prop_onSelect, prop_parent, prop_readOnly,
1360: prop_rendered, prop_rendererType,
1361: prop_rendersChildren, prop_required, prop_rows,
1362: prop_selectAll, prop_selected,
1363: prop_selectedItemsLabel, prop_separators,
1364: prop_sorted, prop_style, prop_styleClass,
1365: prop_submittedValue, prop_tabIndex, prop_toolTip,
1366: prop_validator, prop_value,
1367: prop_valueChangeListener, prop_vertical,
1368: prop_visible, };
1369: return propDescriptors;
1370:
1371: } catch (IntrospectionException e) {
1372: e.printStackTrace();
1373: return null;
1374: }
1375:
1376: }
1377:
1378: }
1379: //GEN-END:BeanInfo
|