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 ImageHyperlinkBeanInfoBase 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(),
0071: ImageHyperlinkBeanInfoBase.class.getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>ImageHyperlinkBeanInfoBase</code>.</p>
0075: */
0076: public ImageHyperlinkBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.ImageHyperlink.class;
0079: defaultPropertyName = "text";
0080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/ImageHyperlink_C16";
0081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/ImageHyperlink_C32";
0082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/ImageHyperlink_M16";
0083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/ImageHyperlink_M32";
0084:
0085: }
0086:
0087: /**
0088: * <p>The bean class that this BeanInfo represents.
0089: */
0090: protected Class beanClass;
0091:
0092: /**
0093: * <p>The cached BeanDescriptor.</p>
0094: */
0095: protected BeanDescriptor beanDescriptor;
0096:
0097: /**
0098: * <p>The index of the default property.</p>
0099: */
0100: protected int defaultPropertyIndex = -2;
0101:
0102: /**
0103: * <p>The name of the default property.</p>
0104: */
0105: protected String defaultPropertyName;
0106:
0107: /**
0108: * <p>The 16x16 color icon.</p>
0109: */
0110: protected String iconFileName_C16;
0111:
0112: /**
0113: * <p>The 32x32 color icon.</p>
0114: */
0115: protected String iconFileName_C32;
0116:
0117: /**
0118: * <p>The 16x16 monochrome icon.</p>
0119: */
0120: protected String iconFileName_M16;
0121:
0122: /**
0123: * <p>The 32x32 monochrome icon.</p>
0124: */
0125: protected String iconFileName_M32;
0126:
0127: /**
0128: * <p>The cached property descriptors.</p>
0129: */
0130: protected PropertyDescriptor[] propDescriptors;
0131:
0132: /**
0133: * <p>Return the <code>BeanDescriptor</code> for this bean.</p>
0134: */
0135: public BeanDescriptor getBeanDescriptor() {
0136:
0137: if (beanDescriptor != null) {
0138: return beanDescriptor;
0139: }
0140:
0141: beanDescriptor = new BeanDescriptor(beanClass);
0142: beanDescriptor.setDisplayName(resources
0143: .getString("ImageHyperlink_DisplayName"));
0144: beanDescriptor.setShortDescription(resources
0145: .getString("ImageHyperlink_Description"));
0146: beanDescriptor.setExpert(false);
0147: beanDescriptor.setHidden(false);
0148: beanDescriptor.setPreferred(false);
0149: beanDescriptor.setValue(
0150: Constants.BeanDescriptor.FACET_DESCRIPTORS,
0151: getFacetDescriptors());
0152: beanDescriptor.setValue(Constants.BeanDescriptor.HELP_KEY,
0153: "projrave_ui_elements_palette_bh_image_hyperlink");
0154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155: "imageHyperlink");
0156: beanDescriptor.setValue(Constants.BeanDescriptor.IS_CONTAINER,
0157: Boolean.TRUE);
0158: beanDescriptor
0159: .setValue(Constants.BeanDescriptor.PROPERTIES_HELP_KEY,
0160: "projrave_ui_elements_palette_bh_propsheets_bh_image_hyperlink_props");
0161: beanDescriptor.setValue(
0162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163: getCategoryDescriptors());
0164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165: "imageHyperlink");
0166: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_PREFIX,
0167: "ui");
0168: beanDescriptor.setValue(Constants.BeanDescriptor.TAGLIB_URI,
0169: "http://www.sun.com/web/ui");
0170:
0171: return beanDescriptor;
0172:
0173: }
0174:
0175: /**
0176: * <p>Return the <code>CategoryDescriptor</code> array for the property categories of this component.</p>
0177: */
0178: private CategoryDescriptor[] getCategoryDescriptors() {
0179:
0180: return com.sun.rave.designtime.base.CategoryDescriptors
0181: .getDefaultCategoryDescriptors();
0182:
0183: }
0184:
0185: /**
0186: * <p>Return the index of the default property, or
0187: * -1 if there is no default property.</p>
0188: */
0189: public int getDefaultPropertyIndex() {
0190:
0191: if (defaultPropertyIndex > -2) {
0192: return defaultPropertyIndex;
0193: } else {
0194: if (defaultPropertyName == null) {
0195: defaultPropertyIndex = -1;
0196: } else {
0197: PropertyDescriptor pd[] = getPropertyDescriptors();
0198: for (int i = 0; i < pd.length; i++) {
0199: if (defaultPropertyName.equals(pd[i].getName())) {
0200: defaultPropertyIndex = i;
0201: break;
0202: }
0203: }
0204: }
0205: }
0206: return defaultPropertyIndex;
0207: }
0208:
0209: /**
0210: * <p>The cached facet descriptors.</p>
0211: */
0212: protected FacetDescriptor[] facetDescriptors;
0213:
0214: /**
0215: * <p>Return the <code>FacetDescriptor</code>s for this bean.</p>
0216: */
0217: public FacetDescriptor[] getFacetDescriptors() {
0218:
0219: if (facetDescriptors != null) {
0220: return facetDescriptors;
0221: }
0222: facetDescriptors = new FacetDescriptor[] {};
0223: return facetDescriptors;
0224:
0225: }
0226:
0227: /**
0228: * <p>Return the specified image (if any)
0229: * for this component class.</p>
0230: */
0231: public Image getIcon(int kind) {
0232:
0233: String name;
0234: switch (kind) {
0235: case ICON_COLOR_16x16:
0236: name = iconFileName_C16;
0237: break;
0238: case ICON_COLOR_32x32:
0239: name = iconFileName_C32;
0240: break;
0241: case ICON_MONO_16x16:
0242: name = iconFileName_M16;
0243: break;
0244: case ICON_MONO_32x32:
0245: name = iconFileName_M32;
0246: break;
0247: default:
0248: name = null;
0249: break;
0250: }
0251: if (name == null) {
0252: return null;
0253: }
0254:
0255: Image image = loadImage(name + ".png");
0256: if (image == null) {
0257: image = loadImage(name + ".gif");
0258: }
0259: return image;
0260:
0261: }
0262:
0263: /**
0264: * <p>Return a class loaded by name via the class loader that loaded this class.</p>
0265: */
0266: private java.lang.Class loadClass(java.lang.String name) {
0267:
0268: try {
0269: return Class.forName(name);
0270: } catch (ClassNotFoundException e) {
0271: throw new RuntimeException(e);
0272: }
0273:
0274: }
0275:
0276: /**
0277: * <p>Return the <code>PropertyDescriptor</code>s for this bean.</p>
0278: */
0279: public PropertyDescriptor[] getPropertyDescriptors() {
0280:
0281: if (propDescriptors != null) {
0282: return propDescriptors;
0283: }
0284: AttributeDescriptor attrib = null;
0285:
0286: try {
0287:
0288: PropertyDescriptor prop_align = new PropertyDescriptor(
0289: "align", beanClass, "getAlign", "setAlign");
0290: prop_align.setDisplayName(resources
0291: .getString("ImageHyperlink_align_DisplayName"));
0292: prop_align.setShortDescription(resources
0293: .getString("ImageHyperlink_align_Description"));
0294: prop_align
0295: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0296: prop_align.setExpert(false);
0297: prop_align.setHidden(false);
0298: prop_align.setPreferred(false);
0299: attrib = new AttributeDescriptor("align", false, null, true);
0300: prop_align.setValue(
0301: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0302: attrib);
0303: prop_align
0304: .setValue(
0305: Constants.PropertyDescriptor.CATEGORY,
0306: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0307: prop_align
0308: .setValue(
0309: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0310: com.sun.rave.propertyeditors.domains.HtmlAlignDomain.class);
0311:
0312: PropertyDescriptor prop_alt = new PropertyDescriptor("alt",
0313: beanClass, "getAlt", "setAlt");
0314: prop_alt.setDisplayName(resources
0315: .getString("ImageHyperlink_alt_DisplayName"));
0316: prop_alt.setShortDescription(resources
0317: .getString("ImageHyperlink_alt_Description"));
0318: prop_alt
0319: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0320: prop_alt.setExpert(false);
0321: prop_alt.setHidden(false);
0322: prop_alt.setPreferred(false);
0323: attrib = new AttributeDescriptor("alt", false, null, true);
0324: prop_alt.setValue(
0325: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0326: attrib);
0327: prop_alt
0328: .setValue(
0329: Constants.PropertyDescriptor.CATEGORY,
0330: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0331:
0332: PropertyDescriptor prop_border = new PropertyDescriptor(
0333: "border", beanClass, "getBorder", "setBorder");
0334: prop_border.setDisplayName(resources
0335: .getString("ImageHyperlink_border_DisplayName"));
0336: prop_border.setShortDescription(resources
0337: .getString("ImageHyperlink_border_Description"));
0338: prop_border
0339: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0340: prop_border.setExpert(false);
0341: prop_border.setHidden(false);
0342: prop_border.setPreferred(false);
0343: attrib = new AttributeDescriptor("border", false, null,
0344: true);
0345: prop_border.setValue(
0346: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0347: attrib);
0348: prop_border
0349: .setValue(
0350: Constants.PropertyDescriptor.CATEGORY,
0351: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0352: prop_border.setValue(
0353: "com.sun.rave.propertyeditors.MIN_VALUE", "0");
0354:
0355: PropertyDescriptor prop_height = new PropertyDescriptor(
0356: "height", beanClass, "getHeight", "setHeight");
0357: prop_height.setDisplayName(resources
0358: .getString("ImageHyperlink_height_DisplayName"));
0359: prop_height.setShortDescription(resources
0360: .getString("ImageHyperlink_height_Description"));
0361: prop_height
0362: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0363: prop_height.setExpert(false);
0364: prop_height.setHidden(false);
0365: prop_height.setPreferred(false);
0366: attrib = new AttributeDescriptor("height", false, null,
0367: true);
0368: prop_height.setValue(
0369: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0370: attrib);
0371: prop_height
0372: .setValue(
0373: Constants.PropertyDescriptor.CATEGORY,
0374: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0375: prop_height.setValue(
0376: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0377:
0378: PropertyDescriptor prop_hspace = new PropertyDescriptor(
0379: "hspace", beanClass, "getHspace", "setHspace");
0380: prop_hspace.setDisplayName(resources
0381: .getString("ImageHyperlink_hspace_DisplayName"));
0382: prop_hspace.setShortDescription(resources
0383: .getString("ImageHyperlink_hspace_Description"));
0384: prop_hspace
0385: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0386: prop_hspace.setExpert(false);
0387: prop_hspace.setHidden(false);
0388: prop_hspace.setPreferred(false);
0389: attrib = new AttributeDescriptor("hspace", false, null,
0390: true);
0391: prop_hspace.setValue(
0392: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0393: attrib);
0394: prop_hspace
0395: .setValue(
0396: Constants.PropertyDescriptor.CATEGORY,
0397: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0398: prop_hspace.setValue(
0399: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0400:
0401: PropertyDescriptor prop_icon = new PropertyDescriptor(
0402: "icon", beanClass, "getIcon", "setIcon");
0403: prop_icon.setDisplayName(resources
0404: .getString("ImageHyperlink_icon_DisplayName"));
0405: prop_icon.setShortDescription(resources
0406: .getString("ImageHyperlink_icon_Description"));
0407: prop_icon
0408: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0409: prop_icon.setExpert(false);
0410: prop_icon.setHidden(false);
0411: prop_icon.setPreferred(false);
0412: attrib = new AttributeDescriptor("icon", false, null, true);
0413: prop_icon.setValue(
0414: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0415: attrib);
0416: prop_icon
0417: .setValue(
0418: Constants.PropertyDescriptor.CATEGORY,
0419: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0420: prop_icon
0421: .setValue(
0422: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0423: org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.ThemeIconsDomain.class);
0424:
0425: PropertyDescriptor prop_imageURL = new PropertyDescriptor(
0426: "imageURL", beanClass, "getImageURL", "setImageURL");
0427: prop_imageURL.setDisplayName(resources
0428: .getString("ImageHyperlink_imageURL_DisplayName"));
0429: prop_imageURL.setShortDescription(resources
0430: .getString("ImageHyperlink_imageURL_Description"));
0431: prop_imageURL
0432: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.ImageUrlPropertyEditor"));
0433: prop_imageURL.setExpert(false);
0434: prop_imageURL.setHidden(false);
0435: prop_imageURL.setPreferred(false);
0436: attrib = new AttributeDescriptor("imageURL", false, null,
0437: true);
0438: prop_imageURL.setValue(
0439: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0440: attrib);
0441: prop_imageURL
0442: .setValue(
0443: Constants.PropertyDescriptor.CATEGORY,
0444: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0445:
0446: PropertyDescriptor prop_textPosition = new PropertyDescriptor(
0447: "textPosition", beanClass, "getTextPosition",
0448: "setTextPosition");
0449: prop_textPosition
0450: .setDisplayName(resources
0451: .getString("ImageHyperlink_textPosition_DisplayName"));
0452: prop_textPosition
0453: .setShortDescription(resources
0454: .getString("ImageHyperlink_textPosition_Description"));
0455: prop_textPosition
0456: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0457: prop_textPosition.setExpert(false);
0458: prop_textPosition.setHidden(false);
0459: prop_textPosition.setPreferred(false);
0460: attrib = new AttributeDescriptor("textPosition", false,
0461: "\"right\"", true);
0462: prop_textPosition.setValue(
0463: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0464: attrib);
0465: prop_textPosition
0466: .setValue(
0467: Constants.PropertyDescriptor.CATEGORY,
0468: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0469: prop_textPosition
0470: .setValue(
0471: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0472: com.sun.rave.propertyeditors.domains.HtmlHorizontalAlignDomain.class);
0473:
0474: PropertyDescriptor prop_value = new PropertyDescriptor(
0475: "value", beanClass, "getValue", "setValue");
0476: prop_value.setDisplayName(resources
0477: .getString("ImageHyperlink_value_DisplayName"));
0478: prop_value.setShortDescription(resources
0479: .getString("ImageHyperlink_value_Description"));
0480: prop_value.setExpert(false);
0481: prop_value.setHidden(true);
0482: prop_value.setPreferred(false);
0483: attrib = new AttributeDescriptor("value", false, null, true);
0484: prop_value.setValue(
0485: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0486: attrib);
0487: prop_value
0488: .setValue(
0489: Constants.PropertyDescriptor.CATEGORY,
0490: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0491:
0492: PropertyDescriptor prop_visible = new PropertyDescriptor(
0493: "visible", beanClass, "isVisible", "setVisible");
0494: prop_visible.setDisplayName(resources
0495: .getString("ImageHyperlink_visible_DisplayName"));
0496: prop_visible.setShortDescription(resources
0497: .getString("ImageHyperlink_visible_Description"));
0498: prop_visible.setExpert(false);
0499: prop_visible.setHidden(false);
0500: prop_visible.setPreferred(false);
0501: attrib = new AttributeDescriptor("visible", false, "true",
0502: true);
0503: prop_visible.setValue(
0504: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0505: attrib);
0506: prop_visible
0507: .setValue(
0508: Constants.PropertyDescriptor.CATEGORY,
0509: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0510:
0511: PropertyDescriptor prop_vspace = new PropertyDescriptor(
0512: "vspace", beanClass, "getVspace", "setVspace");
0513: prop_vspace.setDisplayName(resources
0514: .getString("ImageHyperlink_vspace_DisplayName"));
0515: prop_vspace.setShortDescription(resources
0516: .getString("ImageHyperlink_vspace_Description"));
0517: prop_vspace
0518: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0519: prop_vspace.setExpert(false);
0520: prop_vspace.setHidden(false);
0521: prop_vspace.setPreferred(false);
0522: attrib = new AttributeDescriptor("vspace", false, null,
0523: true);
0524: prop_vspace.setValue(
0525: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0526: attrib);
0527: prop_vspace
0528: .setValue(
0529: Constants.PropertyDescriptor.CATEGORY,
0530: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0531: prop_vspace.setValue(
0532: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0533:
0534: PropertyDescriptor prop_width = new PropertyDescriptor(
0535: "width", beanClass, "getWidth", "setWidth");
0536: prop_width.setDisplayName(resources
0537: .getString("ImageHyperlink_width_DisplayName"));
0538: prop_width.setShortDescription(resources
0539: .getString("ImageHyperlink_width_Description"));
0540: prop_width
0541: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0542: prop_width.setExpert(false);
0543: prop_width.setHidden(false);
0544: prop_width.setPreferred(false);
0545: attrib = new AttributeDescriptor("width", false, null, true);
0546: prop_width.setValue(
0547: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0548: attrib);
0549: prop_width
0550: .setValue(
0551: Constants.PropertyDescriptor.CATEGORY,
0552: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0553: prop_width.setValue(
0554: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0555:
0556: PropertyDescriptor prop_action = new PropertyDescriptor(
0557: "action", beanClass, "getAction", "setAction");
0558: prop_action.setDisplayName(resources
0559: .getString("ImageHyperlink_action_DisplayName"));
0560: prop_action.setShortDescription(resources
0561: .getString("ImageHyperlink_action_Description"));
0562: prop_action.setExpert(false);
0563: prop_action.setHidden(false);
0564: prop_action.setPreferred(false);
0565: attrib = new AttributeDescriptor("action", false, null,
0566: true);
0567: prop_action.setValue(
0568: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0569: attrib);
0570: prop_action
0571: .setValue(
0572: Constants.PropertyDescriptor.CATEGORY,
0573: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0574:
0575: PropertyDescriptor prop_actionListener = new PropertyDescriptor(
0576: "actionListener", beanClass, "getActionListener",
0577: "setActionListener");
0578: prop_actionListener
0579: .setDisplayName(resources
0580: .getString("ImageHyperlink_actionListener_DisplayName"));
0581: prop_actionListener
0582: .setShortDescription(resources
0583: .getString("ImageHyperlink_actionListener_Description"));
0584: prop_actionListener
0585: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
0586: prop_actionListener.setExpert(false);
0587: prop_actionListener.setHidden(false);
0588: prop_actionListener.setPreferred(false);
0589: attrib = new AttributeDescriptor("actionListener", false,
0590: null, true);
0591: prop_actionListener.setValue(
0592: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0593: attrib);
0594: prop_actionListener
0595: .setValue(
0596: Constants.PropertyDescriptor.CATEGORY,
0597: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0598:
0599: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0600: "disabled", beanClass, "isDisabled", "setDisabled");
0601: prop_disabled.setDisplayName(resources
0602: .getString("ImageHyperlink_disabled_DisplayName"));
0603: prop_disabled.setShortDescription(resources
0604: .getString("ImageHyperlink_disabled_Description"));
0605: prop_disabled.setExpert(false);
0606: prop_disabled.setHidden(false);
0607: prop_disabled.setPreferred(false);
0608: attrib = new AttributeDescriptor("disabled", false, null,
0609: true);
0610: prop_disabled.setValue(
0611: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0612: attrib);
0613: prop_disabled
0614: .setValue(
0615: Constants.PropertyDescriptor.CATEGORY,
0616: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0617:
0618: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0619: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0620: prop_onBlur.setDisplayName(resources
0621: .getString("ImageHyperlink_onBlur_DisplayName"));
0622: prop_onBlur.setShortDescription(resources
0623: .getString("ImageHyperlink_onBlur_Description"));
0624: prop_onBlur
0625: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0626: prop_onBlur.setExpert(false);
0627: prop_onBlur.setHidden(false);
0628: prop_onBlur.setPreferred(false);
0629: attrib = new AttributeDescriptor("onBlur", false, null,
0630: true);
0631: prop_onBlur.setValue(
0632: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0633: attrib);
0634: prop_onBlur
0635: .setValue(
0636: Constants.PropertyDescriptor.CATEGORY,
0637: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0638:
0639: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0640: "onClick", beanClass, "getOnClick", "setOnClick");
0641: prop_onClick.setDisplayName(resources
0642: .getString("ImageHyperlink_onClick_DisplayName"));
0643: prop_onClick.setShortDescription(resources
0644: .getString("ImageHyperlink_onClick_Description"));
0645: prop_onClick
0646: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0647: prop_onClick.setExpert(false);
0648: prop_onClick.setHidden(false);
0649: prop_onClick.setPreferred(false);
0650: attrib = new AttributeDescriptor("onClick", false, null,
0651: true);
0652: prop_onClick.setValue(
0653: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0654: attrib);
0655: prop_onClick
0656: .setValue(
0657: Constants.PropertyDescriptor.CATEGORY,
0658: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0659:
0660: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0661: "onDblClick", beanClass, "getOnDblClick",
0662: "setOnDblClick");
0663: prop_onDblClick
0664: .setDisplayName(resources
0665: .getString("ImageHyperlink_onDblClick_DisplayName"));
0666: prop_onDblClick
0667: .setShortDescription(resources
0668: .getString("ImageHyperlink_onDblClick_Description"));
0669: prop_onDblClick
0670: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0671: prop_onDblClick.setExpert(false);
0672: prop_onDblClick.setHidden(true);
0673: prop_onDblClick.setPreferred(false);
0674: attrib = new AttributeDescriptor("onDblClick", false, null,
0675: true);
0676: prop_onDblClick.setValue(
0677: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0678: attrib);
0679: prop_onDblClick
0680: .setValue(
0681: Constants.PropertyDescriptor.CATEGORY,
0682: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0683:
0684: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0685: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0686: prop_onFocus.setDisplayName(resources
0687: .getString("ImageHyperlink_onFocus_DisplayName"));
0688: prop_onFocus.setShortDescription(resources
0689: .getString("ImageHyperlink_onFocus_Description"));
0690: prop_onFocus
0691: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0692: prop_onFocus.setExpert(false);
0693: prop_onFocus.setHidden(false);
0694: prop_onFocus.setPreferred(false);
0695: attrib = new AttributeDescriptor("onFocus", false, null,
0696: true);
0697: prop_onFocus.setValue(
0698: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0699: attrib);
0700: prop_onFocus
0701: .setValue(
0702: Constants.PropertyDescriptor.CATEGORY,
0703: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0704:
0705: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0706: "onKeyDown", beanClass, "getOnKeyDown",
0707: "setOnKeyDown");
0708: prop_onKeyDown.setDisplayName(resources
0709: .getString("ImageHyperlink_onKeyDown_DisplayName"));
0710: prop_onKeyDown.setShortDescription(resources
0711: .getString("ImageHyperlink_onKeyDown_Description"));
0712: prop_onKeyDown
0713: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0714: prop_onKeyDown.setExpert(false);
0715: prop_onKeyDown.setHidden(false);
0716: prop_onKeyDown.setPreferred(false);
0717: attrib = new AttributeDescriptor("onKeyDown", false, null,
0718: true);
0719: prop_onKeyDown.setValue(
0720: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0721: attrib);
0722: prop_onKeyDown
0723: .setValue(
0724: Constants.PropertyDescriptor.CATEGORY,
0725: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0726:
0727: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0728: "onKeyPress", beanClass, "getOnKeyPress",
0729: "setOnKeyPress");
0730: prop_onKeyPress
0731: .setDisplayName(resources
0732: .getString("ImageHyperlink_onKeyPress_DisplayName"));
0733: prop_onKeyPress
0734: .setShortDescription(resources
0735: .getString("ImageHyperlink_onKeyPress_Description"));
0736: prop_onKeyPress
0737: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0738: prop_onKeyPress.setExpert(false);
0739: prop_onKeyPress.setHidden(false);
0740: prop_onKeyPress.setPreferred(false);
0741: attrib = new AttributeDescriptor("onKeyPress", false, null,
0742: true);
0743: prop_onKeyPress.setValue(
0744: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0745: attrib);
0746: prop_onKeyPress
0747: .setValue(
0748: Constants.PropertyDescriptor.CATEGORY,
0749: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0750:
0751: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0752: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0753: prop_onKeyUp.setDisplayName(resources
0754: .getString("ImageHyperlink_onKeyUp_DisplayName"));
0755: prop_onKeyUp.setShortDescription(resources
0756: .getString("ImageHyperlink_onKeyUp_Description"));
0757: prop_onKeyUp
0758: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0759: prop_onKeyUp.setExpert(false);
0760: prop_onKeyUp.setHidden(false);
0761: prop_onKeyUp.setPreferred(false);
0762: attrib = new AttributeDescriptor("onKeyUp", false, null,
0763: true);
0764: prop_onKeyUp.setValue(
0765: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0766: attrib);
0767: prop_onKeyUp
0768: .setValue(
0769: Constants.PropertyDescriptor.CATEGORY,
0770: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0771:
0772: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0773: "onMouseDown", beanClass, "getOnMouseDown",
0774: "setOnMouseDown");
0775: prop_onMouseDown
0776: .setDisplayName(resources
0777: .getString("ImageHyperlink_onMouseDown_DisplayName"));
0778: prop_onMouseDown
0779: .setShortDescription(resources
0780: .getString("ImageHyperlink_onMouseDown_Description"));
0781: prop_onMouseDown
0782: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0783: prop_onMouseDown.setExpert(false);
0784: prop_onMouseDown.setHidden(false);
0785: prop_onMouseDown.setPreferred(false);
0786: attrib = new AttributeDescriptor("onMouseDown", false,
0787: null, true);
0788: prop_onMouseDown.setValue(
0789: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0790: attrib);
0791: prop_onMouseDown
0792: .setValue(
0793: Constants.PropertyDescriptor.CATEGORY,
0794: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0795:
0796: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0797: "onMouseMove", beanClass, "getOnMouseMove",
0798: "setOnMouseMove");
0799: prop_onMouseMove
0800: .setDisplayName(resources
0801: .getString("ImageHyperlink_onMouseMove_DisplayName"));
0802: prop_onMouseMove
0803: .setShortDescription(resources
0804: .getString("ImageHyperlink_onMouseMove_Description"));
0805: prop_onMouseMove
0806: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0807: prop_onMouseMove.setExpert(false);
0808: prop_onMouseMove.setHidden(false);
0809: prop_onMouseMove.setPreferred(false);
0810: attrib = new AttributeDescriptor("onMouseMove", false,
0811: null, true);
0812: prop_onMouseMove.setValue(
0813: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0814: attrib);
0815: prop_onMouseMove
0816: .setValue(
0817: Constants.PropertyDescriptor.CATEGORY,
0818: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0819:
0820: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0821: "onMouseOut", beanClass, "getOnMouseOut",
0822: "setOnMouseOut");
0823: prop_onMouseOut
0824: .setDisplayName(resources
0825: .getString("ImageHyperlink_onMouseOut_DisplayName"));
0826: prop_onMouseOut
0827: .setShortDescription(resources
0828: .getString("ImageHyperlink_onMouseOut_Description"));
0829: prop_onMouseOut
0830: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0831: prop_onMouseOut.setExpert(false);
0832: prop_onMouseOut.setHidden(false);
0833: prop_onMouseOut.setPreferred(false);
0834: attrib = new AttributeDescriptor("onMouseOut", false, null,
0835: true);
0836: prop_onMouseOut.setValue(
0837: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0838: attrib);
0839: prop_onMouseOut
0840: .setValue(
0841: Constants.PropertyDescriptor.CATEGORY,
0842: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0843:
0844: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0845: "onMouseOver", beanClass, "getOnMouseOver",
0846: "setOnMouseOver");
0847: prop_onMouseOver
0848: .setDisplayName(resources
0849: .getString("ImageHyperlink_onMouseOver_DisplayName"));
0850: prop_onMouseOver
0851: .setShortDescription(resources
0852: .getString("ImageHyperlink_onMouseOver_Description"));
0853: prop_onMouseOver
0854: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0855: prop_onMouseOver.setExpert(false);
0856: prop_onMouseOver.setHidden(false);
0857: prop_onMouseOver.setPreferred(false);
0858: attrib = new AttributeDescriptor("onMouseOver", false,
0859: null, true);
0860: prop_onMouseOver.setValue(
0861: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0862: attrib);
0863: prop_onMouseOver
0864: .setValue(
0865: Constants.PropertyDescriptor.CATEGORY,
0866: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0867:
0868: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0869: "onMouseUp", beanClass, "getOnMouseUp",
0870: "setOnMouseUp");
0871: prop_onMouseUp.setDisplayName(resources
0872: .getString("ImageHyperlink_onMouseUp_DisplayName"));
0873: prop_onMouseUp.setShortDescription(resources
0874: .getString("ImageHyperlink_onMouseUp_Description"));
0875: prop_onMouseUp
0876: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0877: prop_onMouseUp.setExpert(false);
0878: prop_onMouseUp.setHidden(false);
0879: prop_onMouseUp.setPreferred(false);
0880: attrib = new AttributeDescriptor("onMouseUp", false, null,
0881: true);
0882: prop_onMouseUp.setValue(
0883: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0884: attrib);
0885: prop_onMouseUp
0886: .setValue(
0887: Constants.PropertyDescriptor.CATEGORY,
0888: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0889:
0890: PropertyDescriptor prop_shape = new PropertyDescriptor(
0891: "shape", beanClass, "getShape", "setShape");
0892: prop_shape.setDisplayName(resources
0893: .getString("ImageHyperlink_shape_DisplayName"));
0894: prop_shape.setShortDescription(resources
0895: .getString("ImageHyperlink_shape_Description"));
0896: prop_shape.setExpert(false);
0897: prop_shape.setHidden(true);
0898: prop_shape.setPreferred(false);
0899: prop_shape
0900: .setValue(
0901: Constants.PropertyDescriptor.CATEGORY,
0902: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0903:
0904: PropertyDescriptor prop_style = new PropertyDescriptor(
0905: "style", beanClass, "getStyle", "setStyle");
0906: prop_style.setDisplayName(resources
0907: .getString("ImageHyperlink_style_DisplayName"));
0908: prop_style.setShortDescription(resources
0909: .getString("ImageHyperlink_style_Description"));
0910: prop_style
0911: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0912: prop_style.setExpert(false);
0913: prop_style.setHidden(false);
0914: prop_style.setPreferred(false);
0915: attrib = new AttributeDescriptor("style", false, null, true);
0916: prop_style.setValue(
0917: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0918: attrib);
0919: prop_style
0920: .setValue(
0921: Constants.PropertyDescriptor.CATEGORY,
0922: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0923:
0924: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0925: "styleClass", beanClass, "getStyleClass",
0926: "setStyleClass");
0927: prop_styleClass
0928: .setDisplayName(resources
0929: .getString("ImageHyperlink_styleClass_DisplayName"));
0930: prop_styleClass
0931: .setShortDescription(resources
0932: .getString("ImageHyperlink_styleClass_Description"));
0933: prop_styleClass
0934: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0935: prop_styleClass.setExpert(false);
0936: prop_styleClass.setHidden(false);
0937: prop_styleClass.setPreferred(false);
0938: attrib = new AttributeDescriptor("styleClass", false, null,
0939: true);
0940: prop_styleClass.setValue(
0941: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0942: attrib);
0943: prop_styleClass
0944: .setValue(
0945: Constants.PropertyDescriptor.CATEGORY,
0946: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0947:
0948: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0949: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0950: prop_tabIndex.setDisplayName(resources
0951: .getString("ImageHyperlink_tabIndex_DisplayName"));
0952: prop_tabIndex.setShortDescription(resources
0953: .getString("ImageHyperlink_tabIndex_Description"));
0954: prop_tabIndex
0955: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0956: prop_tabIndex.setExpert(false);
0957: prop_tabIndex.setHidden(false);
0958: prop_tabIndex.setPreferred(false);
0959: attrib = new AttributeDescriptor("tabIndex", false, null,
0960: true);
0961: prop_tabIndex.setValue(
0962: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0963: attrib);
0964: prop_tabIndex
0965: .setValue(
0966: Constants.PropertyDescriptor.CATEGORY,
0967: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0968: prop_tabIndex.setValue(
0969: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0970:
0971: PropertyDescriptor prop_target = new PropertyDescriptor(
0972: "target", beanClass, "getTarget", "setTarget");
0973: prop_target.setDisplayName(resources
0974: .getString("ImageHyperlink_target_DisplayName"));
0975: prop_target.setShortDescription(resources
0976: .getString("ImageHyperlink_target_Description"));
0977: prop_target
0978: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0979: prop_target.setExpert(false);
0980: prop_target.setHidden(false);
0981: prop_target.setPreferred(false);
0982: attrib = new AttributeDescriptor("target", false, null,
0983: true);
0984: prop_target.setValue(
0985: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0986: attrib);
0987: prop_target
0988: .setValue(
0989: Constants.PropertyDescriptor.CATEGORY,
0990: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0991: prop_target
0992: .setValue(
0993: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0994: com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain.class);
0995:
0996: PropertyDescriptor prop_text = new PropertyDescriptor(
0997: "text", beanClass, "getText", "setText");
0998: prop_text.setDisplayName(resources
0999: .getString("ImageHyperlink_text_DisplayName"));
1000: prop_text.setShortDescription(resources
1001: .getString("ImageHyperlink_text_Description"));
1002: prop_text
1003: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
1004: prop_text.setExpert(false);
1005: prop_text.setHidden(false);
1006: prop_text.setPreferred(false);
1007: attrib = new AttributeDescriptor("text", false, null, true);
1008: prop_text.setValue(
1009: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1010: attrib);
1011: prop_text
1012: .setValue(
1013: Constants.PropertyDescriptor.CATEGORY,
1014: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
1015:
1016: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
1017: "toolTip", beanClass, "getToolTip", "setToolTip");
1018: prop_toolTip.setDisplayName(resources
1019: .getString("ImageHyperlink_toolTip_DisplayName"));
1020: prop_toolTip.setShortDescription(resources
1021: .getString("ImageHyperlink_toolTip_Description"));
1022: prop_toolTip
1023: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
1024: prop_toolTip.setExpert(false);
1025: prop_toolTip.setHidden(false);
1026: prop_toolTip.setPreferred(false);
1027: attrib = new AttributeDescriptor("toolTip", false, null,
1028: true);
1029: prop_toolTip.setValue(
1030: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1031: attrib);
1032: prop_toolTip
1033: .setValue(
1034: Constants.PropertyDescriptor.CATEGORY,
1035: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
1036:
1037: PropertyDescriptor prop_type = new PropertyDescriptor(
1038: "type", beanClass, "getType", "setType");
1039: prop_type.setDisplayName(resources
1040: .getString("ImageHyperlink_type_DisplayName"));
1041: prop_type.setShortDescription(resources
1042: .getString("ImageHyperlink_type_Description"));
1043: prop_type
1044: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
1045: prop_type.setExpert(false);
1046: prop_type.setHidden(false);
1047: prop_type.setPreferred(false);
1048: attrib = new AttributeDescriptor("type", false, null, true);
1049: prop_type.setValue(
1050: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1051: attrib);
1052: prop_type
1053: .setValue(
1054: Constants.PropertyDescriptor.CATEGORY,
1055: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1056: prop_type
1057: .setValue(
1058: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
1059: com.sun.rave.propertyeditors.domains.MimeTypesDomain.class);
1060:
1061: PropertyDescriptor prop_url = new PropertyDescriptor("url",
1062: beanClass, "getUrl", "setUrl");
1063: prop_url.setDisplayName(resources
1064: .getString("ImageHyperlink_url_DisplayName"));
1065: prop_url.setShortDescription(resources
1066: .getString("ImageHyperlink_url_Description"));
1067: prop_url
1068: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.SunWebUrlPropertyEditor"));
1069: prop_url.setExpert(false);
1070: prop_url.setHidden(false);
1071: prop_url.setPreferred(false);
1072: attrib = new AttributeDescriptor("url", false, null, true);
1073: prop_url.setValue(
1074: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1075: attrib);
1076: prop_url
1077: .setValue(
1078: Constants.PropertyDescriptor.CATEGORY,
1079: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
1080:
1081: PropertyDescriptor prop_urlLang = new PropertyDescriptor(
1082: "urlLang", beanClass, "getUrlLang", "setUrlLang");
1083: prop_urlLang.setDisplayName(resources
1084: .getString("ImageHyperlink_urlLang_DisplayName"));
1085: prop_urlLang.setShortDescription(resources
1086: .getString("ImageHyperlink_urlLang_Description"));
1087: prop_urlLang
1088: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
1089: prop_urlLang.setExpert(false);
1090: prop_urlLang.setHidden(false);
1091: prop_urlLang.setPreferred(false);
1092: attrib = new AttributeDescriptor("urlLang", false, null,
1093: true);
1094: prop_urlLang.setValue(
1095: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1096: attrib);
1097: prop_urlLang
1098: .setValue(
1099: Constants.PropertyDescriptor.CATEGORY,
1100: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1101: prop_urlLang
1102: .setValue(
1103: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
1104: com.sun.rave.propertyeditors.domains.LanguagesDomain.class);
1105:
1106: PropertyDescriptor prop_attributes = new PropertyDescriptor(
1107: "attributes", beanClass, "getAttributes", null);
1108: prop_attributes
1109: .setDisplayName(resources
1110: .getString("ImageHyperlink_attributes_DisplayName"));
1111: prop_attributes
1112: .setShortDescription(resources
1113: .getString("ImageHyperlink_attributes_Description"));
1114: prop_attributes.setExpert(false);
1115: prop_attributes.setHidden(true);
1116: prop_attributes.setPreferred(false);
1117: prop_attributes
1118: .setValue(
1119: Constants.PropertyDescriptor.CATEGORY,
1120: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1121:
1122: PropertyDescriptor prop_childCount = new PropertyDescriptor(
1123: "childCount", beanClass, "getChildCount", null);
1124: prop_childCount
1125: .setDisplayName(resources
1126: .getString("ImageHyperlink_childCount_DisplayName"));
1127: prop_childCount
1128: .setShortDescription(resources
1129: .getString("ImageHyperlink_childCount_Description"));
1130: prop_childCount.setExpert(false);
1131: prop_childCount.setHidden(true);
1132: prop_childCount.setPreferred(false);
1133: prop_childCount
1134: .setValue(
1135: Constants.PropertyDescriptor.CATEGORY,
1136: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1137:
1138: PropertyDescriptor prop_children = new PropertyDescriptor(
1139: "children", beanClass, "getChildren", null);
1140: prop_children.setDisplayName(resources
1141: .getString("ImageHyperlink_children_DisplayName"));
1142: prop_children.setShortDescription(resources
1143: .getString("ImageHyperlink_children_Description"));
1144: prop_children.setExpert(false);
1145: prop_children.setHidden(true);
1146: prop_children.setPreferred(false);
1147: prop_children
1148: .setValue(
1149: Constants.PropertyDescriptor.CATEGORY,
1150: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1151:
1152: PropertyDescriptor prop_facets = new PropertyDescriptor(
1153: "facets", beanClass, "getFacets", null);
1154: prop_facets.setDisplayName(resources
1155: .getString("ImageHyperlink_facets_DisplayName"));
1156: prop_facets.setShortDescription(resources
1157: .getString("ImageHyperlink_facets_Description"));
1158: prop_facets.setExpert(false);
1159: prop_facets.setHidden(true);
1160: prop_facets.setPreferred(false);
1161: prop_facets
1162: .setValue(
1163: Constants.PropertyDescriptor.CATEGORY,
1164: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1165:
1166: PropertyDescriptor prop_family = new PropertyDescriptor(
1167: "family", beanClass, "getFamily", null);
1168: prop_family.setDisplayName(resources
1169: .getString("ImageHyperlink_family_DisplayName"));
1170: prop_family.setShortDescription(resources
1171: .getString("ImageHyperlink_family_Description"));
1172: prop_family.setExpert(false);
1173: prop_family.setHidden(true);
1174: prop_family.setPreferred(false);
1175: prop_family
1176: .setValue(
1177: Constants.PropertyDescriptor.CATEGORY,
1178: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1179:
1180: PropertyDescriptor prop_id = new PropertyDescriptor("id",
1181: beanClass, "getId", "setId");
1182: prop_id.setDisplayName(resources
1183: .getString("ImageHyperlink_id_DisplayName"));
1184: prop_id.setShortDescription(resources
1185: .getString("ImageHyperlink_id_Description"));
1186: prop_id.setExpert(false);
1187: prop_id.setHidden(true);
1188: prop_id.setPreferred(false);
1189: attrib = new AttributeDescriptor("id", false, null, true);
1190: prop_id.setValue(
1191: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1192: attrib);
1193: prop_id
1194: .setValue(
1195: Constants.PropertyDescriptor.CATEGORY,
1196: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
1197:
1198: PropertyDescriptor prop_immediate = new PropertyDescriptor(
1199: "immediate", beanClass, "isImmediate",
1200: "setImmediate");
1201: prop_immediate.setDisplayName(resources
1202: .getString("ImageHyperlink_immediate_DisplayName"));
1203: prop_immediate.setShortDescription(resources
1204: .getString("ImageHyperlink_immediate_Description"));
1205: prop_immediate.setExpert(false);
1206: prop_immediate.setHidden(false);
1207: prop_immediate.setPreferred(false);
1208: attrib = new AttributeDescriptor("immediate", false, null,
1209: true);
1210: prop_immediate.setValue(
1211: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1212: attrib);
1213: prop_immediate
1214: .setValue(
1215: Constants.PropertyDescriptor.CATEGORY,
1216: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1217:
1218: PropertyDescriptor prop_parent = new PropertyDescriptor(
1219: "parent", beanClass, "getParent", null);
1220: prop_parent.setDisplayName(resources
1221: .getString("ImageHyperlink_parent_DisplayName"));
1222: prop_parent.setShortDescription(resources
1223: .getString("ImageHyperlink_parent_Description"));
1224: prop_parent.setExpert(false);
1225: prop_parent.setHidden(true);
1226: prop_parent.setPreferred(false);
1227: prop_parent
1228: .setValue(
1229: Constants.PropertyDescriptor.CATEGORY,
1230: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1231:
1232: PropertyDescriptor prop_rendered = new PropertyDescriptor(
1233: "rendered", beanClass, "isRendered", "setRendered");
1234: prop_rendered.setDisplayName(resources
1235: .getString("ImageHyperlink_rendered_DisplayName"));
1236: prop_rendered.setShortDescription(resources
1237: .getString("ImageHyperlink_rendered_Description"));
1238: prop_rendered.setExpert(false);
1239: prop_rendered.setHidden(false);
1240: prop_rendered.setPreferred(false);
1241: attrib = new AttributeDescriptor("rendered", false, null,
1242: true);
1243: prop_rendered.setValue(
1244: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
1245: attrib);
1246: prop_rendered
1247: .setValue(
1248: Constants.PropertyDescriptor.CATEGORY,
1249: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
1250:
1251: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
1252: "rendererType", beanClass, "getRendererType",
1253: "setRendererType");
1254: prop_rendererType
1255: .setDisplayName(resources
1256: .getString("ImageHyperlink_rendererType_DisplayName"));
1257: prop_rendererType
1258: .setShortDescription(resources
1259: .getString("ImageHyperlink_rendererType_Description"));
1260: prop_rendererType.setExpert(false);
1261: prop_rendererType.setHidden(true);
1262: prop_rendererType.setPreferred(false);
1263: prop_rendererType
1264: .setValue(
1265: Constants.PropertyDescriptor.CATEGORY,
1266: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1267:
1268: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
1269: "rendersChildren", beanClass, "getRendersChildren",
1270: null);
1271: prop_rendersChildren
1272: .setDisplayName(resources
1273: .getString("ImageHyperlink_rendersChildren_DisplayName"));
1274: prop_rendersChildren
1275: .setShortDescription(resources
1276: .getString("ImageHyperlink_rendersChildren_Description"));
1277: prop_rendersChildren.setExpert(false);
1278: prop_rendersChildren.setHidden(true);
1279: prop_rendersChildren.setPreferred(false);
1280: prop_rendersChildren
1281: .setValue(
1282: Constants.PropertyDescriptor.CATEGORY,
1283: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1284:
1285: propDescriptors = new PropertyDescriptor[] { prop_action,
1286: prop_actionListener, prop_align, prop_alt,
1287: prop_attributes, prop_border, prop_childCount,
1288: prop_children, prop_disabled, prop_facets,
1289: prop_family, prop_height, prop_hspace, prop_icon,
1290: prop_id, prop_imageURL, prop_immediate,
1291: prop_onBlur, prop_onClick, prop_onDblClick,
1292: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1293: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1294: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1295: prop_parent, prop_rendered, prop_rendererType,
1296: prop_rendersChildren, prop_shape, prop_style,
1297: prop_styleClass, prop_tabIndex, prop_target,
1298: prop_text, prop_textPosition, prop_toolTip,
1299: prop_type, prop_url, prop_urlLang, prop_value,
1300: prop_visible, prop_vspace, prop_width, };
1301: return propDescriptors;
1302:
1303: } catch (IntrospectionException e) {
1304: e.printStackTrace();
1305: return null;
1306: }
1307:
1308: }
1309:
1310: }
1311: //GEN-END:BeanInfo
|