001: //GEN-BEGIN:BeanInfo
002: /*
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
004: *
005: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
006: *
007: * The contents of this file are subject to the terms of either the GNU
008: * General Public License Version 2 only ("GPL") or the Common
009: * Development and Distribution License("CDDL") (collectively, the
010: * "License"). You may not use this file except in compliance with the
011: * License. You can obtain a copy of the License at
012: * http://www.netbeans.org/cddl-gplv2.html
013: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
014: * specific language governing permissions and limitations under the
015: * License. When distributing the software, include this License Header
016: * Notice in each file and include the License file at
017: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
018: * particular file as subject to the "Classpath" exception as provided
019: * by Sun in the GPL Version 2 section of the License file that
020: * accompanied this code. If applicable, add the following below the
021: * License Header, with the fields enclosed by brackets [] replaced by
022: * your own identifying information:
023: * "Portions Copyrighted [year] [name of copyright owner]"
024: *
025: * Contributor(s):
026: *
027: * The Original Software is NetBeans. The Initial Developer of the Original
028: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
029: * Microsystems, Inc. All Rights Reserved.
030: *
031: * If you wish your version of this file to be governed by only the CDDL
032: * or only the GPL Version 2, indicate your decision by adding
033: * "[Contributor] elects to include this software in this distribution
034: * under the [CDDL or GPL Version 2] license." If you do not indicate a
035: * single choice of license, a recipient has the option to distribute
036: * your version of this file under either the CDDL, the GPL Version 2 or
037: * to extend the choice of license to its licensees as provided above.
038: * However, if you add GPL Version 2 code and therefore, elected the GPL
039: * Version 2 license, then the option applies only if the new code is
040: * made subject to such option by the copyright holder.
041: */
042: package org.netbeans.modules.visualweb.web.ui.dt.component;
043:
044: import java.awt.Image;
045: import java.beans.BeanDescriptor;
046: import java.beans.BeanInfo;
047: import java.beans.IntrospectionException;
048: import java.beans.PropertyDescriptor;
049: import java.util.Locale;
050: import java.util.ResourceBundle;
051:
052: import com.sun.rave.designtime.CategoryDescriptor;
053: import com.sun.rave.designtime.Constants;
054: import com.sun.rave.designtime.faces.FacetDescriptor;
055: import com.sun.rave.designtime.markup.AttributeDescriptor;
056:
057: import java.beans.SimpleBeanInfo;
058:
059: /**
060: * <p>Auto-generated design time metadata class.
061: * Do <strong>NOT</strong> modify; all changes
062: * <strong>will</strong> be lost!</p>
063: */
064:
065: abstract class TableActionsBeanInfoBase extends SimpleBeanInfo {
066:
067: protected static ResourceBundle resources = ResourceBundle
068: .getBundle(
069: "org.netbeans.modules.visualweb.web.ui.dt.component.Bundle-JSF",
070: Locale.getDefault(), TableActionsBeanInfoBase.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>TableActionsBeanInfoBase</code>.</p>
075: */
076: public TableActionsBeanInfoBase() {
077:
078: beanClass = com.sun.rave.web.ui.component.TableActions.class;
079: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableActions_C16";
080: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableActions_C32";
081: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableActions_M16";
082: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/TableActions_M32";
083:
084: }
085:
086: /**
087: * <p>The bean class that this BeanInfo represents.
088: */
089: protected Class beanClass;
090:
091: /**
092: * <p>The cached BeanDescriptor.</p>
093: */
094: protected BeanDescriptor beanDescriptor;
095:
096: /**
097: * <p>The index of the default property.</p>
098: */
099: protected int defaultPropertyIndex = -2;
100:
101: /**
102: * <p>The name of the default property.</p>
103: */
104: protected String defaultPropertyName;
105:
106: /**
107: * <p>The 16x16 color icon.</p>
108: */
109: protected String iconFileName_C16;
110:
111: /**
112: * <p>The 32x32 color icon.</p>
113: */
114: protected String iconFileName_C32;
115:
116: /**
117: * <p>The 16x16 monochrome icon.</p>
118: */
119: protected String iconFileName_M16;
120:
121: /**
122: * <p>The 32x32 monochrome icon.</p>
123: */
124: protected String iconFileName_M32;
125:
126: /**
127: * <p>The cached property descriptors.</p>
128: */
129: protected PropertyDescriptor[] propDescriptors;
130:
131: /**
132: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
133: */
134: public BeanDescriptor getBeanDescriptor() {
135:
136: if (beanDescriptor != null) {
137: return beanDescriptor;
138: }
139:
140: beanDescriptor = new BeanDescriptor(beanClass);
141: beanDescriptor.setDisplayName(resources
142: .getString("TableActions_DisplayName"));
143: beanDescriptor.setShortDescription(resources
144: .getString("TableActions_Description"));
145: beanDescriptor.setExpert(false);
146: beanDescriptor.setHidden(false);
147: beanDescriptor.setPreferred(false);
148: beanDescriptor.setValue(
149: Constants.BeanDescriptor.FACET_DESCRIPTORS,
150: getFacetDescriptors());
151: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
152: "tableActions");
153: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
154: Boolean.TRUE);
155: beanDescriptor.setValue(
156: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
157: getCategoryDescriptors());
158: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
159: "tableActions");
160: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
161: "ui");
162: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
163: "http://www.sun.com/web/ui");
164:
165: return beanDescriptor;
166:
167: }
168:
169: /**
170: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
171: */
172: private CategoryDescriptor[] getCategoryDescriptors() {
173:
174: return com.sun.rave.designtime.base.CategoryDescriptors
175: .getDefaultCategoryDescriptors();
176:
177: }
178:
179: /**
180: * <p>Return the index of the default property, or
181: * -1 if there is no default property.</p>
182: */
183: public int getDefaultPropertyIndex() {
184:
185: if (defaultPropertyIndex > -2) {
186: return defaultPropertyIndex;
187: } else {
188: if (defaultPropertyName == null) {
189: defaultPropertyIndex = -1;
190: } else {
191: PropertyDescriptor pd[] = getPropertyDescriptors();
192: for (int i = 0; i < pd.length; i++) {
193: if (defaultPropertyName.equals(pd[i].getName())) {
194: defaultPropertyIndex = i;
195: break;
196: }
197: }
198: }
199: }
200: return defaultPropertyIndex;
201: }
202:
203: /**
204: * <p>The cached facet descriptors.</p>
205: */
206: protected FacetDescriptor[] facetDescriptors;
207:
208: /**
209: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
210: */
211: public FacetDescriptor[] getFacetDescriptors() {
212:
213: if (facetDescriptors != null) {
214: return facetDescriptors;
215: }
216: facetDescriptors = new FacetDescriptor[] {};
217: return facetDescriptors;
218:
219: }
220:
221: /**
222: * <p>Return the specified image (if any)
223: * for this component class.</p>
224: */
225: public Image getIcon(int kind) {
226:
227: String name;
228: switch (kind) {
229: case ICON_COLOR_16x16:
230: name = iconFileName_C16;
231: break;
232: case ICON_COLOR_32x32:
233: name = iconFileName_C32;
234: break;
235: case ICON_MONO_16x16:
236: name = iconFileName_M16;
237: break;
238: case ICON_MONO_32x32:
239: name = iconFileName_M32;
240: break;
241: default:
242: name = null;
243: break;
244: }
245: if (name == null) {
246: return null;
247: }
248:
249: Image image = loadImage(name + ".png");
250: if (image == null) {
251: image = loadImage(name + ".gif");
252: }
253: return image;
254:
255: }
256:
257: /**
258: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
259: */
260: private java.lang.Class loadClass(java.lang.String name) {
261:
262: try {
263: return Class.forName(name);
264: } catch (ClassNotFoundException e) {
265: throw new RuntimeException(e);
266: }
267:
268: }
269:
270: /**
271: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
272: */
273: public PropertyDescriptor[] getPropertyDescriptors() {
274:
275: if (propDescriptors != null) {
276: return propDescriptors;
277: }
278: AttributeDescriptor attrib = null;
279:
280: try {
281:
282: PropertyDescriptor prop_abbr = new PropertyDescriptor(
283: "abbr", beanClass, "getAbbr", "setAbbr");
284: prop_abbr.setDisplayName(resources
285: .getString("TableActions_abbr_DisplayName"));
286: prop_abbr.setShortDescription(resources
287: .getString("TableActions_abbr_Description"));
288: prop_abbr.setExpert(false);
289: prop_abbr.setHidden(false);
290: prop_abbr.setPreferred(false);
291: prop_abbr
292: .setValue(
293: Constants.PropertyDescriptor.CATEGORY,
294: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
295:
296: PropertyDescriptor prop_actionsBottom = new PropertyDescriptor(
297: "actionsBottom", beanClass, "isActionsBottom",
298: "setActionsBottom");
299: prop_actionsBottom
300: .setDisplayName(resources
301: .getString("TableActions_actionsBottom_DisplayName"));
302: prop_actionsBottom
303: .setShortDescription(resources
304: .getString("TableActions_actionsBottom_Description"));
305: prop_actionsBottom.setExpert(false);
306: prop_actionsBottom.setHidden(false);
307: prop_actionsBottom.setPreferred(false);
308: prop_actionsBottom
309: .setValue(
310: Constants.PropertyDescriptor.CATEGORY,
311: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
312:
313: PropertyDescriptor prop_align = new PropertyDescriptor(
314: "align", beanClass, "getAlign", "setAlign");
315: prop_align.setDisplayName(resources
316: .getString("TableActions_align_DisplayName"));
317: prop_align.setShortDescription(resources
318: .getString("TableActions_align_Description"));
319: prop_align.setExpert(false);
320: prop_align.setHidden(false);
321: prop_align.setPreferred(false);
322: attrib = new AttributeDescriptor("align", false, null, true);
323: prop_align.setValue(
324: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
325: attrib);
326: prop_align
327: .setValue(
328: Constants.PropertyDescriptor.CATEGORY,
329: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
330:
331: PropertyDescriptor prop_axis = new PropertyDescriptor(
332: "axis", beanClass, "getAxis", "setAxis");
333: prop_axis.setDisplayName(resources
334: .getString("TableActions_axis_DisplayName"));
335: prop_axis.setShortDescription(resources
336: .getString("TableActions_axis_Description"));
337: prop_axis.setExpert(false);
338: prop_axis.setHidden(false);
339: prop_axis.setPreferred(false);
340: prop_axis
341: .setValue(
342: Constants.PropertyDescriptor.CATEGORY,
343: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
344:
345: PropertyDescriptor prop_bgColor = new PropertyDescriptor(
346: "bgColor", beanClass, "getBgColor", "setBgColor");
347: prop_bgColor.setDisplayName(resources
348: .getString("TableActions_bgColor_DisplayName"));
349: prop_bgColor.setShortDescription(resources
350: .getString("TableActions_bgColor_Description"));
351: prop_bgColor.setExpert(false);
352: prop_bgColor.setHidden(false);
353: prop_bgColor.setPreferred(false);
354: prop_bgColor
355: .setValue(
356: Constants.PropertyDescriptor.CATEGORY,
357: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
358:
359: PropertyDescriptor prop_char = new PropertyDescriptor(
360: "char", beanClass, "getChar", "setChar");
361: prop_char.setDisplayName(resources
362: .getString("TableActions_char_DisplayName"));
363: prop_char.setShortDescription(resources
364: .getString("TableActions_char_Description"));
365: prop_char.setExpert(false);
366: prop_char.setHidden(false);
367: prop_char.setPreferred(false);
368: prop_char
369: .setValue(
370: Constants.PropertyDescriptor.CATEGORY,
371: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
372:
373: PropertyDescriptor prop_charOff = new PropertyDescriptor(
374: "charOff", beanClass, "getCharOff", "setCharOff");
375: prop_charOff.setDisplayName(resources
376: .getString("TableActions_charOff_DisplayName"));
377: prop_charOff.setShortDescription(resources
378: .getString("TableActions_charOff_Description"));
379: prop_charOff.setExpert(false);
380: prop_charOff.setHidden(false);
381: prop_charOff.setPreferred(false);
382: prop_charOff
383: .setValue(
384: Constants.PropertyDescriptor.CATEGORY,
385: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
386:
387: PropertyDescriptor prop_colSpan = new PropertyDescriptor(
388: "colSpan", beanClass, "getColSpan", "setColSpan");
389: prop_colSpan.setDisplayName(resources
390: .getString("TableActions_colSpan_DisplayName"));
391: prop_colSpan.setShortDescription(resources
392: .getString("TableActions_colSpan_Description"));
393: prop_colSpan.setExpert(false);
394: prop_colSpan.setHidden(false);
395: prop_colSpan.setPreferred(false);
396: prop_colSpan
397: .setValue(
398: Constants.PropertyDescriptor.CATEGORY,
399: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
400:
401: PropertyDescriptor prop_extraHtml = new PropertyDescriptor(
402: "extraHtml", beanClass, "getExtraHtml",
403: "setExtraHtml");
404: prop_extraHtml.setDisplayName(resources
405: .getString("TableActions_extraHtml_DisplayName"));
406: prop_extraHtml.setShortDescription(resources
407: .getString("TableActions_extraHtml_Description"));
408: prop_extraHtml.setExpert(false);
409: prop_extraHtml.setHidden(false);
410: prop_extraHtml.setPreferred(false);
411: attrib = new AttributeDescriptor("extraHtml", false, null,
412: true);
413: prop_extraHtml.setValue(
414: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
415: attrib);
416: prop_extraHtml
417: .setValue(
418: Constants.PropertyDescriptor.CATEGORY,
419: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
420:
421: PropertyDescriptor prop_headers = new PropertyDescriptor(
422: "headers", beanClass, "getHeaders", "setHeaders");
423: prop_headers.setDisplayName(resources
424: .getString("TableActions_headers_DisplayName"));
425: prop_headers.setShortDescription(resources
426: .getString("TableActions_headers_Description"));
427: prop_headers.setExpert(false);
428: prop_headers.setHidden(false);
429: prop_headers.setPreferred(false);
430: prop_headers
431: .setValue(
432: Constants.PropertyDescriptor.CATEGORY,
433: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
434:
435: PropertyDescriptor prop_height = new PropertyDescriptor(
436: "height", beanClass, "getHeight", "setHeight");
437: prop_height.setDisplayName(resources
438: .getString("TableActions_height_DisplayName"));
439: prop_height.setShortDescription(resources
440: .getString("TableActions_height_Description"));
441: prop_height.setExpert(false);
442: prop_height.setHidden(false);
443: prop_height.setPreferred(false);
444: attrib = new AttributeDescriptor("height", false, null,
445: true);
446: prop_height.setValue(
447: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
448: attrib);
449: prop_height
450: .setValue(
451: Constants.PropertyDescriptor.CATEGORY,
452: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
453:
454: PropertyDescriptor prop_noWrap = new PropertyDescriptor(
455: "noWrap", beanClass, "isNoWrap", "setNoWrap");
456: prop_noWrap.setDisplayName(resources
457: .getString("TableActions_noWrap_DisplayName"));
458: prop_noWrap.setShortDescription(resources
459: .getString("TableActions_noWrap_Description"));
460: prop_noWrap.setExpert(false);
461: prop_noWrap.setHidden(false);
462: prop_noWrap.setPreferred(false);
463: attrib = new AttributeDescriptor("noWrap", false, null,
464: true);
465: prop_noWrap.setValue(
466: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
467: attrib);
468: prop_noWrap
469: .setValue(
470: Constants.PropertyDescriptor.CATEGORY,
471: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
472:
473: PropertyDescriptor prop_onClick = new PropertyDescriptor(
474: "onClick", beanClass, "getOnClick", "setOnClick");
475: prop_onClick.setDisplayName(resources
476: .getString("TableActions_onClick_DisplayName"));
477: prop_onClick.setShortDescription(resources
478: .getString("TableActions_onClick_Description"));
479: prop_onClick.setExpert(false);
480: prop_onClick.setHidden(false);
481: prop_onClick.setPreferred(false);
482: attrib = new AttributeDescriptor("onClick", false, null,
483: true);
484: prop_onClick.setValue(
485: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
486: attrib);
487: prop_onClick
488: .setValue(
489: Constants.PropertyDescriptor.CATEGORY,
490: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
491:
492: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
493: "onDblClick", beanClass, "getOnDblClick",
494: "setOnDblClick");
495: prop_onDblClick.setDisplayName(resources
496: .getString("TableActions_onDblClick_DisplayName"));
497: prop_onDblClick.setShortDescription(resources
498: .getString("TableActions_onDblClick_Description"));
499: prop_onDblClick.setExpert(false);
500: prop_onDblClick.setHidden(false);
501: prop_onDblClick.setPreferred(false);
502: attrib = new AttributeDescriptor("onDblClick", false, null,
503: true);
504: prop_onDblClick.setValue(
505: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
506: attrib);
507: prop_onDblClick
508: .setValue(
509: Constants.PropertyDescriptor.CATEGORY,
510: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
511:
512: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
513: "onKeyDown", beanClass, "getOnKeyDown",
514: "setOnKeyDown");
515: prop_onKeyDown.setDisplayName(resources
516: .getString("TableActions_onKeyDown_DisplayName"));
517: prop_onKeyDown.setShortDescription(resources
518: .getString("TableActions_onKeyDown_Description"));
519: prop_onKeyDown.setExpert(false);
520: prop_onKeyDown.setHidden(false);
521: prop_onKeyDown.setPreferred(false);
522: attrib = new AttributeDescriptor("onKeyDown", false, null,
523: true);
524: prop_onKeyDown.setValue(
525: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
526: attrib);
527: prop_onKeyDown
528: .setValue(
529: Constants.PropertyDescriptor.CATEGORY,
530: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
531:
532: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
533: "onKeyPress", beanClass, "getOnKeyPress",
534: "setOnKeyPress");
535: prop_onKeyPress.setDisplayName(resources
536: .getString("TableActions_onKeyPress_DisplayName"));
537: prop_onKeyPress.setShortDescription(resources
538: .getString("TableActions_onKeyPress_Description"));
539: prop_onKeyPress.setExpert(false);
540: prop_onKeyPress.setHidden(false);
541: prop_onKeyPress.setPreferred(false);
542: attrib = new AttributeDescriptor("onKeyPress", false, null,
543: true);
544: prop_onKeyPress.setValue(
545: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
546: attrib);
547: prop_onKeyPress
548: .setValue(
549: Constants.PropertyDescriptor.CATEGORY,
550: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
551:
552: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
553: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
554: prop_onKeyUp.setDisplayName(resources
555: .getString("TableActions_onKeyUp_DisplayName"));
556: prop_onKeyUp.setShortDescription(resources
557: .getString("TableActions_onKeyUp_Description"));
558: prop_onKeyUp.setExpert(false);
559: prop_onKeyUp.setHidden(false);
560: prop_onKeyUp.setPreferred(false);
561: attrib = new AttributeDescriptor("onKeyUp", false, null,
562: true);
563: prop_onKeyUp.setValue(
564: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
565: attrib);
566: prop_onKeyUp
567: .setValue(
568: Constants.PropertyDescriptor.CATEGORY,
569: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
570:
571: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
572: "onMouseDown", beanClass, "getOnMouseDown",
573: "setOnMouseDown");
574: prop_onMouseDown.setDisplayName(resources
575: .getString("TableActions_onMouseDown_DisplayName"));
576: prop_onMouseDown.setShortDescription(resources
577: .getString("TableActions_onMouseDown_Description"));
578: prop_onMouseDown.setExpert(false);
579: prop_onMouseDown.setHidden(false);
580: prop_onMouseDown.setPreferred(false);
581: attrib = new AttributeDescriptor("onMouseDown", false,
582: null, true);
583: prop_onMouseDown.setValue(
584: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
585: attrib);
586: prop_onMouseDown
587: .setValue(
588: Constants.PropertyDescriptor.CATEGORY,
589: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
590:
591: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
592: "onMouseMove", beanClass, "getOnMouseMove",
593: "setOnMouseMove");
594: prop_onMouseMove.setDisplayName(resources
595: .getString("TableActions_onMouseMove_DisplayName"));
596: prop_onMouseMove.setShortDescription(resources
597: .getString("TableActions_onMouseMove_Description"));
598: prop_onMouseMove.setExpert(false);
599: prop_onMouseMove.setHidden(false);
600: prop_onMouseMove.setPreferred(false);
601: attrib = new AttributeDescriptor("onMouseMove", false,
602: null, true);
603: prop_onMouseMove.setValue(
604: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
605: attrib);
606: prop_onMouseMove
607: .setValue(
608: Constants.PropertyDescriptor.CATEGORY,
609: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
610:
611: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
612: "onMouseOut", beanClass, "getOnMouseOut",
613: "setOnMouseOut");
614: prop_onMouseOut.setDisplayName(resources
615: .getString("TableActions_onMouseOut_DisplayName"));
616: prop_onMouseOut.setShortDescription(resources
617: .getString("TableActions_onMouseOut_Description"));
618: prop_onMouseOut.setExpert(false);
619: prop_onMouseOut.setHidden(false);
620: prop_onMouseOut.setPreferred(false);
621: attrib = new AttributeDescriptor("onMouseOut", false, null,
622: true);
623: prop_onMouseOut.setValue(
624: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
625: attrib);
626: prop_onMouseOut
627: .setValue(
628: Constants.PropertyDescriptor.CATEGORY,
629: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
630:
631: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
632: "onMouseOver", beanClass, "getOnMouseOver",
633: "setOnMouseOver");
634: prop_onMouseOver.setDisplayName(resources
635: .getString("TableActions_onMouseOver_DisplayName"));
636: prop_onMouseOver.setShortDescription(resources
637: .getString("TableActions_onMouseOver_Description"));
638: prop_onMouseOver.setExpert(false);
639: prop_onMouseOver.setHidden(false);
640: prop_onMouseOver.setPreferred(false);
641: attrib = new AttributeDescriptor("onMouseOver", false,
642: null, true);
643: prop_onMouseOver.setValue(
644: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
645: attrib);
646: prop_onMouseOver
647: .setValue(
648: Constants.PropertyDescriptor.CATEGORY,
649: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
650:
651: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
652: "onMouseUp", beanClass, "getOnMouseUp",
653: "setOnMouseUp");
654: prop_onMouseUp.setDisplayName(resources
655: .getString("TableActions_onMouseUp_DisplayName"));
656: prop_onMouseUp.setShortDescription(resources
657: .getString("TableActions_onMouseUp_Description"));
658: prop_onMouseUp.setExpert(false);
659: prop_onMouseUp.setHidden(false);
660: prop_onMouseUp.setPreferred(false);
661: attrib = new AttributeDescriptor("onMouseUp", false, null,
662: true);
663: prop_onMouseUp.setValue(
664: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
665: attrib);
666: prop_onMouseUp
667: .setValue(
668: Constants.PropertyDescriptor.CATEGORY,
669: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
670:
671: PropertyDescriptor prop_rowSpan = new PropertyDescriptor(
672: "rowSpan", beanClass, "getRowSpan", "setRowSpan");
673: prop_rowSpan.setDisplayName(resources
674: .getString("TableActions_rowSpan_DisplayName"));
675: prop_rowSpan.setShortDescription(resources
676: .getString("TableActions_rowSpan_Description"));
677: prop_rowSpan.setExpert(false);
678: prop_rowSpan.setHidden(false);
679: prop_rowSpan.setPreferred(false);
680: prop_rowSpan
681: .setValue(
682: Constants.PropertyDescriptor.CATEGORY,
683: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
684:
685: PropertyDescriptor prop_scope = new PropertyDescriptor(
686: "scope", beanClass, "getScope", "setScope");
687: prop_scope.setDisplayName(resources
688: .getString("TableActions_scope_DisplayName"));
689: prop_scope.setShortDescription(resources
690: .getString("TableActions_scope_Description"));
691: prop_scope.setExpert(false);
692: prop_scope.setHidden(false);
693: prop_scope.setPreferred(false);
694: attrib = new AttributeDescriptor("scope", false, null, true);
695: prop_scope.setValue(
696: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
697: attrib);
698: prop_scope
699: .setValue(
700: Constants.PropertyDescriptor.CATEGORY,
701: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
702:
703: PropertyDescriptor prop_style = new PropertyDescriptor(
704: "style", beanClass, "getStyle", "setStyle");
705: prop_style.setDisplayName(resources
706: .getString("TableActions_style_DisplayName"));
707: prop_style.setShortDescription(resources
708: .getString("TableActions_style_Description"));
709: prop_style.setExpert(false);
710: prop_style.setHidden(false);
711: prop_style.setPreferred(false);
712: attrib = new AttributeDescriptor("style", false, null, true);
713: prop_style.setValue(
714: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
715: attrib);
716: prop_style
717: .setValue(
718: Constants.PropertyDescriptor.CATEGORY,
719: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
720:
721: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
722: "styleClass", beanClass, "getStyleClass",
723: "setStyleClass");
724: prop_styleClass.setDisplayName(resources
725: .getString("TableActions_styleClass_DisplayName"));
726: prop_styleClass.setShortDescription(resources
727: .getString("TableActions_styleClass_Description"));
728: prop_styleClass.setExpert(false);
729: prop_styleClass.setHidden(false);
730: prop_styleClass.setPreferred(false);
731: attrib = new AttributeDescriptor("styleClass", false, null,
732: true);
733: prop_styleClass.setValue(
734: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
735: attrib);
736: prop_styleClass
737: .setValue(
738: Constants.PropertyDescriptor.CATEGORY,
739: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
740:
741: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
742: "toolTip", beanClass, "getToolTip", "setToolTip");
743: prop_toolTip.setDisplayName(resources
744: .getString("TableActions_toolTip_DisplayName"));
745: prop_toolTip.setShortDescription(resources
746: .getString("TableActions_toolTip_Description"));
747: prop_toolTip.setExpert(false);
748: prop_toolTip.setHidden(false);
749: prop_toolTip.setPreferred(false);
750: attrib = new AttributeDescriptor("toolTip", false, null,
751: true);
752: prop_toolTip.setValue(
753: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
754: attrib);
755: prop_toolTip
756: .setValue(
757: Constants.PropertyDescriptor.CATEGORY,
758: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
759:
760: PropertyDescriptor prop_valign = new PropertyDescriptor(
761: "valign", beanClass, "getValign", "setValign");
762: prop_valign.setDisplayName(resources
763: .getString("TableActions_valign_DisplayName"));
764: prop_valign.setShortDescription(resources
765: .getString("TableActions_valign_Description"));
766: prop_valign.setExpert(false);
767: prop_valign.setHidden(false);
768: prop_valign.setPreferred(false);
769: attrib = new AttributeDescriptor("valign", false, null,
770: true);
771: prop_valign.setValue(
772: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
773: attrib);
774: prop_valign
775: .setValue(
776: Constants.PropertyDescriptor.CATEGORY,
777: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
778:
779: PropertyDescriptor prop_visible = new PropertyDescriptor(
780: "visible", beanClass, "isVisible", "setVisible");
781: prop_visible.setDisplayName(resources
782: .getString("TableActions_visible_DisplayName"));
783: prop_visible.setShortDescription(resources
784: .getString("TableActions_visible_Description"));
785: prop_visible.setExpert(false);
786: prop_visible.setHidden(false);
787: prop_visible.setPreferred(false);
788: attrib = new AttributeDescriptor("visible", false, "true",
789: true);
790: prop_visible.setValue(
791: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
792: attrib);
793: prop_visible
794: .setValue(
795: Constants.PropertyDescriptor.CATEGORY,
796: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
797:
798: PropertyDescriptor prop_width = new PropertyDescriptor(
799: "width", beanClass, "getWidth", "setWidth");
800: prop_width.setDisplayName(resources
801: .getString("TableActions_width_DisplayName"));
802: prop_width.setShortDescription(resources
803: .getString("TableActions_width_Description"));
804: prop_width.setExpert(false);
805: prop_width.setHidden(false);
806: prop_width.setPreferred(false);
807: attrib = new AttributeDescriptor("width", false, null, true);
808: prop_width.setValue(
809: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
810: attrib);
811: prop_width
812: .setValue(
813: Constants.PropertyDescriptor.CATEGORY,
814: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
815:
816: PropertyDescriptor prop_attributes = new PropertyDescriptor(
817: "attributes", beanClass, "getAttributes", null);
818: prop_attributes.setDisplayName(resources
819: .getString("TableActions_attributes_DisplayName"));
820: prop_attributes.setShortDescription(resources
821: .getString("TableActions_attributes_Description"));
822: prop_attributes.setExpert(false);
823: prop_attributes.setHidden(true);
824: prop_attributes.setPreferred(false);
825: prop_attributes
826: .setValue(
827: Constants.PropertyDescriptor.CATEGORY,
828: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
829:
830: PropertyDescriptor prop_childCount = new PropertyDescriptor(
831: "childCount", beanClass, "getChildCount", null);
832: prop_childCount.setDisplayName(resources
833: .getString("TableActions_childCount_DisplayName"));
834: prop_childCount.setShortDescription(resources
835: .getString("TableActions_childCount_Description"));
836: prop_childCount.setExpert(false);
837: prop_childCount.setHidden(true);
838: prop_childCount.setPreferred(false);
839: prop_childCount
840: .setValue(
841: Constants.PropertyDescriptor.CATEGORY,
842: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
843:
844: PropertyDescriptor prop_children = new PropertyDescriptor(
845: "children", beanClass, "getChildren", null);
846: prop_children.setDisplayName(resources
847: .getString("TableActions_children_DisplayName"));
848: prop_children.setShortDescription(resources
849: .getString("TableActions_children_Description"));
850: prop_children.setExpert(false);
851: prop_children.setHidden(true);
852: prop_children.setPreferred(false);
853: prop_children
854: .setValue(
855: Constants.PropertyDescriptor.CATEGORY,
856: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
857:
858: PropertyDescriptor prop_facets = new PropertyDescriptor(
859: "facets", beanClass, "getFacets", null);
860: prop_facets.setDisplayName(resources
861: .getString("TableActions_facets_DisplayName"));
862: prop_facets.setShortDescription(resources
863: .getString("TableActions_facets_Description"));
864: prop_facets.setExpert(false);
865: prop_facets.setHidden(true);
866: prop_facets.setPreferred(false);
867: prop_facets
868: .setValue(
869: Constants.PropertyDescriptor.CATEGORY,
870: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
871:
872: PropertyDescriptor prop_family = new PropertyDescriptor(
873: "family", beanClass, "getFamily", null);
874: prop_family.setDisplayName(resources
875: .getString("TableActions_family_DisplayName"));
876: prop_family.setShortDescription(resources
877: .getString("TableActions_family_Description"));
878: prop_family.setExpert(false);
879: prop_family.setHidden(true);
880: prop_family.setPreferred(false);
881: prop_family
882: .setValue(
883: Constants.PropertyDescriptor.CATEGORY,
884: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
885:
886: PropertyDescriptor prop_id = new PropertyDescriptor("id",
887: beanClass, "getId", "setId");
888: prop_id.setDisplayName(resources
889: .getString("TableActions_id_DisplayName"));
890: prop_id.setShortDescription(resources
891: .getString("TableActions_id_Description"));
892: prop_id.setExpert(false);
893: prop_id.setHidden(true);
894: prop_id.setPreferred(false);
895: attrib = new AttributeDescriptor("id", false, null, false);
896: prop_id.setValue(
897: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
898: attrib);
899: prop_id
900: .setValue(
901: Constants.PropertyDescriptor.CATEGORY,
902: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
903:
904: PropertyDescriptor prop_parent = new PropertyDescriptor(
905: "parent", beanClass, "getParent", "setParent");
906: prop_parent.setDisplayName(resources
907: .getString("TableActions_parent_DisplayName"));
908: prop_parent.setShortDescription(resources
909: .getString("TableActions_parent_Description"));
910: prop_parent.setExpert(false);
911: prop_parent.setHidden(true);
912: prop_parent.setPreferred(false);
913: prop_parent
914: .setValue(
915: Constants.PropertyDescriptor.CATEGORY,
916: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
917:
918: PropertyDescriptor prop_rendered = new PropertyDescriptor(
919: "rendered", beanClass, "isRendered", "setRendered");
920: prop_rendered.setDisplayName(resources
921: .getString("TableActions_rendered_DisplayName"));
922: prop_rendered.setShortDescription(resources
923: .getString("TableActions_rendered_Description"));
924: prop_rendered.setExpert(false);
925: prop_rendered.setHidden(false);
926: prop_rendered.setPreferred(false);
927: attrib = new AttributeDescriptor("rendered", false, null,
928: true);
929: prop_rendered.setValue(
930: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
931: attrib);
932: prop_rendered
933: .setValue(
934: Constants.PropertyDescriptor.CATEGORY,
935: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
936:
937: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
938: "rendererType", beanClass, "getRendererType",
939: "setRendererType");
940: prop_rendererType
941: .setDisplayName(resources
942: .getString("TableActions_rendererType_DisplayName"));
943: prop_rendererType
944: .setShortDescription(resources
945: .getString("TableActions_rendererType_Description"));
946: prop_rendererType.setExpert(false);
947: prop_rendererType.setHidden(true);
948: prop_rendererType.setPreferred(false);
949: prop_rendererType
950: .setValue(
951: Constants.PropertyDescriptor.CATEGORY,
952: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
953:
954: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
955: "rendersChildren", beanClass, "getRendersChildren",
956: null);
957: prop_rendersChildren
958: .setDisplayName(resources
959: .getString("TableActions_rendersChildren_DisplayName"));
960: prop_rendersChildren
961: .setShortDescription(resources
962: .getString("TableActions_rendersChildren_Description"));
963: prop_rendersChildren.setExpert(false);
964: prop_rendersChildren.setHidden(true);
965: prop_rendersChildren.setPreferred(false);
966: prop_rendersChildren
967: .setValue(
968: Constants.PropertyDescriptor.CATEGORY,
969: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
970:
971: propDescriptors = new PropertyDescriptor[] { prop_abbr,
972: prop_actionsBottom, prop_align, prop_attributes,
973: prop_axis, prop_bgColor, prop_char, prop_charOff,
974: prop_childCount, prop_children, prop_colSpan,
975: prop_extraHtml, prop_facets, prop_family,
976: prop_headers, prop_height, prop_id, prop_noWrap,
977: prop_onClick, prop_onDblClick, prop_onKeyDown,
978: prop_onKeyPress, prop_onKeyUp, prop_onMouseDown,
979: prop_onMouseMove, prop_onMouseOut,
980: prop_onMouseOver, prop_onMouseUp, prop_parent,
981: prop_rendered, prop_rendererType,
982: prop_rendersChildren, prop_rowSpan, prop_scope,
983: prop_style, prop_styleClass, prop_toolTip,
984: prop_valign, prop_visible, prop_width, };
985: return propDescriptors;
986:
987: } catch (IntrospectionException e) {
988: e.printStackTrace();
989: return null;
990: }
991:
992: }
993:
994: }
995: //GEN-END:BeanInfo
|