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 TableHeaderBeanInfoBase 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(), TableHeaderBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>TableHeaderBeanInfoBase</code>.</p>
0075: */
0076: public TableHeaderBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.TableHeader.class;
0079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableHeader_C16";
0080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableHeader_C32";
0081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableHeader_M16";
0082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableHeader_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("TableHeader_DisplayName"));
0143: beanDescriptor.setShortDescription(resources
0144: .getString("TableHeader_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.INSTANCE_NAME,
0152: "tableHeader");
0153: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0154: Boolean.TRUE);
0155: beanDescriptor.setValue(
0156: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0157: getCategoryDescriptors());
0158: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0159: "tableHeader");
0160: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0161: "ui");
0162: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0163: "http://www.sun.com/web/ui");
0164:
0165: return beanDescriptor;
0166:
0167: }
0168:
0169: /**
0170: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0171: */
0172: private CategoryDescriptor[] getCategoryDescriptors() {
0173:
0174: return com.sun.rave.designtime.base.CategoryDescriptors
0175: .getDefaultCategoryDescriptors();
0176:
0177: }
0178:
0179: /**
0180: * <p>Return the index of the default property, or
0181: * -1 if there is no default property.</p>
0182: */
0183: public int getDefaultPropertyIndex() {
0184:
0185: if (defaultPropertyIndex > -2) {
0186: return defaultPropertyIndex;
0187: } else {
0188: if (defaultPropertyName == null) {
0189: defaultPropertyIndex = -1;
0190: } else {
0191: PropertyDescriptor pd[] = getPropertyDescriptors();
0192: for (int i = 0; i < pd.length; i++) {
0193: if (defaultPropertyName.equals(pd[i].getName())) {
0194: defaultPropertyIndex = i;
0195: break;
0196: }
0197: }
0198: }
0199: }
0200: return defaultPropertyIndex;
0201: }
0202:
0203: /**
0204: * <p>The cached facet descriptors.</p>
0205: */
0206: protected FacetDescriptor[] facetDescriptors;
0207:
0208: /**
0209: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0210: */
0211: public FacetDescriptor[] getFacetDescriptors() {
0212:
0213: if (facetDescriptors != null) {
0214: return facetDescriptors;
0215: }
0216: facetDescriptors = new FacetDescriptor[] {};
0217: return facetDescriptors;
0218:
0219: }
0220:
0221: /**
0222: * <p>Return the specified image (if any)
0223: * for this component class.</p>
0224: */
0225: public Image getIcon(int kind) {
0226:
0227: String name;
0228: switch (kind) {
0229: case ICON_COLOR_16x16:
0230: name = iconFileName_C16;
0231: break;
0232: case ICON_COLOR_32x32:
0233: name = iconFileName_C32;
0234: break;
0235: case ICON_MONO_16x16:
0236: name = iconFileName_M16;
0237: break;
0238: case ICON_MONO_32x32:
0239: name = iconFileName_M32;
0240: break;
0241: default:
0242: name = null;
0243: break;
0244: }
0245: if (name == null) {
0246: return null;
0247: }
0248:
0249: Image image = loadImage(name + ".png");
0250: if (image == null) {
0251: image = loadImage(name + ".gif");
0252: }
0253: return image;
0254:
0255: }
0256:
0257: /**
0258: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0259: */
0260: private java.lang.Class loadClass(java.lang.String name) {
0261:
0262: try {
0263: return Class.forName(name);
0264: } catch (ClassNotFoundException e) {
0265: throw new RuntimeException(e);
0266: }
0267:
0268: }
0269:
0270: /**
0271: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0272: */
0273: public PropertyDescriptor[] getPropertyDescriptors() {
0274:
0275: if (propDescriptors != null) {
0276: return propDescriptors;
0277: }
0278: AttributeDescriptor attrib = null;
0279:
0280: try {
0281:
0282: PropertyDescriptor prop_abbr = new PropertyDescriptor(
0283: "abbr", beanClass, "getAbbr", "setAbbr");
0284: prop_abbr.setDisplayName(resources
0285: .getString("TableHeader_abbr_DisplayName"));
0286: prop_abbr.setShortDescription(resources
0287: .getString("TableHeader_abbr_Description"));
0288: prop_abbr.setExpert(false);
0289: prop_abbr.setHidden(false);
0290: prop_abbr.setPreferred(false);
0291: attrib = new AttributeDescriptor("abbr", false, null, true);
0292: prop_abbr.setValue(
0293: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0294: attrib);
0295: prop_abbr
0296: .setValue(
0297: Constants.PropertyDescriptor.CATEGORY,
0298: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0299:
0300: PropertyDescriptor prop_align = new PropertyDescriptor(
0301: "align", beanClass, "getAlign", "setAlign");
0302: prop_align.setDisplayName(resources
0303: .getString("TableHeader_align_DisplayName"));
0304: prop_align.setShortDescription(resources
0305: .getString("TableHeader_align_Description"));
0306: prop_align.setExpert(false);
0307: prop_align.setHidden(false);
0308: prop_align.setPreferred(false);
0309: attrib = new AttributeDescriptor("align", false, null, true);
0310: prop_align.setValue(
0311: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0312: attrib);
0313: prop_align
0314: .setValue(
0315: Constants.PropertyDescriptor.CATEGORY,
0316: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0317:
0318: PropertyDescriptor prop_axis = new PropertyDescriptor(
0319: "axis", beanClass, "getAxis", "setAxis");
0320: prop_axis.setDisplayName(resources
0321: .getString("TableHeader_axis_DisplayName"));
0322: prop_axis.setShortDescription(resources
0323: .getString("TableHeader_axis_Description"));
0324: prop_axis.setExpert(false);
0325: prop_axis.setHidden(false);
0326: prop_axis.setPreferred(false);
0327: prop_axis
0328: .setValue(
0329: Constants.PropertyDescriptor.CATEGORY,
0330: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0331:
0332: PropertyDescriptor prop_bgColor = new PropertyDescriptor(
0333: "bgColor", beanClass, "getBgColor", "setBgColor");
0334: prop_bgColor.setDisplayName(resources
0335: .getString("TableHeader_bgColor_DisplayName"));
0336: prop_bgColor.setShortDescription(resources
0337: .getString("TableHeader_bgColor_Description"));
0338: prop_bgColor.setExpert(false);
0339: prop_bgColor.setHidden(false);
0340: prop_bgColor.setPreferred(false);
0341: prop_bgColor
0342: .setValue(
0343: Constants.PropertyDescriptor.CATEGORY,
0344: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0345:
0346: PropertyDescriptor prop_char = new PropertyDescriptor(
0347: "char", beanClass, "getChar", "setChar");
0348: prop_char.setDisplayName(resources
0349: .getString("TableHeader_char_DisplayName"));
0350: prop_char.setShortDescription(resources
0351: .getString("TableHeader_char_Description"));
0352: prop_char.setExpert(false);
0353: prop_char.setHidden(false);
0354: prop_char.setPreferred(false);
0355: prop_char
0356: .setValue(
0357: Constants.PropertyDescriptor.CATEGORY,
0358: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0359:
0360: PropertyDescriptor prop_charOff = new PropertyDescriptor(
0361: "charOff", beanClass, "getCharOff", "setCharOff");
0362: prop_charOff.setDisplayName(resources
0363: .getString("TableHeader_charOff_DisplayName"));
0364: prop_charOff.setShortDescription(resources
0365: .getString("TableHeader_charOff_Description"));
0366: prop_charOff.setExpert(false);
0367: prop_charOff.setHidden(false);
0368: prop_charOff.setPreferred(false);
0369: prop_charOff
0370: .setValue(
0371: Constants.PropertyDescriptor.CATEGORY,
0372: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0373:
0374: PropertyDescriptor prop_colSpan = new PropertyDescriptor(
0375: "colSpan", beanClass, "getColSpan", "setColSpan");
0376: prop_colSpan.setDisplayName(resources
0377: .getString("TableHeader_colSpan_DisplayName"));
0378: prop_colSpan.setShortDescription(resources
0379: .getString("TableHeader_colSpan_Description"));
0380: prop_colSpan.setExpert(false);
0381: prop_colSpan.setHidden(false);
0382: prop_colSpan.setPreferred(false);
0383: prop_colSpan
0384: .setValue(
0385: Constants.PropertyDescriptor.CATEGORY,
0386: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0387:
0388: PropertyDescriptor prop_extraHtml = new PropertyDescriptor(
0389: "extraHtml", beanClass, "getExtraHtml",
0390: "setExtraHtml");
0391: prop_extraHtml.setDisplayName(resources
0392: .getString("TableHeader_extraHtml_DisplayName"));
0393: prop_extraHtml.setShortDescription(resources
0394: .getString("TableHeader_extraHtml_Description"));
0395: prop_extraHtml.setExpert(false);
0396: prop_extraHtml.setHidden(false);
0397: prop_extraHtml.setPreferred(false);
0398: attrib = new AttributeDescriptor("extraHtml", false, null,
0399: true);
0400: prop_extraHtml.setValue(
0401: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0402: attrib);
0403: prop_extraHtml
0404: .setValue(
0405: Constants.PropertyDescriptor.CATEGORY,
0406: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0407:
0408: PropertyDescriptor prop_groupHeader = new PropertyDescriptor(
0409: "groupHeader", beanClass, "isGroupHeader",
0410: "setGroupHeader");
0411: prop_groupHeader.setDisplayName(resources
0412: .getString("TableHeader_groupHeader_DisplayName"));
0413: prop_groupHeader.setShortDescription(resources
0414: .getString("TableHeader_groupHeader_Description"));
0415: prop_groupHeader.setExpert(false);
0416: prop_groupHeader.setHidden(false);
0417: prop_groupHeader.setPreferred(false);
0418: prop_groupHeader
0419: .setValue(
0420: Constants.PropertyDescriptor.CATEGORY,
0421: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0422:
0423: PropertyDescriptor prop_headers = new PropertyDescriptor(
0424: "headers", beanClass, "getHeaders", "setHeaders");
0425: prop_headers.setDisplayName(resources
0426: .getString("TableHeader_headers_DisplayName"));
0427: prop_headers.setShortDescription(resources
0428: .getString("TableHeader_headers_Description"));
0429: prop_headers.setExpert(false);
0430: prop_headers.setHidden(false);
0431: prop_headers.setPreferred(false);
0432: prop_headers
0433: .setValue(
0434: Constants.PropertyDescriptor.CATEGORY,
0435: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0436:
0437: PropertyDescriptor prop_height = new PropertyDescriptor(
0438: "height", beanClass, "getHeight", "setHeight");
0439: prop_height.setDisplayName(resources
0440: .getString("TableHeader_height_DisplayName"));
0441: prop_height.setShortDescription(resources
0442: .getString("TableHeader_height_Description"));
0443: prop_height.setExpert(false);
0444: prop_height.setHidden(false);
0445: prop_height.setPreferred(false);
0446: attrib = new AttributeDescriptor("height", false, null,
0447: true);
0448: prop_height.setValue(
0449: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0450: attrib);
0451: prop_height
0452: .setValue(
0453: Constants.PropertyDescriptor.CATEGORY,
0454: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0455:
0456: PropertyDescriptor prop_noWrap = new PropertyDescriptor(
0457: "noWrap", beanClass, "isNoWrap", "setNoWrap");
0458: prop_noWrap.setDisplayName(resources
0459: .getString("TableHeader_noWrap_DisplayName"));
0460: prop_noWrap.setShortDescription(resources
0461: .getString("TableHeader_noWrap_Description"));
0462: prop_noWrap.setExpert(false);
0463: prop_noWrap.setHidden(false);
0464: prop_noWrap.setPreferred(false);
0465: attrib = new AttributeDescriptor("noWrap", false, null,
0466: true);
0467: prop_noWrap.setValue(
0468: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0469: attrib);
0470: prop_noWrap
0471: .setValue(
0472: Constants.PropertyDescriptor.CATEGORY,
0473: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0474:
0475: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0476: "onClick", beanClass, "getOnClick", "setOnClick");
0477: prop_onClick.setDisplayName(resources
0478: .getString("TableHeader_onClick_DisplayName"));
0479: prop_onClick.setShortDescription(resources
0480: .getString("TableHeader_onClick_Description"));
0481: prop_onClick.setExpert(false);
0482: prop_onClick.setHidden(false);
0483: prop_onClick.setPreferred(false);
0484: attrib = new AttributeDescriptor("onClick", false, null,
0485: true);
0486: prop_onClick.setValue(
0487: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0488: attrib);
0489: prop_onClick
0490: .setValue(
0491: Constants.PropertyDescriptor.CATEGORY,
0492: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0493:
0494: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0495: "onDblClick", beanClass, "getOnDblClick",
0496: "setOnDblClick");
0497: prop_onDblClick.setDisplayName(resources
0498: .getString("TableHeader_onDblClick_DisplayName"));
0499: prop_onDblClick.setShortDescription(resources
0500: .getString("TableHeader_onDblClick_Description"));
0501: prop_onDblClick.setExpert(false);
0502: prop_onDblClick.setHidden(false);
0503: prop_onDblClick.setPreferred(false);
0504: attrib = new AttributeDescriptor("onDblClick", false, null,
0505: true);
0506: prop_onDblClick.setValue(
0507: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0508: attrib);
0509: prop_onDblClick
0510: .setValue(
0511: Constants.PropertyDescriptor.CATEGORY,
0512: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0513:
0514: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0515: "onKeyDown", beanClass, "getOnKeyDown",
0516: "setOnKeyDown");
0517: prop_onKeyDown.setDisplayName(resources
0518: .getString("TableHeader_onKeyDown_DisplayName"));
0519: prop_onKeyDown.setShortDescription(resources
0520: .getString("TableHeader_onKeyDown_Description"));
0521: prop_onKeyDown.setExpert(false);
0522: prop_onKeyDown.setHidden(false);
0523: prop_onKeyDown.setPreferred(false);
0524: attrib = new AttributeDescriptor("onKeyDown", false, null,
0525: true);
0526: prop_onKeyDown.setValue(
0527: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0528: attrib);
0529: prop_onKeyDown
0530: .setValue(
0531: Constants.PropertyDescriptor.CATEGORY,
0532: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0533:
0534: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0535: "onKeyPress", beanClass, "getOnKeyPress",
0536: "setOnKeyPress");
0537: prop_onKeyPress.setDisplayName(resources
0538: .getString("TableHeader_onKeyPress_DisplayName"));
0539: prop_onKeyPress.setShortDescription(resources
0540: .getString("TableHeader_onKeyPress_Description"));
0541: prop_onKeyPress.setExpert(false);
0542: prop_onKeyPress.setHidden(false);
0543: prop_onKeyPress.setPreferred(false);
0544: attrib = new AttributeDescriptor("onKeyPress", false, null,
0545: true);
0546: prop_onKeyPress.setValue(
0547: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0548: attrib);
0549: prop_onKeyPress
0550: .setValue(
0551: Constants.PropertyDescriptor.CATEGORY,
0552: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0553:
0554: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0555: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0556: prop_onKeyUp.setDisplayName(resources
0557: .getString("TableHeader_onKeyUp_DisplayName"));
0558: prop_onKeyUp.setShortDescription(resources
0559: .getString("TableHeader_onKeyUp_Description"));
0560: prop_onKeyUp.setExpert(false);
0561: prop_onKeyUp.setHidden(false);
0562: prop_onKeyUp.setPreferred(false);
0563: attrib = new AttributeDescriptor("onKeyUp", false, null,
0564: true);
0565: prop_onKeyUp.setValue(
0566: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0567: attrib);
0568: prop_onKeyUp
0569: .setValue(
0570: Constants.PropertyDescriptor.CATEGORY,
0571: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0572:
0573: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0574: "onMouseDown", beanClass, "getOnMouseDown",
0575: "setOnMouseDown");
0576: prop_onMouseDown.setDisplayName(resources
0577: .getString("TableHeader_onMouseDown_DisplayName"));
0578: prop_onMouseDown.setShortDescription(resources
0579: .getString("TableHeader_onMouseDown_Description"));
0580: prop_onMouseDown.setExpert(false);
0581: prop_onMouseDown.setHidden(false);
0582: prop_onMouseDown.setPreferred(false);
0583: attrib = new AttributeDescriptor("onMouseDown", false,
0584: null, true);
0585: prop_onMouseDown.setValue(
0586: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0587: attrib);
0588: prop_onMouseDown
0589: .setValue(
0590: Constants.PropertyDescriptor.CATEGORY,
0591: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0592:
0593: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0594: "onMouseMove", beanClass, "getOnMouseMove",
0595: "setOnMouseMove");
0596: prop_onMouseMove.setDisplayName(resources
0597: .getString("TableHeader_onMouseMove_DisplayName"));
0598: prop_onMouseMove.setShortDescription(resources
0599: .getString("TableHeader_onMouseMove_Description"));
0600: prop_onMouseMove.setExpert(false);
0601: prop_onMouseMove.setHidden(false);
0602: prop_onMouseMove.setPreferred(false);
0603: attrib = new AttributeDescriptor("onMouseMove", false,
0604: null, true);
0605: prop_onMouseMove.setValue(
0606: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0607: attrib);
0608: prop_onMouseMove
0609: .setValue(
0610: Constants.PropertyDescriptor.CATEGORY,
0611: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0612:
0613: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0614: "onMouseOut", beanClass, "getOnMouseOut",
0615: "setOnMouseOut");
0616: prop_onMouseOut.setDisplayName(resources
0617: .getString("TableHeader_onMouseOut_DisplayName"));
0618: prop_onMouseOut.setShortDescription(resources
0619: .getString("TableHeader_onMouseOut_Description"));
0620: prop_onMouseOut.setExpert(false);
0621: prop_onMouseOut.setHidden(false);
0622: prop_onMouseOut.setPreferred(false);
0623: attrib = new AttributeDescriptor("onMouseOut", false, null,
0624: true);
0625: prop_onMouseOut.setValue(
0626: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0627: attrib);
0628: prop_onMouseOut
0629: .setValue(
0630: Constants.PropertyDescriptor.CATEGORY,
0631: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0632:
0633: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0634: "onMouseOver", beanClass, "getOnMouseOver",
0635: "setOnMouseOver");
0636: prop_onMouseOver.setDisplayName(resources
0637: .getString("TableHeader_onMouseOver_DisplayName"));
0638: prop_onMouseOver.setShortDescription(resources
0639: .getString("TableHeader_onMouseOver_Description"));
0640: prop_onMouseOver.setExpert(false);
0641: prop_onMouseOver.setHidden(false);
0642: prop_onMouseOver.setPreferred(false);
0643: attrib = new AttributeDescriptor("onMouseOver", false,
0644: null, true);
0645: prop_onMouseOver.setValue(
0646: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0647: attrib);
0648: prop_onMouseOver
0649: .setValue(
0650: Constants.PropertyDescriptor.CATEGORY,
0651: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0652:
0653: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0654: "onMouseUp", beanClass, "getOnMouseUp",
0655: "setOnMouseUp");
0656: prop_onMouseUp.setDisplayName(resources
0657: .getString("TableHeader_onMouseUp_DisplayName"));
0658: prop_onMouseUp.setShortDescription(resources
0659: .getString("TableHeader_onMouseUp_Description"));
0660: prop_onMouseUp.setExpert(false);
0661: prop_onMouseUp.setHidden(false);
0662: prop_onMouseUp.setPreferred(false);
0663: attrib = new AttributeDescriptor("onMouseUp", false, null,
0664: true);
0665: prop_onMouseUp.setValue(
0666: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0667: attrib);
0668: prop_onMouseUp
0669: .setValue(
0670: Constants.PropertyDescriptor.CATEGORY,
0671: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0672:
0673: PropertyDescriptor prop_rowSpan = new PropertyDescriptor(
0674: "rowSpan", beanClass, "getRowSpan", "setRowSpan");
0675: prop_rowSpan.setDisplayName(resources
0676: .getString("TableHeader_rowSpan_DisplayName"));
0677: prop_rowSpan.setShortDescription(resources
0678: .getString("TableHeader_rowSpan_Description"));
0679: prop_rowSpan.setExpert(false);
0680: prop_rowSpan.setHidden(false);
0681: prop_rowSpan.setPreferred(false);
0682: prop_rowSpan
0683: .setValue(
0684: Constants.PropertyDescriptor.CATEGORY,
0685: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0686:
0687: PropertyDescriptor prop_scope = new PropertyDescriptor(
0688: "scope", beanClass, "getScope", "setScope");
0689: prop_scope.setDisplayName(resources
0690: .getString("TableHeader_scope_DisplayName"));
0691: prop_scope.setShortDescription(resources
0692: .getString("TableHeader_scope_Description"));
0693: prop_scope.setExpert(false);
0694: prop_scope.setHidden(false);
0695: prop_scope.setPreferred(false);
0696: attrib = new AttributeDescriptor("scope", false, null, true);
0697: prop_scope.setValue(
0698: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0699: attrib);
0700: prop_scope
0701: .setValue(
0702: Constants.PropertyDescriptor.CATEGORY,
0703: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0704:
0705: PropertyDescriptor prop_selectHeader = new PropertyDescriptor(
0706: "selectHeader", beanClass, "isSelectHeader",
0707: "setSelectHeader");
0708: prop_selectHeader.setDisplayName(resources
0709: .getString("TableHeader_selectHeader_DisplayName"));
0710: prop_selectHeader.setShortDescription(resources
0711: .getString("TableHeader_selectHeader_Description"));
0712: prop_selectHeader.setExpert(false);
0713: prop_selectHeader.setHidden(false);
0714: prop_selectHeader.setPreferred(false);
0715: prop_selectHeader
0716: .setValue(
0717: Constants.PropertyDescriptor.CATEGORY,
0718: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0719:
0720: PropertyDescriptor prop_sortHeader = new PropertyDescriptor(
0721: "sortHeader", beanClass, "isSortHeader",
0722: "setSortHeader");
0723: prop_sortHeader.setDisplayName(resources
0724: .getString("TableHeader_sortHeader_DisplayName"));
0725: prop_sortHeader.setShortDescription(resources
0726: .getString("TableHeader_sortHeader_Description"));
0727: prop_sortHeader.setExpert(false);
0728: prop_sortHeader.setHidden(false);
0729: prop_sortHeader.setPreferred(false);
0730: prop_sortHeader
0731: .setValue(
0732: Constants.PropertyDescriptor.CATEGORY,
0733: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0734:
0735: PropertyDescriptor prop_style = new PropertyDescriptor(
0736: "style", beanClass, "getStyle", "setStyle");
0737: prop_style.setDisplayName(resources
0738: .getString("TableHeader_style_DisplayName"));
0739: prop_style.setShortDescription(resources
0740: .getString("TableHeader_style_Description"));
0741: prop_style.setExpert(false);
0742: prop_style.setHidden(false);
0743: prop_style.setPreferred(false);
0744: attrib = new AttributeDescriptor("style", false, null, true);
0745: prop_style.setValue(
0746: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0747: attrib);
0748: prop_style
0749: .setValue(
0750: Constants.PropertyDescriptor.CATEGORY,
0751: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0752:
0753: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0754: "styleClass", beanClass, "getStyleClass",
0755: "setStyleClass");
0756: prop_styleClass.setDisplayName(resources
0757: .getString("TableHeader_styleClass_DisplayName"));
0758: prop_styleClass.setShortDescription(resources
0759: .getString("TableHeader_styleClass_Description"));
0760: prop_styleClass.setExpert(false);
0761: prop_styleClass.setHidden(false);
0762: prop_styleClass.setPreferred(false);
0763: attrib = new AttributeDescriptor("styleClass", false, null,
0764: true);
0765: prop_styleClass.setValue(
0766: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0767: attrib);
0768: prop_styleClass
0769: .setValue(
0770: Constants.PropertyDescriptor.CATEGORY,
0771: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0772:
0773: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0774: "toolTip", beanClass, "getToolTip", "setToolTip");
0775: prop_toolTip.setDisplayName(resources
0776: .getString("TableHeader_toolTip_DisplayName"));
0777: prop_toolTip.setShortDescription(resources
0778: .getString("TableHeader_toolTip_Description"));
0779: prop_toolTip.setExpert(false);
0780: prop_toolTip.setHidden(false);
0781: prop_toolTip.setPreferred(false);
0782: attrib = new AttributeDescriptor("toolTip", false, null,
0783: true);
0784: prop_toolTip.setValue(
0785: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0786: attrib);
0787: prop_toolTip
0788: .setValue(
0789: Constants.PropertyDescriptor.CATEGORY,
0790: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0791:
0792: PropertyDescriptor prop_valign = new PropertyDescriptor(
0793: "valign", beanClass, "getValign", "setValign");
0794: prop_valign.setDisplayName(resources
0795: .getString("TableHeader_valign_DisplayName"));
0796: prop_valign.setShortDescription(resources
0797: .getString("TableHeader_valign_Description"));
0798: prop_valign.setExpert(false);
0799: prop_valign.setHidden(false);
0800: prop_valign.setPreferred(false);
0801: attrib = new AttributeDescriptor("valign", false, null,
0802: true);
0803: prop_valign.setValue(
0804: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0805: attrib);
0806: prop_valign
0807: .setValue(
0808: Constants.PropertyDescriptor.CATEGORY,
0809: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0810:
0811: PropertyDescriptor prop_visible = new PropertyDescriptor(
0812: "visible", beanClass, "isVisible", "setVisible");
0813: prop_visible.setDisplayName(resources
0814: .getString("TableHeader_visible_DisplayName"));
0815: prop_visible.setShortDescription(resources
0816: .getString("TableHeader_visible_Description"));
0817: prop_visible.setExpert(false);
0818: prop_visible.setHidden(false);
0819: prop_visible.setPreferred(false);
0820: attrib = new AttributeDescriptor("visible", false, "true",
0821: true);
0822: prop_visible.setValue(
0823: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0824: attrib);
0825: prop_visible
0826: .setValue(
0827: Constants.PropertyDescriptor.CATEGORY,
0828: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0829:
0830: PropertyDescriptor prop_width = new PropertyDescriptor(
0831: "width", beanClass, "getWidth", "setWidth");
0832: prop_width.setDisplayName(resources
0833: .getString("TableHeader_width_DisplayName"));
0834: prop_width.setShortDescription(resources
0835: .getString("TableHeader_width_Description"));
0836: prop_width.setExpert(false);
0837: prop_width.setHidden(false);
0838: prop_width.setPreferred(false);
0839: attrib = new AttributeDescriptor("width", false, null, true);
0840: prop_width.setValue(
0841: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0842: attrib);
0843: prop_width
0844: .setValue(
0845: Constants.PropertyDescriptor.CATEGORY,
0846: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0847:
0848: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0849: "attributes", beanClass, "getAttributes", null);
0850: prop_attributes.setDisplayName(resources
0851: .getString("TableHeader_attributes_DisplayName"));
0852: prop_attributes.setShortDescription(resources
0853: .getString("TableHeader_attributes_Description"));
0854: prop_attributes.setExpert(false);
0855: prop_attributes.setHidden(true);
0856: prop_attributes.setPreferred(false);
0857: prop_attributes
0858: .setValue(
0859: Constants.PropertyDescriptor.CATEGORY,
0860: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0861:
0862: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0863: "childCount", beanClass, "getChildCount", null);
0864: prop_childCount.setDisplayName(resources
0865: .getString("TableHeader_childCount_DisplayName"));
0866: prop_childCount.setShortDescription(resources
0867: .getString("TableHeader_childCount_Description"));
0868: prop_childCount.setExpert(false);
0869: prop_childCount.setHidden(true);
0870: prop_childCount.setPreferred(false);
0871: prop_childCount
0872: .setValue(
0873: Constants.PropertyDescriptor.CATEGORY,
0874: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0875:
0876: PropertyDescriptor prop_children = new PropertyDescriptor(
0877: "children", beanClass, "getChildren", null);
0878: prop_children.setDisplayName(resources
0879: .getString("TableHeader_children_DisplayName"));
0880: prop_children.setShortDescription(resources
0881: .getString("TableHeader_children_Description"));
0882: prop_children.setExpert(false);
0883: prop_children.setHidden(true);
0884: prop_children.setPreferred(false);
0885: prop_children
0886: .setValue(
0887: Constants.PropertyDescriptor.CATEGORY,
0888: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0889:
0890: PropertyDescriptor prop_facets = new PropertyDescriptor(
0891: "facets", beanClass, "getFacets", null);
0892: prop_facets.setDisplayName(resources
0893: .getString("TableHeader_facets_DisplayName"));
0894: prop_facets.setShortDescription(resources
0895: .getString("TableHeader_facets_Description"));
0896: prop_facets.setExpert(false);
0897: prop_facets.setHidden(true);
0898: prop_facets.setPreferred(false);
0899: prop_facets
0900: .setValue(
0901: Constants.PropertyDescriptor.CATEGORY,
0902: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0903:
0904: PropertyDescriptor prop_family = new PropertyDescriptor(
0905: "family", beanClass, "getFamily", null);
0906: prop_family.setDisplayName(resources
0907: .getString("TableHeader_family_DisplayName"));
0908: prop_family.setShortDescription(resources
0909: .getString("TableHeader_family_Description"));
0910: prop_family.setExpert(false);
0911: prop_family.setHidden(true);
0912: prop_family.setPreferred(false);
0913: prop_family
0914: .setValue(
0915: Constants.PropertyDescriptor.CATEGORY,
0916: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0917:
0918: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0919: beanClass, "getId", "setId");
0920: prop_id.setDisplayName(resources
0921: .getString("TableHeader_id_DisplayName"));
0922: prop_id.setShortDescription(resources
0923: .getString("TableHeader_id_Description"));
0924: prop_id.setExpert(false);
0925: prop_id.setHidden(true);
0926: prop_id.setPreferred(false);
0927: attrib = new AttributeDescriptor("id", false, null, false);
0928: prop_id.setValue(
0929: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0930: attrib);
0931: prop_id
0932: .setValue(
0933: Constants.PropertyDescriptor.CATEGORY,
0934: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0935:
0936: PropertyDescriptor prop_parent = new PropertyDescriptor(
0937: "parent", beanClass, "getParent", "setParent");
0938: prop_parent.setDisplayName(resources
0939: .getString("TableHeader_parent_DisplayName"));
0940: prop_parent.setShortDescription(resources
0941: .getString("TableHeader_parent_Description"));
0942: prop_parent.setExpert(false);
0943: prop_parent.setHidden(true);
0944: prop_parent.setPreferred(false);
0945: prop_parent
0946: .setValue(
0947: Constants.PropertyDescriptor.CATEGORY,
0948: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0949:
0950: PropertyDescriptor prop_rendered = new PropertyDescriptor(
0951: "rendered", beanClass, "isRendered", "setRendered");
0952: prop_rendered.setDisplayName(resources
0953: .getString("TableHeader_rendered_DisplayName"));
0954: prop_rendered.setShortDescription(resources
0955: .getString("TableHeader_rendered_Description"));
0956: prop_rendered.setExpert(false);
0957: prop_rendered.setHidden(false);
0958: prop_rendered.setPreferred(false);
0959: attrib = new AttributeDescriptor("rendered", false, null,
0960: true);
0961: prop_rendered.setValue(
0962: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0963: attrib);
0964: prop_rendered
0965: .setValue(
0966: Constants.PropertyDescriptor.CATEGORY,
0967: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0968:
0969: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
0970: "rendererType", beanClass, "getRendererType",
0971: "setRendererType");
0972: prop_rendererType.setDisplayName(resources
0973: .getString("TableHeader_rendererType_DisplayName"));
0974: prop_rendererType.setShortDescription(resources
0975: .getString("TableHeader_rendererType_Description"));
0976: prop_rendererType.setExpert(false);
0977: prop_rendererType.setHidden(true);
0978: prop_rendererType.setPreferred(false);
0979: prop_rendererType
0980: .setValue(
0981: Constants.PropertyDescriptor.CATEGORY,
0982: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0983:
0984: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
0985: "rendersChildren", beanClass, "getRendersChildren",
0986: null);
0987: prop_rendersChildren
0988: .setDisplayName(resources
0989: .getString("TableHeader_rendersChildren_DisplayName"));
0990: prop_rendersChildren
0991: .setShortDescription(resources
0992: .getString("TableHeader_rendersChildren_Description"));
0993: prop_rendersChildren.setExpert(false);
0994: prop_rendersChildren.setHidden(true);
0995: prop_rendersChildren.setPreferred(false);
0996: prop_rendersChildren
0997: .setValue(
0998: Constants.PropertyDescriptor.CATEGORY,
0999: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1000:
1001: propDescriptors = new PropertyDescriptor[] { prop_abbr,
1002: prop_align, prop_attributes, prop_axis,
1003: prop_bgColor, prop_char, prop_charOff,
1004: prop_childCount, prop_children, prop_colSpan,
1005: prop_extraHtml, prop_facets, prop_family,
1006: prop_groupHeader, prop_headers, prop_height,
1007: prop_id, prop_noWrap, prop_onClick,
1008: prop_onDblClick, prop_onKeyDown, prop_onKeyPress,
1009: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1010: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1011: prop_parent, prop_rendered, prop_rendererType,
1012: prop_rendersChildren, prop_rowSpan, prop_scope,
1013: prop_selectHeader, prop_sortHeader, prop_style,
1014: prop_styleClass, prop_toolTip, prop_valign,
1015: prop_visible, prop_width, };
1016: return propDescriptors;
1017:
1018: } catch (IntrospectionException e) {
1019: e.printStackTrace();
1020: return null;
1021: }
1022:
1023: }
1024:
1025: }
1026: //GEN-END:BeanInfo
|