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 TableColumnBeanInfoBase 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(), TableColumnBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>TableColumnBeanInfoBase</code>.</p>
0075: */
0076: public TableColumnBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.TableColumn.class;
0079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableColumn_C16";
0080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableColumn_C32";
0081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableColumn_M16";
0082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableColumn_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("TableColumn_DisplayName"));
0143: beanDescriptor.setShortDescription(resources
0144: .getString("TableColumn_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_column");
0153: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0154: "tableColumn");
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_column_props");
0160: beanDescriptor.setValue(
0161: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0162: getCategoryDescriptors());
0163: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0164: "tableColumn");
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: facetDescriptors = new FacetDescriptor[] {};
0222: return facetDescriptors;
0223:
0224: }
0225:
0226: /**
0227: * <p>Return the specified image (if any)
0228: * for this component class.</p>
0229: */
0230: public Image getIcon(int kind) {
0231:
0232: String name;
0233: switch (kind) {
0234: case ICON_COLOR_16x16:
0235: name = iconFileName_C16;
0236: break;
0237: case ICON_COLOR_32x32:
0238: name = iconFileName_C32;
0239: break;
0240: case ICON_MONO_16x16:
0241: name = iconFileName_M16;
0242: break;
0243: case ICON_MONO_32x32:
0244: name = iconFileName_M32;
0245: break;
0246: default:
0247: name = null;
0248: break;
0249: }
0250: if (name == null) {
0251: return null;
0252: }
0253:
0254: Image image = loadImage(name + ".png");
0255: if (image == null) {
0256: image = loadImage(name + ".gif");
0257: }
0258: return image;
0259:
0260: }
0261:
0262: /**
0263: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0264: */
0265: private java.lang.Class loadClass(java.lang.String name) {
0266:
0267: try {
0268: return Class.forName(name);
0269: } catch (ClassNotFoundException e) {
0270: throw new RuntimeException(e);
0271: }
0272:
0273: }
0274:
0275: /**
0276: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0277: */
0278: public PropertyDescriptor[] getPropertyDescriptors() {
0279:
0280: if (propDescriptors != null) {
0281: return propDescriptors;
0282: }
0283: AttributeDescriptor attrib = null;
0284:
0285: try {
0286:
0287: PropertyDescriptor prop_abbr = new PropertyDescriptor(
0288: "abbr", beanClass, "getAbbr", "setAbbr");
0289: prop_abbr.setDisplayName(resources
0290: .getString("TableColumn_abbr_DisplayName"));
0291: prop_abbr.setShortDescription(resources
0292: .getString("TableColumn_abbr_Description"));
0293: prop_abbr.setExpert(false);
0294: prop_abbr.setHidden(true);
0295: prop_abbr.setPreferred(false);
0296: prop_abbr
0297: .setValue(
0298: Constants.PropertyDescriptor.CATEGORY,
0299: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0300:
0301: PropertyDescriptor prop_align = new PropertyDescriptor(
0302: "align", beanClass, "getAlign", "setAlign");
0303: prop_align.setDisplayName(resources
0304: .getString("TableColumn_align_DisplayName"));
0305: prop_align.setShortDescription(resources
0306: .getString("TableColumn_align_Description"));
0307: prop_align
0308: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0309: prop_align.setExpert(false);
0310: prop_align.setHidden(false);
0311: prop_align.setPreferred(false);
0312: attrib = new AttributeDescriptor("align", false, null, true);
0313: prop_align.setValue(
0314: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0315: attrib);
0316: prop_align
0317: .setValue(
0318: Constants.PropertyDescriptor.CATEGORY,
0319: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0320: prop_align
0321: .setValue(
0322: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0323: com.sun.rave.propertyeditors.domains.StringTokensDomain.class);
0324: prop_align
0325: .setValue(
0326: "com.sun.rave.propertyeditors.domains.TOKEN_STRING",
0327: "left,center,right,justify");
0328:
0329: PropertyDescriptor prop_alignKey = new PropertyDescriptor(
0330: "alignKey", beanClass, "getAlignKey", "setAlignKey");
0331: prop_alignKey.setDisplayName(resources
0332: .getString("TableColumn_alignKey_DisplayName"));
0333: prop_alignKey.setShortDescription(resources
0334: .getString("TableColumn_alignKey_Description"));
0335: prop_alignKey
0336: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0337: prop_alignKey.setExpert(false);
0338: prop_alignKey.setHidden(false);
0339: prop_alignKey.setPreferred(false);
0340: attrib = new AttributeDescriptor("alignKey", false, null,
0341: true);
0342: prop_alignKey.setValue(
0343: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0344: attrib);
0345: prop_alignKey
0346: .setValue(
0347: Constants.PropertyDescriptor.CATEGORY,
0348: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0349:
0350: PropertyDescriptor prop_axis = new PropertyDescriptor(
0351: "axis", beanClass, "getAxis", "setAxis");
0352: prop_axis.setDisplayName(resources
0353: .getString("TableColumn_axis_DisplayName"));
0354: prop_axis.setShortDescription(resources
0355: .getString("TableColumn_axis_Description"));
0356: prop_axis
0357: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0358: prop_axis.setExpert(false);
0359: prop_axis.setHidden(true);
0360: prop_axis.setPreferred(false);
0361: prop_axis
0362: .setValue(
0363: Constants.PropertyDescriptor.CATEGORY,
0364: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0365:
0366: PropertyDescriptor prop_bgColor = new PropertyDescriptor(
0367: "bgColor", beanClass, "getBgColor", "setBgColor");
0368: prop_bgColor.setDisplayName(resources
0369: .getString("TableColumn_bgColor_DisplayName"));
0370: prop_bgColor.setShortDescription(resources
0371: .getString("TableColumn_bgColor_Description"));
0372: prop_bgColor.setExpert(false);
0373: prop_bgColor.setHidden(true);
0374: prop_bgColor.setPreferred(false);
0375: prop_bgColor
0376: .setValue(
0377: Constants.PropertyDescriptor.CATEGORY,
0378: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0379:
0380: PropertyDescriptor prop_char = new PropertyDescriptor(
0381: "char", beanClass, "getChar", "setChar");
0382: prop_char.setDisplayName(resources
0383: .getString("TableColumn_char_DisplayName"));
0384: prop_char.setShortDescription(resources
0385: .getString("TableColumn_char_Description"));
0386: prop_char.setExpert(false);
0387: prop_char.setHidden(true);
0388: prop_char.setPreferred(false);
0389: prop_char
0390: .setValue(
0391: Constants.PropertyDescriptor.CATEGORY,
0392: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0393:
0394: PropertyDescriptor prop_charOff = new PropertyDescriptor(
0395: "charOff", beanClass, "getCharOff", "setCharOff");
0396: prop_charOff.setDisplayName(resources
0397: .getString("TableColumn_charOff_DisplayName"));
0398: prop_charOff.setShortDescription(resources
0399: .getString("TableColumn_charOff_Description"));
0400: prop_charOff.setExpert(false);
0401: prop_charOff.setHidden(true);
0402: prop_charOff.setPreferred(false);
0403: prop_charOff
0404: .setValue(
0405: Constants.PropertyDescriptor.CATEGORY,
0406: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0407:
0408: PropertyDescriptor prop_colSpan = new PropertyDescriptor(
0409: "colSpan", beanClass, "getColSpan", "setColSpan");
0410: prop_colSpan.setDisplayName(resources
0411: .getString("TableColumn_colSpan_DisplayName"));
0412: prop_colSpan.setShortDescription(resources
0413: .getString("TableColumn_colSpan_Description"));
0414: prop_colSpan
0415: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0416: prop_colSpan.setExpert(false);
0417: prop_colSpan.setHidden(false);
0418: prop_colSpan.setPreferred(false);
0419: prop_colSpan
0420: .setValue(
0421: Constants.PropertyDescriptor.CATEGORY,
0422: com.sun.rave.designtime.base.CategoryDescriptors.LAYOUT);
0423: prop_colSpan.setValue(
0424: "com.sun.rave.propertyeditors.MIN_VALUE", "0");
0425:
0426: PropertyDescriptor prop_descending = new PropertyDescriptor(
0427: "descending", beanClass, "isDescending",
0428: "setDescending");
0429: prop_descending.setDisplayName(resources
0430: .getString("TableColumn_descending_DisplayName"));
0431: prop_descending.setShortDescription(resources
0432: .getString("TableColumn_descending_Description"));
0433: prop_descending.setExpert(false);
0434: prop_descending.setHidden(false);
0435: prop_descending.setPreferred(false);
0436: attrib = new AttributeDescriptor("descending", false, null,
0437: true);
0438: prop_descending.setValue(
0439: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0440: attrib);
0441: prop_descending
0442: .setValue(
0443: Constants.PropertyDescriptor.CATEGORY,
0444: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0445:
0446: PropertyDescriptor prop_embeddedActions = new PropertyDescriptor(
0447: "embeddedActions", beanClass, "isEmbeddedActions",
0448: "setEmbeddedActions");
0449: prop_embeddedActions
0450: .setDisplayName(resources
0451: .getString("TableColumn_embeddedActions_DisplayName"));
0452: prop_embeddedActions
0453: .setShortDescription(resources
0454: .getString("TableColumn_embeddedActions_Description"));
0455: prop_embeddedActions.setExpert(false);
0456: prop_embeddedActions.setHidden(false);
0457: prop_embeddedActions.setPreferred(false);
0458: attrib = new AttributeDescriptor("embeddedActions", false,
0459: null, true);
0460: prop_embeddedActions.setValue(
0461: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0462: attrib);
0463: prop_embeddedActions
0464: .setValue(
0465: Constants.PropertyDescriptor.CATEGORY,
0466: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0467:
0468: PropertyDescriptor prop_emptyCell = new PropertyDescriptor(
0469: "emptyCell", beanClass, "isEmptyCell",
0470: "setEmptyCell");
0471: prop_emptyCell.setDisplayName(resources
0472: .getString("TableColumn_emptyCell_DisplayName"));
0473: prop_emptyCell.setShortDescription(resources
0474: .getString("TableColumn_emptyCell_Description"));
0475: prop_emptyCell.setExpert(false);
0476: prop_emptyCell.setHidden(false);
0477: prop_emptyCell.setPreferred(false);
0478: attrib = new AttributeDescriptor("emptyCell", false, null,
0479: true);
0480: prop_emptyCell.setValue(
0481: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0482: attrib);
0483: prop_emptyCell
0484: .setValue(
0485: Constants.PropertyDescriptor.CATEGORY,
0486: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0487:
0488: PropertyDescriptor prop_extraFooterHtml = new PropertyDescriptor(
0489: "extraFooterHtml", beanClass, "getExtraFooterHtml",
0490: "setExtraFooterHtml");
0491: prop_extraFooterHtml
0492: .setDisplayName(resources
0493: .getString("TableColumn_extraFooterHtml_DisplayName"));
0494: prop_extraFooterHtml
0495: .setShortDescription(resources
0496: .getString("TableColumn_extraFooterHtml_Description"));
0497: prop_extraFooterHtml
0498: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0499: prop_extraFooterHtml.setExpert(false);
0500: prop_extraFooterHtml.setHidden(false);
0501: prop_extraFooterHtml.setPreferred(false);
0502: attrib = new AttributeDescriptor("extraFooterHtml", false,
0503: null, true);
0504: prop_extraFooterHtml.setValue(
0505: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0506: attrib);
0507: prop_extraFooterHtml
0508: .setValue(
0509: Constants.PropertyDescriptor.CATEGORY,
0510: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0511:
0512: PropertyDescriptor prop_extraHeaderHtml = new PropertyDescriptor(
0513: "extraHeaderHtml", beanClass, "getExtraHeaderHtml",
0514: "setExtraHeaderHtml");
0515: prop_extraHeaderHtml
0516: .setDisplayName(resources
0517: .getString("TableColumn_extraHeaderHtml_DisplayName"));
0518: prop_extraHeaderHtml
0519: .setShortDescription(resources
0520: .getString("TableColumn_extraHeaderHtml_Description"));
0521: prop_extraHeaderHtml
0522: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0523: prop_extraHeaderHtml.setExpert(false);
0524: prop_extraHeaderHtml.setHidden(false);
0525: prop_extraHeaderHtml.setPreferred(false);
0526: attrib = new AttributeDescriptor("extraHeaderHtml", false,
0527: null, true);
0528: prop_extraHeaderHtml.setValue(
0529: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0530: attrib);
0531: prop_extraHeaderHtml
0532: .setValue(
0533: Constants.PropertyDescriptor.CATEGORY,
0534: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0535:
0536: PropertyDescriptor prop_extraTableFooterHtml = new PropertyDescriptor(
0537: "extraTableFooterHtml", beanClass,
0538: "getExtraTableFooterHtml",
0539: "setExtraTableFooterHtml");
0540: prop_extraTableFooterHtml
0541: .setDisplayName(resources
0542: .getString("TableColumn_extraTableFooterHtml_DisplayName"));
0543: prop_extraTableFooterHtml
0544: .setShortDescription(resources
0545: .getString("TableColumn_extraTableFooterHtml_Description"));
0546: prop_extraTableFooterHtml
0547: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0548: prop_extraTableFooterHtml.setExpert(false);
0549: prop_extraTableFooterHtml.setHidden(false);
0550: prop_extraTableFooterHtml.setPreferred(false);
0551: attrib = new AttributeDescriptor("extraTableFooterHtml",
0552: false, null, true);
0553: prop_extraTableFooterHtml.setValue(
0554: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0555: attrib);
0556: prop_extraTableFooterHtml
0557: .setValue(
0558: Constants.PropertyDescriptor.CATEGORY,
0559: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0560:
0561: PropertyDescriptor prop_footerText = new PropertyDescriptor(
0562: "footerText", beanClass, "getFooterText",
0563: "setFooterText");
0564: prop_footerText.setDisplayName(resources
0565: .getString("TableColumn_footerText_DisplayName"));
0566: prop_footerText.setShortDescription(resources
0567: .getString("TableColumn_footerText_Description"));
0568: prop_footerText
0569: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0570: prop_footerText.setExpert(false);
0571: prop_footerText.setHidden(false);
0572: prop_footerText.setPreferred(false);
0573: attrib = new AttributeDescriptor("footerText", false, null,
0574: true);
0575: prop_footerText.setValue(
0576: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0577: attrib);
0578: prop_footerText
0579: .setValue(
0580: Constants.PropertyDescriptor.CATEGORY,
0581: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0582:
0583: PropertyDescriptor prop_headerText = new PropertyDescriptor(
0584: "headerText", beanClass, "getHeaderText",
0585: "setHeaderText");
0586: prop_headerText.setDisplayName(resources
0587: .getString("TableColumn_headerText_DisplayName"));
0588: prop_headerText.setShortDescription(resources
0589: .getString("TableColumn_headerText_Description"));
0590: prop_headerText
0591: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0592: prop_headerText.setExpert(false);
0593: prop_headerText.setHidden(false);
0594: prop_headerText.setPreferred(false);
0595: attrib = new AttributeDescriptor("headerText", false, null,
0596: true);
0597: prop_headerText.setValue(
0598: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0599: attrib);
0600: prop_headerText
0601: .setValue(
0602: Constants.PropertyDescriptor.CATEGORY,
0603: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0604:
0605: PropertyDescriptor prop_headers = new PropertyDescriptor(
0606: "headers", beanClass, "getHeaders", "setHeaders");
0607: prop_headers.setDisplayName(resources
0608: .getString("TableColumn_headers_DisplayName"));
0609: prop_headers.setShortDescription(resources
0610: .getString("TableColumn_headers_Description"));
0611: prop_headers
0612: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0613: prop_headers.setExpert(false);
0614: prop_headers.setHidden(true);
0615: prop_headers.setPreferred(false);
0616: prop_headers
0617: .setValue(
0618: Constants.PropertyDescriptor.CATEGORY,
0619: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0620:
0621: PropertyDescriptor prop_height = new PropertyDescriptor(
0622: "height", beanClass, "getHeight", "setHeight");
0623: prop_height.setDisplayName(resources
0624: .getString("TableColumn_height_DisplayName"));
0625: prop_height.setShortDescription(resources
0626: .getString("TableColumn_height_Description"));
0627: prop_height
0628: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0629: prop_height.setExpert(false);
0630: prop_height.setHidden(false);
0631: prop_height.setPreferred(false);
0632: attrib = new AttributeDescriptor("height", false, null,
0633: true);
0634: prop_height.setValue(
0635: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0636: attrib);
0637: prop_height
0638: .setValue(
0639: Constants.PropertyDescriptor.CATEGORY,
0640: com.sun.rave.designtime.base.CategoryDescriptors.LAYOUT);
0641: prop_height.setValue(
0642: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0643:
0644: PropertyDescriptor prop_noWrap = new PropertyDescriptor(
0645: "noWrap", beanClass, "isNoWrap", "setNoWrap");
0646: prop_noWrap.setDisplayName(resources
0647: .getString("TableColumn_noWrap_DisplayName"));
0648: prop_noWrap.setShortDescription(resources
0649: .getString("TableColumn_noWrap_Description"));
0650: prop_noWrap.setExpert(false);
0651: prop_noWrap.setHidden(false);
0652: prop_noWrap.setPreferred(false);
0653: attrib = new AttributeDescriptor("noWrap", false, null,
0654: true);
0655: prop_noWrap.setValue(
0656: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0657: attrib);
0658: prop_noWrap
0659: .setValue(
0660: Constants.PropertyDescriptor.CATEGORY,
0661: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0662:
0663: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0664: "onClick", beanClass, "getOnClick", "setOnClick");
0665: prop_onClick.setDisplayName(resources
0666: .getString("TableColumn_onClick_DisplayName"));
0667: prop_onClick.setShortDescription(resources
0668: .getString("TableColumn_onClick_Description"));
0669: prop_onClick
0670: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0671: prop_onClick.setExpert(false);
0672: prop_onClick.setHidden(false);
0673: prop_onClick.setPreferred(false);
0674: attrib = new AttributeDescriptor("onClick", false, null,
0675: true);
0676: prop_onClick.setValue(
0677: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0678: attrib);
0679: prop_onClick
0680: .setValue(
0681: Constants.PropertyDescriptor.CATEGORY,
0682: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0683:
0684: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0685: "onDblClick", beanClass, "getOnDblClick",
0686: "setOnDblClick");
0687: prop_onDblClick.setDisplayName(resources
0688: .getString("TableColumn_onDblClick_DisplayName"));
0689: prop_onDblClick.setShortDescription(resources
0690: .getString("TableColumn_onDblClick_Description"));
0691: prop_onDblClick
0692: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0693: prop_onDblClick.setExpert(false);
0694: prop_onDblClick.setHidden(false);
0695: prop_onDblClick.setPreferred(false);
0696: attrib = new AttributeDescriptor("onDblClick", false, null,
0697: true);
0698: prop_onDblClick.setValue(
0699: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0700: attrib);
0701: prop_onDblClick
0702: .setValue(
0703: Constants.PropertyDescriptor.CATEGORY,
0704: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0705:
0706: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0707: "onKeyDown", beanClass, "getOnKeyDown",
0708: "setOnKeyDown");
0709: prop_onKeyDown.setDisplayName(resources
0710: .getString("TableColumn_onKeyDown_DisplayName"));
0711: prop_onKeyDown.setShortDescription(resources
0712: .getString("TableColumn_onKeyDown_Description"));
0713: prop_onKeyDown
0714: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0715: prop_onKeyDown.setExpert(false);
0716: prop_onKeyDown.setHidden(false);
0717: prop_onKeyDown.setPreferred(false);
0718: attrib = new AttributeDescriptor("onKeyDown", false, null,
0719: true);
0720: prop_onKeyDown.setValue(
0721: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0722: attrib);
0723: prop_onKeyDown
0724: .setValue(
0725: Constants.PropertyDescriptor.CATEGORY,
0726: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0727:
0728: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0729: "onKeyPress", beanClass, "getOnKeyPress",
0730: "setOnKeyPress");
0731: prop_onKeyPress.setDisplayName(resources
0732: .getString("TableColumn_onKeyPress_DisplayName"));
0733: prop_onKeyPress.setShortDescription(resources
0734: .getString("TableColumn_onKeyPress_Description"));
0735: prop_onKeyPress
0736: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0737: prop_onKeyPress.setExpert(false);
0738: prop_onKeyPress.setHidden(false);
0739: prop_onKeyPress.setPreferred(false);
0740: attrib = new AttributeDescriptor("onKeyPress", false, null,
0741: true);
0742: prop_onKeyPress.setValue(
0743: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0744: attrib);
0745: prop_onKeyPress
0746: .setValue(
0747: Constants.PropertyDescriptor.CATEGORY,
0748: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0749:
0750: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0751: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0752: prop_onKeyUp.setDisplayName(resources
0753: .getString("TableColumn_onKeyUp_DisplayName"));
0754: prop_onKeyUp.setShortDescription(resources
0755: .getString("TableColumn_onKeyUp_Description"));
0756: prop_onKeyUp
0757: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0758: prop_onKeyUp.setExpert(false);
0759: prop_onKeyUp.setHidden(false);
0760: prop_onKeyUp.setPreferred(false);
0761: attrib = new AttributeDescriptor("onKeyUp", false, null,
0762: true);
0763: prop_onKeyUp.setValue(
0764: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0765: attrib);
0766: prop_onKeyUp
0767: .setValue(
0768: Constants.PropertyDescriptor.CATEGORY,
0769: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0770:
0771: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0772: "onMouseDown", beanClass, "getOnMouseDown",
0773: "setOnMouseDown");
0774: prop_onMouseDown.setDisplayName(resources
0775: .getString("TableColumn_onMouseDown_DisplayName"));
0776: prop_onMouseDown.setShortDescription(resources
0777: .getString("TableColumn_onMouseDown_Description"));
0778: prop_onMouseDown
0779: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0780: prop_onMouseDown.setExpert(false);
0781: prop_onMouseDown.setHidden(false);
0782: prop_onMouseDown.setPreferred(false);
0783: attrib = new AttributeDescriptor("onMouseDown", false,
0784: null, true);
0785: prop_onMouseDown.setValue(
0786: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0787: attrib);
0788: prop_onMouseDown
0789: .setValue(
0790: Constants.PropertyDescriptor.CATEGORY,
0791: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0792:
0793: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0794: "onMouseMove", beanClass, "getOnMouseMove",
0795: "setOnMouseMove");
0796: prop_onMouseMove.setDisplayName(resources
0797: .getString("TableColumn_onMouseMove_DisplayName"));
0798: prop_onMouseMove.setShortDescription(resources
0799: .getString("TableColumn_onMouseMove_Description"));
0800: prop_onMouseMove
0801: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0802: prop_onMouseMove.setExpert(false);
0803: prop_onMouseMove.setHidden(false);
0804: prop_onMouseMove.setPreferred(false);
0805: attrib = new AttributeDescriptor("onMouseMove", false,
0806: null, true);
0807: prop_onMouseMove.setValue(
0808: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0809: attrib);
0810: prop_onMouseMove
0811: .setValue(
0812: Constants.PropertyDescriptor.CATEGORY,
0813: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0814:
0815: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0816: "onMouseOut", beanClass, "getOnMouseOut",
0817: "setOnMouseOut");
0818: prop_onMouseOut.setDisplayName(resources
0819: .getString("TableColumn_onMouseOut_DisplayName"));
0820: prop_onMouseOut.setShortDescription(resources
0821: .getString("TableColumn_onMouseOut_Description"));
0822: prop_onMouseOut
0823: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0824: prop_onMouseOut.setExpert(false);
0825: prop_onMouseOut.setHidden(false);
0826: prop_onMouseOut.setPreferred(false);
0827: attrib = new AttributeDescriptor("onMouseOut", false, null,
0828: true);
0829: prop_onMouseOut.setValue(
0830: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0831: attrib);
0832: prop_onMouseOut
0833: .setValue(
0834: Constants.PropertyDescriptor.CATEGORY,
0835: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0836:
0837: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0838: "onMouseOver", beanClass, "getOnMouseOver",
0839: "setOnMouseOver");
0840: prop_onMouseOver.setDisplayName(resources
0841: .getString("TableColumn_onMouseOver_DisplayName"));
0842: prop_onMouseOver.setShortDescription(resources
0843: .getString("TableColumn_onMouseOver_Description"));
0844: prop_onMouseOver
0845: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0846: prop_onMouseOver.setExpert(false);
0847: prop_onMouseOver.setHidden(false);
0848: prop_onMouseOver.setPreferred(false);
0849: attrib = new AttributeDescriptor("onMouseOver", false,
0850: null, true);
0851: prop_onMouseOver.setValue(
0852: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0853: attrib);
0854: prop_onMouseOver
0855: .setValue(
0856: Constants.PropertyDescriptor.CATEGORY,
0857: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0858:
0859: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0860: "onMouseUp", beanClass, "getOnMouseUp",
0861: "setOnMouseUp");
0862: prop_onMouseUp.setDisplayName(resources
0863: .getString("TableColumn_onMouseUp_DisplayName"));
0864: prop_onMouseUp.setShortDescription(resources
0865: .getString("TableColumn_onMouseUp_Description"));
0866: prop_onMouseUp
0867: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0868: prop_onMouseUp.setExpert(false);
0869: prop_onMouseUp.setHidden(false);
0870: prop_onMouseUp.setPreferred(false);
0871: attrib = new AttributeDescriptor("onMouseUp", false, null,
0872: true);
0873: prop_onMouseUp.setValue(
0874: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0875: attrib);
0876: prop_onMouseUp
0877: .setValue(
0878: Constants.PropertyDescriptor.CATEGORY,
0879: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0880:
0881: PropertyDescriptor prop_rowHeader = new PropertyDescriptor(
0882: "rowHeader", beanClass, "isRowHeader",
0883: "setRowHeader");
0884: prop_rowHeader.setDisplayName(resources
0885: .getString("TableColumn_rowHeader_DisplayName"));
0886: prop_rowHeader.setShortDescription(resources
0887: .getString("TableColumn_rowHeader_Description"));
0888: prop_rowHeader.setExpert(false);
0889: prop_rowHeader.setHidden(false);
0890: prop_rowHeader.setPreferred(false);
0891: attrib = new AttributeDescriptor("rowHeader", false, null,
0892: true);
0893: prop_rowHeader.setValue(
0894: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0895: attrib);
0896: prop_rowHeader
0897: .setValue(
0898: Constants.PropertyDescriptor.CATEGORY,
0899: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0900:
0901: PropertyDescriptor prop_rowSpan = new PropertyDescriptor(
0902: "rowSpan", beanClass, "getRowSpan", "setRowSpan");
0903: prop_rowSpan.setDisplayName(resources
0904: .getString("TableColumn_rowSpan_DisplayName"));
0905: prop_rowSpan.setShortDescription(resources
0906: .getString("TableColumn_rowSpan_Description"));
0907: prop_rowSpan
0908: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0909: prop_rowSpan.setExpert(false);
0910: prop_rowSpan.setHidden(false);
0911: prop_rowSpan.setPreferred(false);
0912: prop_rowSpan
0913: .setValue(
0914: Constants.PropertyDescriptor.CATEGORY,
0915: com.sun.rave.designtime.base.CategoryDescriptors.LAYOUT);
0916: prop_rowSpan.setValue(
0917: "com.sun.rave.propertyeditors.MIN_VALUE", "0");
0918:
0919: PropertyDescriptor prop_scope = new PropertyDescriptor(
0920: "scope", beanClass, "getScope", "setScope");
0921: prop_scope.setDisplayName(resources
0922: .getString("TableColumn_scope_DisplayName"));
0923: prop_scope.setShortDescription(resources
0924: .getString("TableColumn_scope_Description"));
0925: prop_scope
0926: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0927: prop_scope.setExpert(false);
0928: prop_scope.setHidden(false);
0929: prop_scope.setPreferred(false);
0930: attrib = new AttributeDescriptor("scope", false, null, true);
0931: prop_scope.setValue(
0932: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0933: attrib);
0934: prop_scope
0935: .setValue(
0936: Constants.PropertyDescriptor.CATEGORY,
0937: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0938:
0939: PropertyDescriptor prop_selectId = new PropertyDescriptor(
0940: "selectId", beanClass, "getSelectId", "setSelectId");
0941: prop_selectId.setDisplayName(resources
0942: .getString("TableColumn_selectId_DisplayName"));
0943: prop_selectId.setShortDescription(resources
0944: .getString("TableColumn_selectId_Description"));
0945: prop_selectId
0946: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0947: prop_selectId.setExpert(false);
0948: prop_selectId.setHidden(false);
0949: prop_selectId.setPreferred(false);
0950: attrib = new AttributeDescriptor("selectId", false, null,
0951: true);
0952: prop_selectId.setValue(
0953: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0954: attrib);
0955: prop_selectId
0956: .setValue(
0957: Constants.PropertyDescriptor.CATEGORY,
0958: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
0959:
0960: PropertyDescriptor prop_severity = new PropertyDescriptor(
0961: "severity", beanClass, "getSeverity", "setSeverity");
0962: prop_severity.setDisplayName(resources
0963: .getString("TableColumn_severity_DisplayName"));
0964: prop_severity.setShortDescription(resources
0965: .getString("TableColumn_severity_Description"));
0966: prop_severity
0967: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0968: prop_severity.setExpert(false);
0969: prop_severity.setHidden(false);
0970: prop_severity.setPreferred(false);
0971: attrib = new AttributeDescriptor("severity", false, null,
0972: true);
0973: prop_severity.setValue(
0974: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0975: attrib);
0976: prop_severity
0977: .setValue(
0978: Constants.PropertyDescriptor.CATEGORY,
0979: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0980: prop_severity
0981: .setValue(
0982: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0983: com.sun.rave.propertyeditors.domains.StringTokensDomain.class);
0984: prop_severity
0985: .setValue(
0986: "com.sun.rave.propertyeditors.domains.TOKEN_STRING",
0987: "critical,major,minor,down,ok");
0988:
0989: PropertyDescriptor prop_sort = new PropertyDescriptor(
0990: "sort", beanClass, "getSort", "setSort");
0991: prop_sort.setDisplayName(resources
0992: .getString("TableColumn_sort_DisplayName"));
0993: prop_sort.setShortDescription(resources
0994: .getString("TableColumn_sort_Description"));
0995: prop_sort
0996: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0997: prop_sort.setExpert(false);
0998: prop_sort.setHidden(false);
0999: prop_sort.setPreferred(false);
1000: attrib = new AttributeDescriptor("sort", false, null, true);
1001: prop_sort.setValue(
1002: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1003: attrib);
1004: prop_sort
1005: .setValue(
1006: Constants.PropertyDescriptor.CATEGORY,
1007: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1008:
1009: PropertyDescriptor prop_sortIcon = new PropertyDescriptor(
1010: "sortIcon", beanClass, "getSortIcon", "setSortIcon");
1011: prop_sortIcon.setDisplayName(resources
1012: .getString("TableColumn_sortIcon_DisplayName"));
1013: prop_sortIcon.setShortDescription(resources
1014: .getString("TableColumn_sortIcon_Description"));
1015: prop_sortIcon
1016: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
1017: prop_sortIcon.setExpert(false);
1018: prop_sortIcon.setHidden(false);
1019: prop_sortIcon.setPreferred(false);
1020: attrib = new AttributeDescriptor("sortIcon", false, null,
1021: true);
1022: prop_sortIcon.setValue(
1023: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1024: attrib);
1025: prop_sortIcon
1026: .setValue(
1027: Constants.PropertyDescriptor.CATEGORY,
1028: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1029: prop_sortIcon
1030: .setValue(
1031: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
1032: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.ThemeIconsDomain.class);
1033:
1034: PropertyDescriptor prop_sortImageURL = new PropertyDescriptor(
1035: "sortImageURL", beanClass, "getSortImageURL",
1036: "setSortImageURL");
1037: prop_sortImageURL.setDisplayName(resources
1038: .getString("TableColumn_sortImageURL_DisplayName"));
1039: prop_sortImageURL.setShortDescription(resources
1040: .getString("TableColumn_sortImageURL_Description"));
1041: prop_sortImageURL
1042: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.ImageUrlPropertyEditor"));
1043: prop_sortImageURL.setExpert(false);
1044: prop_sortImageURL.setHidden(false);
1045: prop_sortImageURL.setPreferred(false);
1046: attrib = new AttributeDescriptor("sortImageURL", false,
1047: null, true);
1048: prop_sortImageURL.setValue(
1049: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1050: attrib);
1051: prop_sortImageURL
1052: .setValue(
1053: Constants.PropertyDescriptor.CATEGORY,
1054: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1055:
1056: PropertyDescriptor prop_spacerColumn = new PropertyDescriptor(
1057: "spacerColumn", beanClass, "isSpacerColumn",
1058: "setSpacerColumn");
1059: prop_spacerColumn.setDisplayName(resources
1060: .getString("TableColumn_spacerColumn_DisplayName"));
1061: prop_spacerColumn.setShortDescription(resources
1062: .getString("TableColumn_spacerColumn_Description"));
1063: prop_spacerColumn.setExpert(false);
1064: prop_spacerColumn.setHidden(false);
1065: prop_spacerColumn.setPreferred(false);
1066: attrib = new AttributeDescriptor("spacerColumn", false,
1067: null, true);
1068: prop_spacerColumn.setValue(
1069: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1070: attrib);
1071: prop_spacerColumn
1072: .setValue(
1073: Constants.PropertyDescriptor.CATEGORY,
1074: com.sun.rave.designtime.base.CategoryDescriptors.LAYOUT);
1075:
1076: PropertyDescriptor prop_style = new PropertyDescriptor(
1077: "style", beanClass, "getStyle", "setStyle");
1078: prop_style.setDisplayName(resources
1079: .getString("TableColumn_style_DisplayName"));
1080: prop_style.setShortDescription(resources
1081: .getString("TableColumn_style_Description"));
1082: prop_style
1083: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
1084: prop_style.setExpert(false);
1085: prop_style.setHidden(false);
1086: prop_style.setPreferred(false);
1087: attrib = new AttributeDescriptor("style", false, null, true);
1088: prop_style.setValue(
1089: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1090: attrib);
1091: prop_style
1092: .setValue(
1093: Constants.PropertyDescriptor.CATEGORY,
1094: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1095:
1096: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
1097: "styleClass", beanClass, "getStyleClass",
1098: "setStyleClass");
1099: prop_styleClass.setDisplayName(resources
1100: .getString("TableColumn_styleClass_DisplayName"));
1101: prop_styleClass.setShortDescription(resources
1102: .getString("TableColumn_styleClass_Description"));
1103: prop_styleClass
1104: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
1105: prop_styleClass.setExpert(false);
1106: prop_styleClass.setHidden(false);
1107: prop_styleClass.setPreferred(false);
1108: attrib = new AttributeDescriptor("styleClass", false, null,
1109: true);
1110: prop_styleClass.setValue(
1111: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1112: attrib);
1113: prop_styleClass
1114: .setValue(
1115: Constants.PropertyDescriptor.CATEGORY,
1116: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1117:
1118: PropertyDescriptor prop_tableFooterText = new PropertyDescriptor(
1119: "tableFooterText", beanClass, "getTableFooterText",
1120: "setTableFooterText");
1121: prop_tableFooterText
1122: .setDisplayName(resources
1123: .getString("TableColumn_tableFooterText_DisplayName"));
1124: prop_tableFooterText
1125: .setShortDescription(resources
1126: .getString("TableColumn_tableFooterText_Description"));
1127: prop_tableFooterText
1128: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
1129: prop_tableFooterText.setExpert(false);
1130: prop_tableFooterText.setHidden(false);
1131: prop_tableFooterText.setPreferred(false);
1132: attrib = new AttributeDescriptor("tableFooterText", false,
1133: null, true);
1134: prop_tableFooterText.setValue(
1135: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1136: attrib);
1137: prop_tableFooterText
1138: .setValue(
1139: Constants.PropertyDescriptor.CATEGORY,
1140: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1141:
1142: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
1143: "toolTip", beanClass, "getToolTip", "setToolTip");
1144: prop_toolTip.setDisplayName(resources
1145: .getString("TableColumn_toolTip_DisplayName"));
1146: prop_toolTip.setShortDescription(resources
1147: .getString("TableColumn_toolTip_Description"));
1148: prop_toolTip
1149: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
1150: prop_toolTip.setExpert(false);
1151: prop_toolTip.setHidden(false);
1152: prop_toolTip.setPreferred(false);
1153: attrib = new AttributeDescriptor("toolTip", false, null,
1154: true);
1155: prop_toolTip.setValue(
1156: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1157: attrib);
1158: prop_toolTip
1159: .setValue(
1160: Constants.PropertyDescriptor.CATEGORY,
1161: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
1162:
1163: PropertyDescriptor prop_valign = new PropertyDescriptor(
1164: "valign", beanClass, "getValign", "setValign");
1165: prop_valign.setDisplayName(resources
1166: .getString("TableColumn_valign_DisplayName"));
1167: prop_valign.setShortDescription(resources
1168: .getString("TableColumn_valign_Description"));
1169: prop_valign
1170: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
1171: prop_valign.setExpert(false);
1172: prop_valign.setHidden(false);
1173: prop_valign.setPreferred(false);
1174: attrib = new AttributeDescriptor("valign", false, null,
1175: true);
1176: prop_valign.setValue(
1177: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1178: attrib);
1179: prop_valign
1180: .setValue(
1181: Constants.PropertyDescriptor.CATEGORY,
1182: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1183: prop_valign
1184: .setValue(
1185: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
1186: com.sun.rave.propertyeditors.domains.HtmlVerticalAlignDomain.class);
1187:
1188: PropertyDescriptor prop_visible = new PropertyDescriptor(
1189: "visible", beanClass, "isVisible", "setVisible");
1190: prop_visible.setDisplayName(resources
1191: .getString("TableColumn_visible_DisplayName"));
1192: prop_visible.setShortDescription(resources
1193: .getString("TableColumn_visible_Description"));
1194: prop_visible.setExpert(false);
1195: prop_visible.setHidden(false);
1196: prop_visible.setPreferred(false);
1197: attrib = new AttributeDescriptor("visible", false, "true",
1198: true);
1199: prop_visible.setValue(
1200: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1201: attrib);
1202: prop_visible
1203: .setValue(
1204: Constants.PropertyDescriptor.CATEGORY,
1205: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
1206:
1207: PropertyDescriptor prop_width = new PropertyDescriptor(
1208: "width", beanClass, "getWidth", "setWidth");
1209: prop_width.setDisplayName(resources
1210: .getString("TableColumn_width_DisplayName"));
1211: prop_width.setShortDescription(resources
1212: .getString("TableColumn_width_Description"));
1213: prop_width
1214: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
1215: prop_width.setExpert(false);
1216: prop_width.setHidden(false);
1217: prop_width.setPreferred(false);
1218: attrib = new AttributeDescriptor("width", false, null, true);
1219: prop_width.setValue(
1220: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1221: attrib);
1222: prop_width
1223: .setValue(
1224: Constants.PropertyDescriptor.CATEGORY,
1225: com.sun.rave.designtime.base.CategoryDescriptors.LAYOUT);
1226:
1227: PropertyDescriptor prop_attributes = new PropertyDescriptor(
1228: "attributes", beanClass, "getAttributes", null);
1229: prop_attributes.setDisplayName(resources
1230: .getString("TableColumn_attributes_DisplayName"));
1231: prop_attributes.setShortDescription(resources
1232: .getString("TableColumn_attributes_Description"));
1233: prop_attributes.setExpert(false);
1234: prop_attributes.setHidden(true);
1235: prop_attributes.setPreferred(false);
1236: prop_attributes
1237: .setValue(
1238: Constants.PropertyDescriptor.CATEGORY,
1239: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1240:
1241: PropertyDescriptor prop_childCount = new PropertyDescriptor(
1242: "childCount", beanClass, "getChildCount", null);
1243: prop_childCount.setDisplayName(resources
1244: .getString("TableColumn_childCount_DisplayName"));
1245: prop_childCount.setShortDescription(resources
1246: .getString("TableColumn_childCount_Description"));
1247: prop_childCount.setExpert(false);
1248: prop_childCount.setHidden(true);
1249: prop_childCount.setPreferred(false);
1250: prop_childCount
1251: .setValue(
1252: Constants.PropertyDescriptor.CATEGORY,
1253: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1254:
1255: PropertyDescriptor prop_children = new PropertyDescriptor(
1256: "children", beanClass, "getChildren", null);
1257: prop_children.setDisplayName(resources
1258: .getString("TableColumn_children_DisplayName"));
1259: prop_children.setShortDescription(resources
1260: .getString("TableColumn_children_Description"));
1261: prop_children.setExpert(false);
1262: prop_children.setHidden(true);
1263: prop_children.setPreferred(false);
1264: prop_children
1265: .setValue(
1266: Constants.PropertyDescriptor.CATEGORY,
1267: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1268:
1269: PropertyDescriptor prop_facets = new PropertyDescriptor(
1270: "facets", beanClass, "getFacets", null);
1271: prop_facets.setDisplayName(resources
1272: .getString("TableColumn_facets_DisplayName"));
1273: prop_facets.setShortDescription(resources
1274: .getString("TableColumn_facets_Description"));
1275: prop_facets.setExpert(false);
1276: prop_facets.setHidden(true);
1277: prop_facets.setPreferred(false);
1278: prop_facets
1279: .setValue(
1280: Constants.PropertyDescriptor.CATEGORY,
1281: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1282:
1283: PropertyDescriptor prop_family = new PropertyDescriptor(
1284: "family", beanClass, "getFamily", null);
1285: prop_family.setDisplayName(resources
1286: .getString("TableColumn_family_DisplayName"));
1287: prop_family.setShortDescription(resources
1288: .getString("TableColumn_family_Description"));
1289: prop_family.setExpert(false);
1290: prop_family.setHidden(true);
1291: prop_family.setPreferred(false);
1292: prop_family
1293: .setValue(
1294: Constants.PropertyDescriptor.CATEGORY,
1295: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1296:
1297: PropertyDescriptor prop_id = new PropertyDescriptor("id",
1298: beanClass, "getId", "setId");
1299: prop_id.setDisplayName(resources
1300: .getString("TableColumn_id_DisplayName"));
1301: prop_id.setShortDescription(resources
1302: .getString("TableColumn_id_Description"));
1303: prop_id.setExpert(false);
1304: prop_id.setHidden(true);
1305: prop_id.setPreferred(false);
1306: attrib = new AttributeDescriptor("id", false, null, false);
1307: prop_id.setValue(
1308: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1309: attrib);
1310: prop_id
1311: .setValue(
1312: Constants.PropertyDescriptor.CATEGORY,
1313: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1314:
1315: PropertyDescriptor prop_parent = new PropertyDescriptor(
1316: "parent", beanClass, "getParent", "setParent");
1317: prop_parent.setDisplayName(resources
1318: .getString("TableColumn_parent_DisplayName"));
1319: prop_parent.setShortDescription(resources
1320: .getString("TableColumn_parent_Description"));
1321: prop_parent.setExpert(false);
1322: prop_parent.setHidden(true);
1323: prop_parent.setPreferred(false);
1324: prop_parent
1325: .setValue(
1326: Constants.PropertyDescriptor.CATEGORY,
1327: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1328:
1329: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1330: "rendered", beanClass, "isRendered", "setRendered");
1331: prop_rendered.setDisplayName(resources
1332: .getString("TableColumn_rendered_DisplayName"));
1333: prop_rendered.setShortDescription(resources
1334: .getString("TableColumn_rendered_Description"));
1335: prop_rendered.setExpert(false);
1336: prop_rendered.setHidden(false);
1337: prop_rendered.setPreferred(false);
1338: attrib = new AttributeDescriptor("rendered", false, null,
1339: true);
1340: prop_rendered.setValue(
1341: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1342: attrib);
1343: prop_rendered
1344: .setValue(
1345: Constants.PropertyDescriptor.CATEGORY,
1346: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1347:
1348: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1349: "rendererType", beanClass, "getRendererType",
1350: "setRendererType");
1351: prop_rendererType.setDisplayName(resources
1352: .getString("TableColumn_rendererType_DisplayName"));
1353: prop_rendererType.setShortDescription(resources
1354: .getString("TableColumn_rendererType_Description"));
1355: prop_rendererType.setExpert(false);
1356: prop_rendererType.setHidden(true);
1357: prop_rendererType.setPreferred(false);
1358: prop_rendererType
1359: .setValue(
1360: Constants.PropertyDescriptor.CATEGORY,
1361: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1362:
1363: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1364: "rendersChildren", beanClass, "getRendersChildren",
1365: null);
1366: prop_rendersChildren
1367: .setDisplayName(resources
1368: .getString("TableColumn_rendersChildren_DisplayName"));
1369: prop_rendersChildren
1370: .setShortDescription(resources
1371: .getString("TableColumn_rendersChildren_Description"));
1372: prop_rendersChildren.setExpert(false);
1373: prop_rendersChildren.setHidden(true);
1374: prop_rendersChildren.setPreferred(false);
1375: prop_rendersChildren
1376: .setValue(
1377: Constants.PropertyDescriptor.CATEGORY,
1378: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1379:
1380: propDescriptors = new PropertyDescriptor[] { prop_abbr,
1381: prop_align, prop_alignKey, prop_attributes,
1382: prop_axis, prop_bgColor, prop_char, prop_charOff,
1383: prop_childCount, prop_children, prop_colSpan,
1384: prop_descending, prop_embeddedActions,
1385: prop_emptyCell, prop_extraFooterHtml,
1386: prop_extraHeaderHtml, prop_extraTableFooterHtml,
1387: prop_facets, prop_family, prop_footerText,
1388: prop_headerText, prop_headers, prop_height,
1389: prop_id, prop_noWrap, prop_onClick,
1390: prop_onDblClick, prop_onKeyDown, prop_onKeyPress,
1391: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1392: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1393: prop_parent, prop_rendered, prop_rendererType,
1394: prop_rendersChildren, prop_rowHeader, prop_rowSpan,
1395: prop_scope, prop_selectId, prop_severity,
1396: prop_sort, prop_sortIcon, prop_sortImageURL,
1397: prop_spacerColumn, prop_style, prop_styleClass,
1398: prop_tableFooterText, prop_toolTip, prop_valign,
1399: prop_visible, prop_width, };
1400: return propDescriptors;
1401:
1402: } catch (IntrospectionException e) {
1403: e.printStackTrace();
1404: return null;
1405: }
1406:
1407: }
1408:
1409: }
1410: //GEN-END:BeanInfo
|