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.xhtml;
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: public class ABeanInfo extends SimpleBeanInfo {
066:
067: protected static ResourceBundle resources = ResourceBundle
068: .getBundle(
069: "org.netbeans.modules.visualweb.xhtml.Bundle-JSF",
070: Locale.getDefault(), ABeanInfo.class
071: .getClassLoader());
072:
073: /**
074: * <p>Construct a new <code>ABeanInfo</code>.</p>
075: */
076: public ABeanInfo() {
077:
078: beanClass = org.netbeans.modules.visualweb.xhtml.A.class;
079: iconFileName_C16 = "/org/netbeans/modules/visualweb/xhtml/A_C16";
080: iconFileName_C32 = "/org/netbeans/modules/visualweb/xhtml/A_C32";
081: iconFileName_M16 = "/org/netbeans/modules/visualweb/xhtml/A_M16";
082: iconFileName_M32 = "/org/netbeans/modules/visualweb/xhtml/A_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("A_DisplayName"));
143: beanDescriptor.setShortDescription(resources
144: .getString("A_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.HELP_KEY,
152: "projrave_ui_elements_palette_html_elements_a_link");
153: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
154: "a");
155: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
156: Boolean.TRUE);
157: beanDescriptor.setValue(
158: Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
159: "projrave_ui_elements_propsheets_html_a_link_props");
160: beanDescriptor.setValue(
161: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
162: getCategoryDescriptors());
163: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME, "a");
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_accesskey = new PropertyDescriptor(
283: "accesskey", beanClass, "getAccesskey",
284: "setAccesskey");
285: prop_accesskey.setDisplayName(resources
286: .getString("A_accesskey_DisplayName"));
287: prop_accesskey.setShortDescription(resources
288: .getString("A_accesskey_Description"));
289: prop_accesskey.setExpert(false);
290: prop_accesskey.setHidden(false);
291: prop_accesskey.setPreferred(false);
292: attrib = new AttributeDescriptor("accesskey", false, null,
293: true);
294: prop_accesskey.setValue(
295: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
296: attrib);
297: prop_accesskey
298: .setValue(
299: Constants.PropertyDescriptor.CATEGORY,
300: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
301:
302: PropertyDescriptor prop_charset = new PropertyDescriptor(
303: "charset", beanClass, "getCharset", "setCharset");
304: prop_charset.setDisplayName(resources
305: .getString("A_charset_DisplayName"));
306: prop_charset.setShortDescription(resources
307: .getString("A_charset_Description"));
308: prop_charset
309: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
310: prop_charset.setExpert(false);
311: prop_charset.setHidden(false);
312: prop_charset.setPreferred(false);
313: attrib = new AttributeDescriptor("charset", false, null,
314: true);
315: prop_charset.setValue(
316: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
317: attrib);
318: prop_charset
319: .setValue(
320: Constants.PropertyDescriptor.CATEGORY,
321: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
322: prop_charset
323: .setValue(
324: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
325: com.sun.rave.propertyeditors.domains.CharacterSetsDomain.class);
326:
327: PropertyDescriptor prop_coords = new PropertyDescriptor(
328: "coords", beanClass, "getCoords", "setCoords");
329: prop_coords.setDisplayName(resources
330: .getString("A_coords_DisplayName"));
331: prop_coords.setShortDescription(resources
332: .getString("A_coords_Description"));
333: prop_coords.setExpert(false);
334: prop_coords.setHidden(false);
335: prop_coords.setPreferred(false);
336: attrib = new AttributeDescriptor("coords", false, null,
337: true);
338: prop_coords.setValue(
339: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
340: attrib);
341: prop_coords
342: .setValue(
343: Constants.PropertyDescriptor.CATEGORY,
344: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
345: prop_coords.setValue("instructions", resources
346: .getString("A_coords_instructions"));
347:
348: PropertyDescriptor prop_dir = new PropertyDescriptor("dir",
349: beanClass, "getDir", "setDir");
350: prop_dir.setDisplayName(resources
351: .getString("A_dir_DisplayName"));
352: prop_dir.setShortDescription(resources
353: .getString("A_dir_Description"));
354: prop_dir
355: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
356: prop_dir.setExpert(false);
357: prop_dir.setHidden(false);
358: prop_dir.setPreferred(false);
359: attrib = new AttributeDescriptor("dir", false, null, true);
360: prop_dir.setValue(
361: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
362: attrib);
363: prop_dir
364: .setValue(
365: Constants.PropertyDescriptor.CATEGORY,
366: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
367: prop_dir
368: .setValue(
369: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
370: com.sun.rave.propertyeditors.domains.TextDirectionDomain.class);
371:
372: PropertyDescriptor prop_href = new PropertyDescriptor(
373: "href", beanClass, "getHref", "setHref");
374: prop_href.setDisplayName(resources
375: .getString("A_href_DisplayName"));
376: prop_href.setShortDescription(resources
377: .getString("A_href_Description"));
378: prop_href
379: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.UrlPropertyEditor"));
380: prop_href.setExpert(false);
381: prop_href.setHidden(false);
382: prop_href.setPreferred(false);
383: attrib = new AttributeDescriptor("href", false, null, true);
384: prop_href.setValue(
385: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
386: attrib);
387: prop_href
388: .setValue(
389: Constants.PropertyDescriptor.CATEGORY,
390: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
391:
392: PropertyDescriptor prop_hreflang = new PropertyDescriptor(
393: "hreflang", beanClass, "getHreflang", "setHreflang");
394: prop_hreflang.setDisplayName(resources
395: .getString("A_hreflang_DisplayName"));
396: prop_hreflang.setShortDescription(resources
397: .getString("A_hreflang_Description"));
398: prop_hreflang
399: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
400: prop_hreflang.setExpert(false);
401: prop_hreflang.setHidden(false);
402: prop_hreflang.setPreferred(false);
403: attrib = new AttributeDescriptor("hreflang", false, null,
404: true);
405: prop_hreflang.setValue(
406: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
407: attrib);
408: prop_hreflang
409: .setValue(
410: Constants.PropertyDescriptor.CATEGORY,
411: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
412: prop_hreflang
413: .setValue(
414: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
415: com.sun.rave.propertyeditors.domains.LanguagesDomain.class);
416:
417: PropertyDescriptor prop_id = new PropertyDescriptor("id",
418: beanClass, "getId", "setId");
419: prop_id.setDisplayName(resources
420: .getString("A_id_DisplayName"));
421: prop_id.setShortDescription(resources
422: .getString("A_id_Description"));
423: prop_id.setExpert(false);
424: prop_id.setHidden(true);
425: prop_id.setPreferred(false);
426: attrib = new AttributeDescriptor("id", false, null, true);
427: prop_id.setValue(
428: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
429: attrib);
430: prop_id
431: .setValue(
432: Constants.PropertyDescriptor.CATEGORY,
433: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
434:
435: PropertyDescriptor prop_lang = new PropertyDescriptor(
436: "lang", beanClass, "getLang", "setLang");
437: prop_lang.setDisplayName(resources
438: .getString("A_lang_DisplayName"));
439: prop_lang.setShortDescription(resources
440: .getString("A_lang_Description"));
441: prop_lang
442: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
443: prop_lang.setExpert(false);
444: prop_lang.setHidden(false);
445: prop_lang.setPreferred(false);
446: attrib = new AttributeDescriptor("lang", false, null, true);
447: prop_lang.setValue(
448: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
449: attrib);
450: prop_lang
451: .setValue(
452: Constants.PropertyDescriptor.CATEGORY,
453: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
454: prop_lang
455: .setValue(
456: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
457: com.sun.rave.propertyeditors.domains.LanguagesDomain.class);
458:
459: PropertyDescriptor prop_name = new PropertyDescriptor(
460: "name", beanClass, "getName", "setName");
461: prop_name.setDisplayName(resources
462: .getString("A_name_DisplayName"));
463: prop_name.setShortDescription(resources
464: .getString("A_name_Description"));
465: prop_name.setExpert(false);
466: prop_name.setHidden(false);
467: prop_name.setPreferred(false);
468: attrib = new AttributeDescriptor("name", false, null, true);
469: prop_name.setValue(
470: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
471: attrib);
472: prop_name
473: .setValue(
474: Constants.PropertyDescriptor.CATEGORY,
475: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
476:
477: PropertyDescriptor prop_onblur = new PropertyDescriptor(
478: "onblur", beanClass, "getOnblur", "setOnblur");
479: prop_onblur.setDisplayName(resources
480: .getString("A_onblur_DisplayName"));
481: prop_onblur.setShortDescription(resources
482: .getString("A_onblur_Description"));
483: prop_onblur
484: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
485: prop_onblur.setExpert(false);
486: prop_onblur.setHidden(false);
487: prop_onblur.setPreferred(false);
488: attrib = new AttributeDescriptor("onblur", false, null,
489: true);
490: prop_onblur.setValue(
491: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
492: attrib);
493: prop_onblur
494: .setValue(
495: Constants.PropertyDescriptor.CATEGORY,
496: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
497:
498: PropertyDescriptor prop_onclick = new PropertyDescriptor(
499: "onclick", beanClass, "getOnclick", "setOnclick");
500: prop_onclick.setDisplayName(resources
501: .getString("A_onclick_DisplayName"));
502: prop_onclick.setShortDescription(resources
503: .getString("A_onclick_Description"));
504: prop_onclick
505: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
506: prop_onclick.setExpert(false);
507: prop_onclick.setHidden(false);
508: prop_onclick.setPreferred(false);
509: attrib = new AttributeDescriptor("onclick", false, null,
510: true);
511: prop_onclick.setValue(
512: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
513: attrib);
514: prop_onclick
515: .setValue(
516: Constants.PropertyDescriptor.CATEGORY,
517: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
518:
519: PropertyDescriptor prop_ondblclick = new PropertyDescriptor(
520: "ondblclick", beanClass, "getOndblclick",
521: "setOndblclick");
522: prop_ondblclick.setDisplayName(resources
523: .getString("A_ondblclick_DisplayName"));
524: prop_ondblclick.setShortDescription(resources
525: .getString("A_ondblclick_Description"));
526: prop_ondblclick
527: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
528: prop_ondblclick.setExpert(false);
529: prop_ondblclick.setHidden(false);
530: prop_ondblclick.setPreferred(false);
531: attrib = new AttributeDescriptor("ondblclick", false, null,
532: true);
533: prop_ondblclick.setValue(
534: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
535: attrib);
536: prop_ondblclick
537: .setValue(
538: Constants.PropertyDescriptor.CATEGORY,
539: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
540:
541: PropertyDescriptor prop_onfocus = new PropertyDescriptor(
542: "onfocus", beanClass, "getOnfocus", "setOnfocus");
543: prop_onfocus.setDisplayName(resources
544: .getString("A_onfocus_DisplayName"));
545: prop_onfocus.setShortDescription(resources
546: .getString("A_onfocus_Description"));
547: prop_onfocus
548: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
549: prop_onfocus.setExpert(false);
550: prop_onfocus.setHidden(false);
551: prop_onfocus.setPreferred(false);
552: attrib = new AttributeDescriptor("onfocus", false, null,
553: true);
554: prop_onfocus.setValue(
555: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
556: attrib);
557: prop_onfocus
558: .setValue(
559: Constants.PropertyDescriptor.CATEGORY,
560: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
561:
562: PropertyDescriptor prop_onkeydown = new PropertyDescriptor(
563: "onkeydown", beanClass, "getOnkeydown",
564: "setOnkeydown");
565: prop_onkeydown.setDisplayName(resources
566: .getString("A_onkeydown_DisplayName"));
567: prop_onkeydown.setShortDescription(resources
568: .getString("A_onkeydown_Description"));
569: prop_onkeydown
570: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
571: prop_onkeydown.setExpert(false);
572: prop_onkeydown.setHidden(false);
573: prop_onkeydown.setPreferred(false);
574: attrib = new AttributeDescriptor("onkeydown", false, null,
575: true);
576: prop_onkeydown.setValue(
577: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
578: attrib);
579: prop_onkeydown
580: .setValue(
581: Constants.PropertyDescriptor.CATEGORY,
582: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
583:
584: PropertyDescriptor prop_onkeypress = new PropertyDescriptor(
585: "onkeypress", beanClass, "getOnkeypress",
586: "setOnkeypress");
587: prop_onkeypress.setDisplayName(resources
588: .getString("A_onkeypress_DisplayName"));
589: prop_onkeypress.setShortDescription(resources
590: .getString("A_onkeypress_Description"));
591: prop_onkeypress
592: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
593: prop_onkeypress.setExpert(false);
594: prop_onkeypress.setHidden(false);
595: prop_onkeypress.setPreferred(false);
596: attrib = new AttributeDescriptor("onkeypress", false, null,
597: true);
598: prop_onkeypress.setValue(
599: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
600: attrib);
601: prop_onkeypress
602: .setValue(
603: Constants.PropertyDescriptor.CATEGORY,
604: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
605:
606: PropertyDescriptor prop_onkeyup = new PropertyDescriptor(
607: "onkeyup", beanClass, "getOnkeyup", "setOnkeyup");
608: prop_onkeyup.setDisplayName(resources
609: .getString("A_onkeyup_DisplayName"));
610: prop_onkeyup.setShortDescription(resources
611: .getString("A_onkeyup_Description"));
612: prop_onkeyup
613: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
614: prop_onkeyup.setExpert(false);
615: prop_onkeyup.setHidden(false);
616: prop_onkeyup.setPreferred(false);
617: attrib = new AttributeDescriptor("onkeyup", false, null,
618: true);
619: prop_onkeyup.setValue(
620: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
621: attrib);
622: prop_onkeyup
623: .setValue(
624: Constants.PropertyDescriptor.CATEGORY,
625: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
626:
627: PropertyDescriptor prop_onmousedown = new PropertyDescriptor(
628: "onmousedown", beanClass, "getOnmousedown",
629: "setOnmousedown");
630: prop_onmousedown.setDisplayName(resources
631: .getString("A_onmousedown_DisplayName"));
632: prop_onmousedown.setShortDescription(resources
633: .getString("A_onmousedown_Description"));
634: prop_onmousedown
635: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
636: prop_onmousedown.setExpert(false);
637: prop_onmousedown.setHidden(false);
638: prop_onmousedown.setPreferred(false);
639: attrib = new AttributeDescriptor("onmousedown", false,
640: null, true);
641: prop_onmousedown.setValue(
642: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
643: attrib);
644: prop_onmousedown
645: .setValue(
646: Constants.PropertyDescriptor.CATEGORY,
647: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
648:
649: PropertyDescriptor prop_onmousemove = new PropertyDescriptor(
650: "onmousemove", beanClass, "getOnmousemove",
651: "setOnmousemove");
652: prop_onmousemove.setDisplayName(resources
653: .getString("A_onmousemove_DisplayName"));
654: prop_onmousemove.setShortDescription(resources
655: .getString("A_onmousemove_Description"));
656: prop_onmousemove
657: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
658: prop_onmousemove.setExpert(false);
659: prop_onmousemove.setHidden(false);
660: prop_onmousemove.setPreferred(false);
661: attrib = new AttributeDescriptor("onmousemove", false,
662: null, true);
663: prop_onmousemove.setValue(
664: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
665: attrib);
666: prop_onmousemove
667: .setValue(
668: Constants.PropertyDescriptor.CATEGORY,
669: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
670:
671: PropertyDescriptor prop_onmouseout = new PropertyDescriptor(
672: "onmouseout", beanClass, "getOnmouseout",
673: "setOnmouseout");
674: prop_onmouseout.setDisplayName(resources
675: .getString("A_onmouseout_DisplayName"));
676: prop_onmouseout.setShortDescription(resources
677: .getString("A_onmouseout_Description"));
678: prop_onmouseout
679: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
680: prop_onmouseout.setExpert(false);
681: prop_onmouseout.setHidden(false);
682: prop_onmouseout.setPreferred(false);
683: attrib = new AttributeDescriptor("onmouseout", false, null,
684: true);
685: prop_onmouseout.setValue(
686: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
687: attrib);
688: prop_onmouseout
689: .setValue(
690: Constants.PropertyDescriptor.CATEGORY,
691: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
692:
693: PropertyDescriptor prop_onmouseover = new PropertyDescriptor(
694: "onmouseover", beanClass, "getOnmouseover",
695: "setOnmouseover");
696: prop_onmouseover.setDisplayName(resources
697: .getString("A_onmouseover_DisplayName"));
698: prop_onmouseover.setShortDescription(resources
699: .getString("A_onmouseover_Description"));
700: prop_onmouseover
701: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
702: prop_onmouseover.setExpert(false);
703: prop_onmouseover.setHidden(false);
704: prop_onmouseover.setPreferred(false);
705: attrib = new AttributeDescriptor("onmouseover", false,
706: null, true);
707: prop_onmouseover.setValue(
708: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
709: attrib);
710: prop_onmouseover
711: .setValue(
712: Constants.PropertyDescriptor.CATEGORY,
713: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
714:
715: PropertyDescriptor prop_onmouseup = new PropertyDescriptor(
716: "onmouseup", beanClass, "getOnmouseup",
717: "setOnmouseup");
718: prop_onmouseup.setDisplayName(resources
719: .getString("A_onmouseup_DisplayName"));
720: prop_onmouseup.setShortDescription(resources
721: .getString("A_onmouseup_Description"));
722: prop_onmouseup
723: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
724: prop_onmouseup.setExpert(false);
725: prop_onmouseup.setHidden(false);
726: prop_onmouseup.setPreferred(false);
727: attrib = new AttributeDescriptor("onmouseup", false, null,
728: true);
729: prop_onmouseup.setValue(
730: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
731: attrib);
732: prop_onmouseup
733: .setValue(
734: Constants.PropertyDescriptor.CATEGORY,
735: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
736:
737: PropertyDescriptor prop_rel = new PropertyDescriptor("rel",
738: beanClass, "getRel", "setRel");
739: prop_rel.setDisplayName(resources
740: .getString("A_rel_DisplayName"));
741: prop_rel.setShortDescription(resources
742: .getString("A_rel_Description"));
743: prop_rel
744: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
745: prop_rel.setExpert(false);
746: prop_rel.setHidden(false);
747: prop_rel.setPreferred(false);
748: attrib = new AttributeDescriptor("rel", false, null, true);
749: prop_rel.setValue(
750: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
751: attrib);
752: prop_rel
753: .setValue(
754: Constants.PropertyDescriptor.CATEGORY,
755: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
756: prop_rel
757: .setValue(
758: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
759: com.sun.rave.propertyeditors.domains.HtmlLinkTypesDomain.class);
760:
761: PropertyDescriptor prop_rev = new PropertyDescriptor("rev",
762: beanClass, "getRev", "setRev");
763: prop_rev.setDisplayName(resources
764: .getString("A_rev_DisplayName"));
765: prop_rev.setShortDescription(resources
766: .getString("A_rev_Description"));
767: prop_rev
768: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
769: prop_rev.setExpert(false);
770: prop_rev.setHidden(false);
771: prop_rev.setPreferred(false);
772: attrib = new AttributeDescriptor("rev", false, null, true);
773: prop_rev.setValue(
774: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
775: attrib);
776: prop_rev
777: .setValue(
778: Constants.PropertyDescriptor.CATEGORY,
779: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
780: prop_rev
781: .setValue(
782: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
783: com.sun.rave.propertyeditors.domains.HtmlLinkTypesDomain.class);
784:
785: PropertyDescriptor prop_shape = new PropertyDescriptor(
786: "shape", beanClass, "getShape", "setShape");
787: prop_shape.setDisplayName(resources
788: .getString("A_shape_DisplayName"));
789: prop_shape.setShortDescription(resources
790: .getString("A_shape_Description"));
791: prop_shape
792: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
793: prop_shape.setExpert(false);
794: prop_shape.setHidden(false);
795: prop_shape.setPreferred(false);
796: attrib = new AttributeDescriptor("shape", false, null, true);
797: prop_shape.setValue(
798: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
799: attrib);
800: prop_shape
801: .setValue(
802: Constants.PropertyDescriptor.CATEGORY,
803: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
804: prop_shape
805: .setValue(
806: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
807: com.sun.rave.propertyeditors.domains.HtmlRegionShapesDomain.class);
808:
809: PropertyDescriptor prop_style = new PropertyDescriptor(
810: "style", beanClass, "getStyle", "setStyle");
811: prop_style.setDisplayName(resources
812: .getString("A_style_DisplayName"));
813: prop_style.setShortDescription(resources
814: .getString("A_style_Description"));
815: prop_style
816: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
817: prop_style.setExpert(false);
818: prop_style.setHidden(false);
819: prop_style.setPreferred(false);
820: attrib = new AttributeDescriptor("style", false, null, true);
821: prop_style.setValue(
822: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
823: attrib);
824: prop_style
825: .setValue(
826: Constants.PropertyDescriptor.CATEGORY,
827: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
828:
829: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
830: "styleClass", beanClass, "getStyleClass",
831: "setStyleClass");
832: prop_styleClass.setDisplayName(resources
833: .getString("A_styleClass_DisplayName"));
834: prop_styleClass.setShortDescription(resources
835: .getString("A_styleClass_Description"));
836: prop_styleClass
837: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
838: prop_styleClass.setExpert(false);
839: prop_styleClass.setHidden(false);
840: prop_styleClass.setPreferred(false);
841: attrib = new AttributeDescriptor("class", false, null, true);
842: prop_styleClass.setValue(
843: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
844: attrib);
845: prop_styleClass
846: .setValue(
847: Constants.PropertyDescriptor.CATEGORY,
848: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
849:
850: PropertyDescriptor prop_tabindex = new PropertyDescriptor(
851: "tabindex", beanClass, "getTabindex", "setTabindex");
852: prop_tabindex.setDisplayName(resources
853: .getString("A_tabindex_DisplayName"));
854: prop_tabindex.setShortDescription(resources
855: .getString("A_tabindex_Description"));
856: prop_tabindex
857: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
858: prop_tabindex.setExpert(false);
859: prop_tabindex.setHidden(false);
860: prop_tabindex.setPreferred(false);
861: attrib = new AttributeDescriptor("tabindex", false, null,
862: true);
863: prop_tabindex.setValue(
864: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
865: attrib);
866: prop_tabindex
867: .setValue(
868: Constants.PropertyDescriptor.CATEGORY,
869: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
870: prop_tabindex.setValue("maxValue", new Integer(
871: Short.MAX_VALUE));
872: prop_tabindex.setValue("minValue", new Integer(0));
873:
874: PropertyDescriptor prop_target = new PropertyDescriptor(
875: "target", beanClass, "getTarget", "setTarget");
876: prop_target.setDisplayName(resources
877: .getString("A_target_DisplayName"));
878: prop_target.setShortDescription(resources
879: .getString("A_target_Description"));
880: prop_target
881: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
882: prop_target.setExpert(false);
883: prop_target.setHidden(false);
884: prop_target.setPreferred(false);
885: attrib = new AttributeDescriptor("target", false, null,
886: true);
887: prop_target.setValue(
888: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
889: attrib);
890: prop_target
891: .setValue(
892: Constants.PropertyDescriptor.CATEGORY,
893: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
894: prop_target
895: .setValue(
896: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
897: com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain.class);
898:
899: PropertyDescriptor prop_title = new PropertyDescriptor(
900: "title", beanClass, "getTitle", "setTitle");
901: prop_title.setDisplayName(resources
902: .getString("A_title_DisplayName"));
903: prop_title.setShortDescription(resources
904: .getString("A_title_Description"));
905: prop_title.setExpert(false);
906: prop_title.setHidden(false);
907: prop_title.setPreferred(false);
908: attrib = new AttributeDescriptor("title", false, null, true);
909: prop_title.setValue(
910: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
911: attrib);
912: prop_title
913: .setValue(
914: Constants.PropertyDescriptor.CATEGORY,
915: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
916:
917: PropertyDescriptor prop_type = new PropertyDescriptor(
918: "type", beanClass, "getType", "setType");
919: prop_type.setDisplayName(resources
920: .getString("A_type_DisplayName"));
921: prop_type.setShortDescription(resources
922: .getString("A_type_Description"));
923: prop_type
924: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
925: prop_type.setExpert(false);
926: prop_type.setHidden(false);
927: prop_type.setPreferred(false);
928: attrib = new AttributeDescriptor("type", false, null, true);
929: prop_type.setValue(
930: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
931: attrib);
932: prop_type
933: .setValue(
934: Constants.PropertyDescriptor.CATEGORY,
935: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
936: prop_type
937: .setValue(
938: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
939: com.sun.rave.propertyeditors.domains.MimeTypesDomain.class);
940:
941: PropertyDescriptor prop_xmlLang = new PropertyDescriptor(
942: "xmlLang", beanClass, "getXmlLang", "setXmlLang");
943: prop_xmlLang.setDisplayName(resources
944: .getString("A_xmlLang_DisplayName"));
945: prop_xmlLang.setShortDescription(resources
946: .getString("A_xmlLang_Description"));
947: prop_xmlLang
948: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
949: prop_xmlLang.setExpert(false);
950: prop_xmlLang.setHidden(false);
951: prop_xmlLang.setPreferred(false);
952: attrib = new AttributeDescriptor("xmlLang", false, null,
953: true);
954: prop_xmlLang.setValue(
955: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
956: attrib);
957: prop_xmlLang
958: .setValue(
959: Constants.PropertyDescriptor.CATEGORY,
960: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
961: prop_xmlLang
962: .setValue(
963: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
964: com.sun.rave.propertyeditors.domains.LanguagesDomain.class);
965:
966: propDescriptors = new PropertyDescriptor[] {
967: prop_accesskey, prop_charset, prop_coords,
968: prop_dir, prop_href, prop_hreflang, prop_id,
969: prop_lang, prop_name, prop_onblur, prop_onclick,
970: prop_ondblclick, prop_onfocus, prop_onkeydown,
971: prop_onkeypress, prop_onkeyup, prop_onmousedown,
972: prop_onmousemove, prop_onmouseout,
973: prop_onmouseover, prop_onmouseup, prop_rel,
974: prop_rev, prop_shape, prop_style, prop_styleClass,
975: prop_tabindex, prop_target, prop_title, prop_type,
976: prop_xmlLang, };
977: return propDescriptors;
978:
979: } catch (IntrospectionException e) {
980: e.printStackTrace();
981: return null;
982: }
983:
984: }
985:
986: }
987: //GEN-END:BeanInfo
|