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 TablePanelsBeanInfoBase 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(), TablePanelsBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>TablePanelsBeanInfoBase</code>.</p>
0075: */
0076: public TablePanelsBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.TablePanels.class;
0079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TablePanels_C16";
0080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TablePanels_C32";
0081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TablePanels_M16";
0082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TablePanels_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("TablePanels_DisplayName"));
0143: beanDescriptor.setShortDescription(resources
0144: .getString("TablePanels_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: "tablePanels");
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: "tablePanels");
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("TablePanels_abbr_DisplayName"));
0286: prop_abbr.setShortDescription(resources
0287: .getString("TablePanels_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("TablePanels_align_DisplayName"));
0304: prop_align.setShortDescription(resources
0305: .getString("TablePanels_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("TablePanels_axis_DisplayName"));
0322: prop_axis.setShortDescription(resources
0323: .getString("TablePanels_axis_Description"));
0324: prop_axis.setExpert(false);
0325: prop_axis.setHidden(false);
0326: prop_axis.setPreferred(false);
0327: attrib = new AttributeDescriptor("axis", false, null, true);
0328: prop_axis.setValue(
0329: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0330: attrib);
0331: prop_axis
0332: .setValue(
0333: Constants.PropertyDescriptor.CATEGORY,
0334: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0335:
0336: PropertyDescriptor prop_bgColor = new PropertyDescriptor(
0337: "bgColor", beanClass, "getBgColor", "setBgColor");
0338: prop_bgColor.setDisplayName(resources
0339: .getString("TablePanels_bgColor_DisplayName"));
0340: prop_bgColor.setShortDescription(resources
0341: .getString("TablePanels_bgColor_Description"));
0342: prop_bgColor.setExpert(false);
0343: prop_bgColor.setHidden(false);
0344: prop_bgColor.setPreferred(false);
0345: attrib = new AttributeDescriptor("bgColor", false, null,
0346: true);
0347: prop_bgColor.setValue(
0348: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0349: attrib);
0350: prop_bgColor
0351: .setValue(
0352: Constants.PropertyDescriptor.CATEGORY,
0353: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0354:
0355: PropertyDescriptor prop_char = new PropertyDescriptor(
0356: "char", beanClass, "getChar", "setChar");
0357: prop_char.setDisplayName(resources
0358: .getString("TablePanels_char_DisplayName"));
0359: prop_char.setShortDescription(resources
0360: .getString("TablePanels_char_Description"));
0361: prop_char.setExpert(false);
0362: prop_char.setHidden(false);
0363: prop_char.setPreferred(false);
0364: attrib = new AttributeDescriptor("char", false, null, true);
0365: prop_char.setValue(
0366: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0367: attrib);
0368: prop_char
0369: .setValue(
0370: Constants.PropertyDescriptor.CATEGORY,
0371: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0372:
0373: PropertyDescriptor prop_charOff = new PropertyDescriptor(
0374: "charOff", beanClass, "getCharOff", "setCharOff");
0375: prop_charOff.setDisplayName(resources
0376: .getString("TablePanels_charOff_DisplayName"));
0377: prop_charOff.setShortDescription(resources
0378: .getString("TablePanels_charOff_Description"));
0379: prop_charOff.setExpert(false);
0380: prop_charOff.setHidden(false);
0381: prop_charOff.setPreferred(false);
0382: attrib = new AttributeDescriptor("charOff", false, null,
0383: true);
0384: prop_charOff.setValue(
0385: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0386: attrib);
0387: prop_charOff
0388: .setValue(
0389: Constants.PropertyDescriptor.CATEGORY,
0390: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0391:
0392: PropertyDescriptor prop_colSpan = new PropertyDescriptor(
0393: "colSpan", beanClass, "getColSpan", "setColSpan");
0394: prop_colSpan.setDisplayName(resources
0395: .getString("TablePanels_colSpan_DisplayName"));
0396: prop_colSpan.setShortDescription(resources
0397: .getString("TablePanels_colSpan_Description"));
0398: prop_colSpan.setExpert(false);
0399: prop_colSpan.setHidden(false);
0400: prop_colSpan.setPreferred(false);
0401: attrib = new AttributeDescriptor("colSpan", false, null,
0402: true);
0403: prop_colSpan.setValue(
0404: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0405: attrib);
0406: prop_colSpan
0407: .setValue(
0408: Constants.PropertyDescriptor.CATEGORY,
0409: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0410:
0411: PropertyDescriptor prop_extraHtml = new PropertyDescriptor(
0412: "extraHtml", beanClass, "getExtraHtml",
0413: "setExtraHtml");
0414: prop_extraHtml.setDisplayName(resources
0415: .getString("TablePanels_extraHtml_DisplayName"));
0416: prop_extraHtml.setShortDescription(resources
0417: .getString("TablePanels_extraHtml_Description"));
0418: prop_extraHtml.setExpert(false);
0419: prop_extraHtml.setHidden(false);
0420: prop_extraHtml.setPreferred(false);
0421: attrib = new AttributeDescriptor("extraHtml", false, null,
0422: true);
0423: prop_extraHtml.setValue(
0424: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0425: attrib);
0426: prop_extraHtml
0427: .setValue(
0428: Constants.PropertyDescriptor.CATEGORY,
0429: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0430:
0431: PropertyDescriptor prop_filterPanel = new PropertyDescriptor(
0432: "filterPanel", beanClass, "isFilterPanel",
0433: "setFilterPanel");
0434: prop_filterPanel.setDisplayName(resources
0435: .getString("TablePanels_filterPanel_DisplayName"));
0436: prop_filterPanel.setShortDescription(resources
0437: .getString("TablePanels_filterPanel_Description"));
0438: prop_filterPanel.setExpert(false);
0439: prop_filterPanel.setHidden(false);
0440: prop_filterPanel.setPreferred(false);
0441: prop_filterPanel
0442: .setValue(
0443: Constants.PropertyDescriptor.CATEGORY,
0444: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0445:
0446: PropertyDescriptor prop_headers = new PropertyDescriptor(
0447: "headers", beanClass, "getHeaders", "setHeaders");
0448: prop_headers.setDisplayName(resources
0449: .getString("TablePanels_headers_DisplayName"));
0450: prop_headers.setShortDescription(resources
0451: .getString("TablePanels_headers_Description"));
0452: prop_headers.setExpert(false);
0453: prop_headers.setHidden(false);
0454: prop_headers.setPreferred(false);
0455: attrib = new AttributeDescriptor("headers", false, null,
0456: true);
0457: prop_headers.setValue(
0458: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0459: attrib);
0460: prop_headers
0461: .setValue(
0462: Constants.PropertyDescriptor.CATEGORY,
0463: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0464:
0465: PropertyDescriptor prop_height = new PropertyDescriptor(
0466: "height", beanClass, "getHeight", "setHeight");
0467: prop_height.setDisplayName(resources
0468: .getString("TablePanels_height_DisplayName"));
0469: prop_height.setShortDescription(resources
0470: .getString("TablePanels_height_Description"));
0471: prop_height.setExpert(false);
0472: prop_height.setHidden(false);
0473: prop_height.setPreferred(false);
0474: attrib = new AttributeDescriptor("height", false, null,
0475: true);
0476: prop_height.setValue(
0477: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0478: attrib);
0479: prop_height
0480: .setValue(
0481: Constants.PropertyDescriptor.CATEGORY,
0482: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0483:
0484: PropertyDescriptor prop_noWrap = new PropertyDescriptor(
0485: "noWrap", beanClass, "isNoWrap", "setNoWrap");
0486: prop_noWrap.setDisplayName(resources
0487: .getString("TablePanels_noWrap_DisplayName"));
0488: prop_noWrap.setShortDescription(resources
0489: .getString("TablePanels_noWrap_Description"));
0490: prop_noWrap.setExpert(false);
0491: prop_noWrap.setHidden(false);
0492: prop_noWrap.setPreferred(false);
0493: attrib = new AttributeDescriptor("noWrap", false, null,
0494: true);
0495: prop_noWrap.setValue(
0496: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0497: attrib);
0498: prop_noWrap
0499: .setValue(
0500: Constants.PropertyDescriptor.CATEGORY,
0501: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0502:
0503: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0504: "onClick", beanClass, "getOnClick", "setOnClick");
0505: prop_onClick.setDisplayName(resources
0506: .getString("TablePanels_onClick_DisplayName"));
0507: prop_onClick.setShortDescription(resources
0508: .getString("TablePanels_onClick_Description"));
0509: prop_onClick.setExpert(false);
0510: prop_onClick.setHidden(false);
0511: prop_onClick.setPreferred(false);
0512: attrib = new AttributeDescriptor("onClick", false, null,
0513: true);
0514: prop_onClick.setValue(
0515: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0516: attrib);
0517: prop_onClick
0518: .setValue(
0519: Constants.PropertyDescriptor.CATEGORY,
0520: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0521:
0522: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0523: "onDblClick", beanClass, "getOnDblClick",
0524: "setOnDblClick");
0525: prop_onDblClick.setDisplayName(resources
0526: .getString("TablePanels_onDblClick_DisplayName"));
0527: prop_onDblClick.setShortDescription(resources
0528: .getString("TablePanels_onDblClick_Description"));
0529: prop_onDblClick.setExpert(false);
0530: prop_onDblClick.setHidden(false);
0531: prop_onDblClick.setPreferred(false);
0532: attrib = new AttributeDescriptor("onDblClick", false, null,
0533: true);
0534: prop_onDblClick.setValue(
0535: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0536: attrib);
0537: prop_onDblClick
0538: .setValue(
0539: Constants.PropertyDescriptor.CATEGORY,
0540: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0541:
0542: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0543: "onKeyDown", beanClass, "getOnKeyDown",
0544: "setOnKeyDown");
0545: prop_onKeyDown.setDisplayName(resources
0546: .getString("TablePanels_onKeyDown_DisplayName"));
0547: prop_onKeyDown.setShortDescription(resources
0548: .getString("TablePanels_onKeyDown_Description"));
0549: prop_onKeyDown.setExpert(false);
0550: prop_onKeyDown.setHidden(false);
0551: prop_onKeyDown.setPreferred(false);
0552: attrib = new AttributeDescriptor("onKeyDown", false, null,
0553: true);
0554: prop_onKeyDown.setValue(
0555: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0556: attrib);
0557: prop_onKeyDown
0558: .setValue(
0559: Constants.PropertyDescriptor.CATEGORY,
0560: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0561:
0562: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0563: "onKeyPress", beanClass, "getOnKeyPress",
0564: "setOnKeyPress");
0565: prop_onKeyPress.setDisplayName(resources
0566: .getString("TablePanels_onKeyPress_DisplayName"));
0567: prop_onKeyPress.setShortDescription(resources
0568: .getString("TablePanels_onKeyPress_Description"));
0569: prop_onKeyPress.setExpert(false);
0570: prop_onKeyPress.setHidden(false);
0571: prop_onKeyPress.setPreferred(false);
0572: attrib = new AttributeDescriptor("onKeyPress", false, null,
0573: true);
0574: prop_onKeyPress.setValue(
0575: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0576: attrib);
0577: prop_onKeyPress
0578: .setValue(
0579: Constants.PropertyDescriptor.CATEGORY,
0580: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0581:
0582: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0583: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0584: prop_onKeyUp.setDisplayName(resources
0585: .getString("TablePanels_onKeyUp_DisplayName"));
0586: prop_onKeyUp.setShortDescription(resources
0587: .getString("TablePanels_onKeyUp_Description"));
0588: prop_onKeyUp.setExpert(false);
0589: prop_onKeyUp.setHidden(false);
0590: prop_onKeyUp.setPreferred(false);
0591: attrib = new AttributeDescriptor("onKeyUp", false, null,
0592: true);
0593: prop_onKeyUp.setValue(
0594: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0595: attrib);
0596: prop_onKeyUp
0597: .setValue(
0598: Constants.PropertyDescriptor.CATEGORY,
0599: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0600:
0601: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0602: "onMouseDown", beanClass, "getOnMouseDown",
0603: "setOnMouseDown");
0604: prop_onMouseDown.setDisplayName(resources
0605: .getString("TablePanels_onMouseDown_DisplayName"));
0606: prop_onMouseDown.setShortDescription(resources
0607: .getString("TablePanels_onMouseDown_Description"));
0608: prop_onMouseDown.setExpert(false);
0609: prop_onMouseDown.setHidden(false);
0610: prop_onMouseDown.setPreferred(false);
0611: attrib = new AttributeDescriptor("onMouseDown", false,
0612: null, true);
0613: prop_onMouseDown.setValue(
0614: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0615: attrib);
0616: prop_onMouseDown
0617: .setValue(
0618: Constants.PropertyDescriptor.CATEGORY,
0619: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0620:
0621: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0622: "onMouseMove", beanClass, "getOnMouseMove",
0623: "setOnMouseMove");
0624: prop_onMouseMove.setDisplayName(resources
0625: .getString("TablePanels_onMouseMove_DisplayName"));
0626: prop_onMouseMove.setShortDescription(resources
0627: .getString("TablePanels_onMouseMove_Description"));
0628: prop_onMouseMove.setExpert(false);
0629: prop_onMouseMove.setHidden(false);
0630: prop_onMouseMove.setPreferred(false);
0631: attrib = new AttributeDescriptor("onMouseMove", false,
0632: null, true);
0633: prop_onMouseMove.setValue(
0634: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0635: attrib);
0636: prop_onMouseMove
0637: .setValue(
0638: Constants.PropertyDescriptor.CATEGORY,
0639: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0640:
0641: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0642: "onMouseOut", beanClass, "getOnMouseOut",
0643: "setOnMouseOut");
0644: prop_onMouseOut.setDisplayName(resources
0645: .getString("TablePanels_onMouseOut_DisplayName"));
0646: prop_onMouseOut.setShortDescription(resources
0647: .getString("TablePanels_onMouseOut_Description"));
0648: prop_onMouseOut.setExpert(false);
0649: prop_onMouseOut.setHidden(false);
0650: prop_onMouseOut.setPreferred(false);
0651: attrib = new AttributeDescriptor("onMouseOut", false, null,
0652: true);
0653: prop_onMouseOut.setValue(
0654: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0655: attrib);
0656: prop_onMouseOut
0657: .setValue(
0658: Constants.PropertyDescriptor.CATEGORY,
0659: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0660:
0661: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0662: "onMouseOver", beanClass, "getOnMouseOver",
0663: "setOnMouseOver");
0664: prop_onMouseOver.setDisplayName(resources
0665: .getString("TablePanels_onMouseOver_DisplayName"));
0666: prop_onMouseOver.setShortDescription(resources
0667: .getString("TablePanels_onMouseOver_Description"));
0668: prop_onMouseOver.setExpert(false);
0669: prop_onMouseOver.setHidden(false);
0670: prop_onMouseOver.setPreferred(false);
0671: attrib = new AttributeDescriptor("onMouseOver", false,
0672: null, true);
0673: prop_onMouseOver.setValue(
0674: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0675: attrib);
0676: prop_onMouseOver
0677: .setValue(
0678: Constants.PropertyDescriptor.CATEGORY,
0679: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0680:
0681: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0682: "onMouseUp", beanClass, "getOnMouseUp",
0683: "setOnMouseUp");
0684: prop_onMouseUp.setDisplayName(resources
0685: .getString("TablePanels_onMouseUp_DisplayName"));
0686: prop_onMouseUp.setShortDescription(resources
0687: .getString("TablePanels_onMouseUp_Description"));
0688: prop_onMouseUp.setExpert(false);
0689: prop_onMouseUp.setHidden(false);
0690: prop_onMouseUp.setPreferred(false);
0691: attrib = new AttributeDescriptor("onMouseUp", false, null,
0692: true);
0693: prop_onMouseUp.setValue(
0694: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0695: attrib);
0696: prop_onMouseUp
0697: .setValue(
0698: Constants.PropertyDescriptor.CATEGORY,
0699: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0700:
0701: PropertyDescriptor prop_preferencesPanel = new PropertyDescriptor(
0702: "preferencesPanel", beanClass,
0703: "isPreferencesPanel", "setPreferencesPanel");
0704: prop_preferencesPanel
0705: .setDisplayName(resources
0706: .getString("TablePanels_preferencesPanel_DisplayName"));
0707: prop_preferencesPanel
0708: .setShortDescription(resources
0709: .getString("TablePanels_preferencesPanel_Description"));
0710: prop_preferencesPanel.setExpert(false);
0711: prop_preferencesPanel.setHidden(false);
0712: prop_preferencesPanel.setPreferred(false);
0713: prop_preferencesPanel
0714: .setValue(
0715: Constants.PropertyDescriptor.CATEGORY,
0716: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0717:
0718: PropertyDescriptor prop_rowSpan = new PropertyDescriptor(
0719: "rowSpan", beanClass, "getRowSpan", "setRowSpan");
0720: prop_rowSpan.setDisplayName(resources
0721: .getString("TablePanels_rowSpan_DisplayName"));
0722: prop_rowSpan.setShortDescription(resources
0723: .getString("TablePanels_rowSpan_Description"));
0724: prop_rowSpan.setExpert(false);
0725: prop_rowSpan.setHidden(false);
0726: prop_rowSpan.setPreferred(false);
0727: attrib = new AttributeDescriptor("rowSpan", false, null,
0728: true);
0729: prop_rowSpan.setValue(
0730: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0731: attrib);
0732: prop_rowSpan
0733: .setValue(
0734: Constants.PropertyDescriptor.CATEGORY,
0735: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0736:
0737: PropertyDescriptor prop_scope = new PropertyDescriptor(
0738: "scope", beanClass, "getScope", "setScope");
0739: prop_scope.setDisplayName(resources
0740: .getString("TablePanels_scope_DisplayName"));
0741: prop_scope.setShortDescription(resources
0742: .getString("TablePanels_scope_Description"));
0743: prop_scope.setExpert(false);
0744: prop_scope.setHidden(false);
0745: prop_scope.setPreferred(false);
0746: attrib = new AttributeDescriptor("scope", false, null, true);
0747: prop_scope.setValue(
0748: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0749: attrib);
0750: prop_scope
0751: .setValue(
0752: Constants.PropertyDescriptor.CATEGORY,
0753: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0754:
0755: PropertyDescriptor prop_style = new PropertyDescriptor(
0756: "style", beanClass, "getStyle", "setStyle");
0757: prop_style.setDisplayName(resources
0758: .getString("TablePanels_style_DisplayName"));
0759: prop_style.setShortDescription(resources
0760: .getString("TablePanels_style_Description"));
0761: prop_style.setExpert(false);
0762: prop_style.setHidden(false);
0763: prop_style.setPreferred(false);
0764: attrib = new AttributeDescriptor("style", false, null, true);
0765: prop_style.setValue(
0766: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0767: attrib);
0768: prop_style
0769: .setValue(
0770: Constants.PropertyDescriptor.CATEGORY,
0771: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0772:
0773: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0774: "styleClass", beanClass, "getStyleClass",
0775: "setStyleClass");
0776: prop_styleClass.setDisplayName(resources
0777: .getString("TablePanels_styleClass_DisplayName"));
0778: prop_styleClass.setShortDescription(resources
0779: .getString("TablePanels_styleClass_Description"));
0780: prop_styleClass.setExpert(false);
0781: prop_styleClass.setHidden(false);
0782: prop_styleClass.setPreferred(false);
0783: attrib = new AttributeDescriptor("styleClass", false, null,
0784: true);
0785: prop_styleClass.setValue(
0786: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0787: attrib);
0788: prop_styleClass
0789: .setValue(
0790: Constants.PropertyDescriptor.CATEGORY,
0791: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0792:
0793: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0794: "toolTip", beanClass, "getToolTip", "setToolTip");
0795: prop_toolTip.setDisplayName(resources
0796: .getString("TablePanels_toolTip_DisplayName"));
0797: prop_toolTip.setShortDescription(resources
0798: .getString("TablePanels_toolTip_Description"));
0799: prop_toolTip.setExpert(false);
0800: prop_toolTip.setHidden(false);
0801: prop_toolTip.setPreferred(false);
0802: attrib = new AttributeDescriptor("toolTip", false, null,
0803: true);
0804: prop_toolTip.setValue(
0805: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0806: attrib);
0807: prop_toolTip
0808: .setValue(
0809: Constants.PropertyDescriptor.CATEGORY,
0810: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0811:
0812: PropertyDescriptor prop_valign = new PropertyDescriptor(
0813: "valign", beanClass, "getValign", "setValign");
0814: prop_valign.setDisplayName(resources
0815: .getString("TablePanels_valign_DisplayName"));
0816: prop_valign.setShortDescription(resources
0817: .getString("TablePanels_valign_Description"));
0818: prop_valign.setExpert(false);
0819: prop_valign.setHidden(false);
0820: prop_valign.setPreferred(false);
0821: attrib = new AttributeDescriptor("valign", false, null,
0822: true);
0823: prop_valign.setValue(
0824: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0825: attrib);
0826: prop_valign
0827: .setValue(
0828: Constants.PropertyDescriptor.CATEGORY,
0829: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0830:
0831: PropertyDescriptor prop_visible = new PropertyDescriptor(
0832: "visible", beanClass, "isVisible", "setVisible");
0833: prop_visible.setDisplayName(resources
0834: .getString("TablePanels_visible_DisplayName"));
0835: prop_visible.setShortDescription(resources
0836: .getString("TablePanels_visible_Description"));
0837: prop_visible.setExpert(false);
0838: prop_visible.setHidden(false);
0839: prop_visible.setPreferred(false);
0840: attrib = new AttributeDescriptor("visible", false, "true",
0841: true);
0842: prop_visible.setValue(
0843: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0844: attrib);
0845: prop_visible
0846: .setValue(
0847: Constants.PropertyDescriptor.CATEGORY,
0848: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0849:
0850: PropertyDescriptor prop_width = new PropertyDescriptor(
0851: "width", beanClass, "getWidth", "setWidth");
0852: prop_width.setDisplayName(resources
0853: .getString("TablePanels_width_DisplayName"));
0854: prop_width.setShortDescription(resources
0855: .getString("TablePanels_width_Description"));
0856: prop_width.setExpert(false);
0857: prop_width.setHidden(false);
0858: prop_width.setPreferred(false);
0859: attrib = new AttributeDescriptor("width", false, null, true);
0860: prop_width.setValue(
0861: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0862: attrib);
0863: prop_width
0864: .setValue(
0865: Constants.PropertyDescriptor.CATEGORY,
0866: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0867:
0868: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0869: "attributes", beanClass, "getAttributes", null);
0870: prop_attributes.setDisplayName(resources
0871: .getString("TablePanels_attributes_DisplayName"));
0872: prop_attributes.setShortDescription(resources
0873: .getString("TablePanels_attributes_Description"));
0874: prop_attributes.setExpert(false);
0875: prop_attributes.setHidden(true);
0876: prop_attributes.setPreferred(false);
0877: prop_attributes
0878: .setValue(
0879: Constants.PropertyDescriptor.CATEGORY,
0880: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0881:
0882: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0883: "childCount", beanClass, "getChildCount", null);
0884: prop_childCount.setDisplayName(resources
0885: .getString("TablePanels_childCount_DisplayName"));
0886: prop_childCount.setShortDescription(resources
0887: .getString("TablePanels_childCount_Description"));
0888: prop_childCount.setExpert(false);
0889: prop_childCount.setHidden(true);
0890: prop_childCount.setPreferred(false);
0891: prop_childCount
0892: .setValue(
0893: Constants.PropertyDescriptor.CATEGORY,
0894: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0895:
0896: PropertyDescriptor prop_children = new PropertyDescriptor(
0897: "children", beanClass, "getChildren", null);
0898: prop_children.setDisplayName(resources
0899: .getString("TablePanels_children_DisplayName"));
0900: prop_children.setShortDescription(resources
0901: .getString("TablePanels_children_Description"));
0902: prop_children.setExpert(false);
0903: prop_children.setHidden(true);
0904: prop_children.setPreferred(false);
0905: prop_children
0906: .setValue(
0907: Constants.PropertyDescriptor.CATEGORY,
0908: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0909:
0910: PropertyDescriptor prop_facets = new PropertyDescriptor(
0911: "facets", beanClass, "getFacets", null);
0912: prop_facets.setDisplayName(resources
0913: .getString("TablePanels_facets_DisplayName"));
0914: prop_facets.setShortDescription(resources
0915: .getString("TablePanels_facets_Description"));
0916: prop_facets.setExpert(false);
0917: prop_facets.setHidden(true);
0918: prop_facets.setPreferred(false);
0919: prop_facets
0920: .setValue(
0921: Constants.PropertyDescriptor.CATEGORY,
0922: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0923:
0924: PropertyDescriptor prop_family = new PropertyDescriptor(
0925: "family", beanClass, "getFamily", null);
0926: prop_family.setDisplayName(resources
0927: .getString("TablePanels_family_DisplayName"));
0928: prop_family.setShortDescription(resources
0929: .getString("TablePanels_family_Description"));
0930: prop_family.setExpert(false);
0931: prop_family.setHidden(true);
0932: prop_family.setPreferred(false);
0933: prop_family
0934: .setValue(
0935: Constants.PropertyDescriptor.CATEGORY,
0936: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0937:
0938: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0939: beanClass, "getId", "setId");
0940: prop_id.setDisplayName(resources
0941: .getString("TablePanels_id_DisplayName"));
0942: prop_id.setShortDescription(resources
0943: .getString("TablePanels_id_Description"));
0944: prop_id.setExpert(false);
0945: prop_id.setHidden(true);
0946: prop_id.setPreferred(false);
0947: attrib = new AttributeDescriptor("id", false, null, false);
0948: prop_id.setValue(
0949: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0950: attrib);
0951: prop_id
0952: .setValue(
0953: Constants.PropertyDescriptor.CATEGORY,
0954: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0955:
0956: PropertyDescriptor prop_parent = new PropertyDescriptor(
0957: "parent", beanClass, "getParent", "setParent");
0958: prop_parent.setDisplayName(resources
0959: .getString("TablePanels_parent_DisplayName"));
0960: prop_parent.setShortDescription(resources
0961: .getString("TablePanels_parent_Description"));
0962: prop_parent.setExpert(false);
0963: prop_parent.setHidden(true);
0964: prop_parent.setPreferred(false);
0965: prop_parent
0966: .setValue(
0967: Constants.PropertyDescriptor.CATEGORY,
0968: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0969:
0970: PropertyDescriptor prop_rendered = new PropertyDescriptor(
0971: "rendered", beanClass, "isRendered", "setRendered");
0972: prop_rendered.setDisplayName(resources
0973: .getString("TablePanels_rendered_DisplayName"));
0974: prop_rendered.setShortDescription(resources
0975: .getString("TablePanels_rendered_Description"));
0976: prop_rendered.setExpert(false);
0977: prop_rendered.setHidden(false);
0978: prop_rendered.setPreferred(false);
0979: attrib = new AttributeDescriptor("rendered", false, null,
0980: true);
0981: prop_rendered.setValue(
0982: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0983: attrib);
0984: prop_rendered
0985: .setValue(
0986: Constants.PropertyDescriptor.CATEGORY,
0987: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0988:
0989: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
0990: "rendererType", beanClass, "getRendererType",
0991: "setRendererType");
0992: prop_rendererType.setDisplayName(resources
0993: .getString("TablePanels_rendererType_DisplayName"));
0994: prop_rendererType.setShortDescription(resources
0995: .getString("TablePanels_rendererType_Description"));
0996: prop_rendererType.setExpert(false);
0997: prop_rendererType.setHidden(true);
0998: prop_rendererType.setPreferred(false);
0999: prop_rendererType
1000: .setValue(
1001: Constants.PropertyDescriptor.CATEGORY,
1002: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1003:
1004: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1005: "rendersChildren", beanClass, "getRendersChildren",
1006: null);
1007: prop_rendersChildren
1008: .setDisplayName(resources
1009: .getString("TablePanels_rendersChildren_DisplayName"));
1010: prop_rendersChildren
1011: .setShortDescription(resources
1012: .getString("TablePanels_rendersChildren_Description"));
1013: prop_rendersChildren.setExpert(false);
1014: prop_rendersChildren.setHidden(true);
1015: prop_rendersChildren.setPreferred(false);
1016: prop_rendersChildren
1017: .setValue(
1018: Constants.PropertyDescriptor.CATEGORY,
1019: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1020:
1021: propDescriptors = new PropertyDescriptor[] { prop_abbr,
1022: prop_align, prop_attributes, prop_axis,
1023: prop_bgColor, prop_char, prop_charOff,
1024: prop_childCount, prop_children, prop_colSpan,
1025: prop_extraHtml, prop_facets, prop_family,
1026: prop_filterPanel, prop_headers, prop_height,
1027: prop_id, prop_noWrap, prop_onClick,
1028: prop_onDblClick, prop_onKeyDown, prop_onKeyPress,
1029: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1030: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1031: prop_parent, prop_preferencesPanel, prop_rendered,
1032: prop_rendererType, prop_rendersChildren,
1033: prop_rowSpan, prop_scope, prop_style,
1034: prop_styleClass, prop_toolTip, prop_valign,
1035: prop_visible, prop_width, };
1036: return propDescriptors;
1037:
1038: } catch (IntrospectionException e) {
1039: e.printStackTrace();
1040: return null;
1041: }
1042:
1043: }
1044:
1045: }
1046: //GEN-END:BeanInfo
|