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 HyperlinkBeanInfoBase 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(), HyperlinkBeanInfoBase.class
0071: .getClassLoader());
0072:
0073: /**
0074: * <p>Construct a new <code>HyperlinkBeanInfoBase</code>.</p>
0075: */
0076: public HyperlinkBeanInfoBase() {
0077:
0078: beanClass = com.sun.rave.web.ui.component.Hyperlink.class;
0079: defaultPropertyName = "text";
0080: iconFileName_C16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Hyperlink_C16";
0081: iconFileName_C32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Hyperlink_C32";
0082: iconFileName_M16 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Hyperlink_M16";
0083: iconFileName_M32 = "/org/netbeans/modules/visualweb/web/ui/dt/component/Hyperlink_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("Hyperlink_DisplayName"));
0144: beanDescriptor.setShortDescription(resources
0145: .getString("Hyperlink_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_hyperlink");
0154: beanDescriptor.setValue(Constants.BeanDescriptor.INSTANCE_NAME,
0155: "hyperlink");
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_hyperlink_props");
0161: beanDescriptor.setValue(
0162: Constants.BeanDescriptor.PROPERTY_CATEGORIES,
0163: getCategoryDescriptors());
0164: beanDescriptor.setValue(Constants.BeanDescriptor.TAG_NAME,
0165: "hyperlink");
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_action = new PropertyDescriptor(
0289: "action", beanClass, "getAction", "setAction");
0290: prop_action.setDisplayName(resources
0291: .getString("Hyperlink_action_DisplayName"));
0292: prop_action.setShortDescription(resources
0293: .getString("Hyperlink_action_Description"));
0294: prop_action.setExpert(false);
0295: prop_action.setHidden(false);
0296: prop_action.setPreferred(false);
0297: attrib = new AttributeDescriptor("action", false, null,
0298: true);
0299: prop_action.setValue(
0300: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0301: attrib);
0302: prop_action
0303: .setValue(
0304: Constants.PropertyDescriptor.CATEGORY,
0305: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0306:
0307: PropertyDescriptor prop_actionListener = new PropertyDescriptor(
0308: "actionListener", beanClass, "getActionListener",
0309: "setActionListener");
0310: prop_actionListener.setDisplayName(resources
0311: .getString("Hyperlink_actionListener_DisplayName"));
0312: prop_actionListener.setShortDescription(resources
0313: .getString("Hyperlink_actionListener_Description"));
0314: prop_actionListener
0315: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.MethodBindingPropertyEditor"));
0316: prop_actionListener.setExpert(false);
0317: prop_actionListener.setHidden(false);
0318: prop_actionListener.setPreferred(false);
0319: attrib = new AttributeDescriptor("actionListener", false,
0320: null, true);
0321: prop_actionListener.setValue(
0322: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0323: attrib);
0324: prop_actionListener
0325: .setValue(
0326: Constants.PropertyDescriptor.CATEGORY,
0327: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0328:
0329: PropertyDescriptor prop_disabled = new PropertyDescriptor(
0330: "disabled", beanClass, "isDisabled", "setDisabled");
0331: prop_disabled.setDisplayName(resources
0332: .getString("Hyperlink_disabled_DisplayName"));
0333: prop_disabled.setShortDescription(resources
0334: .getString("Hyperlink_disabled_Description"));
0335: prop_disabled.setExpert(false);
0336: prop_disabled.setHidden(false);
0337: prop_disabled.setPreferred(false);
0338: attrib = new AttributeDescriptor("disabled", false, null,
0339: true);
0340: prop_disabled.setValue(
0341: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0342: attrib);
0343: prop_disabled
0344: .setValue(
0345: Constants.PropertyDescriptor.CATEGORY,
0346: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0347:
0348: PropertyDescriptor prop_onBlur = new PropertyDescriptor(
0349: "onBlur", beanClass, "getOnBlur", "setOnBlur");
0350: prop_onBlur.setDisplayName(resources
0351: .getString("Hyperlink_onBlur_DisplayName"));
0352: prop_onBlur.setShortDescription(resources
0353: .getString("Hyperlink_onBlur_Description"));
0354: prop_onBlur
0355: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0356: prop_onBlur.setExpert(false);
0357: prop_onBlur.setHidden(false);
0358: prop_onBlur.setPreferred(false);
0359: attrib = new AttributeDescriptor("onBlur", false, null,
0360: true);
0361: prop_onBlur.setValue(
0362: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0363: attrib);
0364: prop_onBlur
0365: .setValue(
0366: Constants.PropertyDescriptor.CATEGORY,
0367: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0368:
0369: PropertyDescriptor prop_onClick = new PropertyDescriptor(
0370: "onClick", beanClass, "getOnClick", "setOnClick");
0371: prop_onClick.setDisplayName(resources
0372: .getString("Hyperlink_onClick_DisplayName"));
0373: prop_onClick.setShortDescription(resources
0374: .getString("Hyperlink_onClick_Description"));
0375: prop_onClick
0376: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0377: prop_onClick.setExpert(false);
0378: prop_onClick.setHidden(false);
0379: prop_onClick.setPreferred(false);
0380: attrib = new AttributeDescriptor("onClick", false, null,
0381: true);
0382: prop_onClick.setValue(
0383: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0384: attrib);
0385: prop_onClick
0386: .setValue(
0387: Constants.PropertyDescriptor.CATEGORY,
0388: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0389:
0390: PropertyDescriptor prop_onDblClick = new PropertyDescriptor(
0391: "onDblClick", beanClass, "getOnDblClick",
0392: "setOnDblClick");
0393: prop_onDblClick.setDisplayName(resources
0394: .getString("Hyperlink_onDblClick_DisplayName"));
0395: prop_onDblClick.setShortDescription(resources
0396: .getString("Hyperlink_onDblClick_Description"));
0397: prop_onDblClick
0398: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0399: prop_onDblClick.setExpert(false);
0400: prop_onDblClick.setHidden(true);
0401: prop_onDblClick.setPreferred(false);
0402: attrib = new AttributeDescriptor("onDblClick", false, null,
0403: true);
0404: prop_onDblClick.setValue(
0405: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0406: attrib);
0407: prop_onDblClick
0408: .setValue(
0409: Constants.PropertyDescriptor.CATEGORY,
0410: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0411:
0412: PropertyDescriptor prop_onFocus = new PropertyDescriptor(
0413: "onFocus", beanClass, "getOnFocus", "setOnFocus");
0414: prop_onFocus.setDisplayName(resources
0415: .getString("Hyperlink_onFocus_DisplayName"));
0416: prop_onFocus.setShortDescription(resources
0417: .getString("Hyperlink_onFocus_Description"));
0418: prop_onFocus
0419: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0420: prop_onFocus.setExpert(false);
0421: prop_onFocus.setHidden(false);
0422: prop_onFocus.setPreferred(false);
0423: attrib = new AttributeDescriptor("onFocus", false, null,
0424: true);
0425: prop_onFocus.setValue(
0426: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0427: attrib);
0428: prop_onFocus
0429: .setValue(
0430: Constants.PropertyDescriptor.CATEGORY,
0431: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0432:
0433: PropertyDescriptor prop_onKeyDown = new PropertyDescriptor(
0434: "onKeyDown", beanClass, "getOnKeyDown",
0435: "setOnKeyDown");
0436: prop_onKeyDown.setDisplayName(resources
0437: .getString("Hyperlink_onKeyDown_DisplayName"));
0438: prop_onKeyDown.setShortDescription(resources
0439: .getString("Hyperlink_onKeyDown_Description"));
0440: prop_onKeyDown
0441: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0442: prop_onKeyDown.setExpert(false);
0443: prop_onKeyDown.setHidden(false);
0444: prop_onKeyDown.setPreferred(false);
0445: attrib = new AttributeDescriptor("onKeyDown", false, null,
0446: true);
0447: prop_onKeyDown.setValue(
0448: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0449: attrib);
0450: prop_onKeyDown
0451: .setValue(
0452: Constants.PropertyDescriptor.CATEGORY,
0453: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0454:
0455: PropertyDescriptor prop_onKeyPress = new PropertyDescriptor(
0456: "onKeyPress", beanClass, "getOnKeyPress",
0457: "setOnKeyPress");
0458: prop_onKeyPress.setDisplayName(resources
0459: .getString("Hyperlink_onKeyPress_DisplayName"));
0460: prop_onKeyPress.setShortDescription(resources
0461: .getString("Hyperlink_onKeyPress_Description"));
0462: prop_onKeyPress
0463: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0464: prop_onKeyPress.setExpert(false);
0465: prop_onKeyPress.setHidden(false);
0466: prop_onKeyPress.setPreferred(false);
0467: attrib = new AttributeDescriptor("onKeyPress", false, null,
0468: true);
0469: prop_onKeyPress.setValue(
0470: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0471: attrib);
0472: prop_onKeyPress
0473: .setValue(
0474: Constants.PropertyDescriptor.CATEGORY,
0475: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0476:
0477: PropertyDescriptor prop_onKeyUp = new PropertyDescriptor(
0478: "onKeyUp", beanClass, "getOnKeyUp", "setOnKeyUp");
0479: prop_onKeyUp.setDisplayName(resources
0480: .getString("Hyperlink_onKeyUp_DisplayName"));
0481: prop_onKeyUp.setShortDescription(resources
0482: .getString("Hyperlink_onKeyUp_Description"));
0483: prop_onKeyUp
0484: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0485: prop_onKeyUp.setExpert(false);
0486: prop_onKeyUp.setHidden(false);
0487: prop_onKeyUp.setPreferred(false);
0488: attrib = new AttributeDescriptor("onKeyUp", false, null,
0489: true);
0490: prop_onKeyUp.setValue(
0491: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0492: attrib);
0493: prop_onKeyUp
0494: .setValue(
0495: Constants.PropertyDescriptor.CATEGORY,
0496: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0497:
0498: PropertyDescriptor prop_onMouseDown = new PropertyDescriptor(
0499: "onMouseDown", beanClass, "getOnMouseDown",
0500: "setOnMouseDown");
0501: prop_onMouseDown.setDisplayName(resources
0502: .getString("Hyperlink_onMouseDown_DisplayName"));
0503: prop_onMouseDown.setShortDescription(resources
0504: .getString("Hyperlink_onMouseDown_Description"));
0505: prop_onMouseDown
0506: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0507: prop_onMouseDown.setExpert(false);
0508: prop_onMouseDown.setHidden(false);
0509: prop_onMouseDown.setPreferred(false);
0510: attrib = new AttributeDescriptor("onMouseDown", false,
0511: null, true);
0512: prop_onMouseDown.setValue(
0513: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0514: attrib);
0515: prop_onMouseDown
0516: .setValue(
0517: Constants.PropertyDescriptor.CATEGORY,
0518: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0519:
0520: PropertyDescriptor prop_onMouseMove = new PropertyDescriptor(
0521: "onMouseMove", beanClass, "getOnMouseMove",
0522: "setOnMouseMove");
0523: prop_onMouseMove.setDisplayName(resources
0524: .getString("Hyperlink_onMouseMove_DisplayName"));
0525: prop_onMouseMove.setShortDescription(resources
0526: .getString("Hyperlink_onMouseMove_Description"));
0527: prop_onMouseMove
0528: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0529: prop_onMouseMove.setExpert(false);
0530: prop_onMouseMove.setHidden(false);
0531: prop_onMouseMove.setPreferred(false);
0532: attrib = new AttributeDescriptor("onMouseMove", false,
0533: null, true);
0534: prop_onMouseMove.setValue(
0535: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0536: attrib);
0537: prop_onMouseMove
0538: .setValue(
0539: Constants.PropertyDescriptor.CATEGORY,
0540: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0541:
0542: PropertyDescriptor prop_onMouseOut = new PropertyDescriptor(
0543: "onMouseOut", beanClass, "getOnMouseOut",
0544: "setOnMouseOut");
0545: prop_onMouseOut.setDisplayName(resources
0546: .getString("Hyperlink_onMouseOut_DisplayName"));
0547: prop_onMouseOut.setShortDescription(resources
0548: .getString("Hyperlink_onMouseOut_Description"));
0549: prop_onMouseOut
0550: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0551: prop_onMouseOut.setExpert(false);
0552: prop_onMouseOut.setHidden(false);
0553: prop_onMouseOut.setPreferred(false);
0554: attrib = new AttributeDescriptor("onMouseOut", false, null,
0555: true);
0556: prop_onMouseOut.setValue(
0557: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0558: attrib);
0559: prop_onMouseOut
0560: .setValue(
0561: Constants.PropertyDescriptor.CATEGORY,
0562: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0563:
0564: PropertyDescriptor prop_onMouseOver = new PropertyDescriptor(
0565: "onMouseOver", beanClass, "getOnMouseOver",
0566: "setOnMouseOver");
0567: prop_onMouseOver.setDisplayName(resources
0568: .getString("Hyperlink_onMouseOver_DisplayName"));
0569: prop_onMouseOver.setShortDescription(resources
0570: .getString("Hyperlink_onMouseOver_Description"));
0571: prop_onMouseOver
0572: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0573: prop_onMouseOver.setExpert(false);
0574: prop_onMouseOver.setHidden(false);
0575: prop_onMouseOver.setPreferred(false);
0576: attrib = new AttributeDescriptor("onMouseOver", false,
0577: null, true);
0578: prop_onMouseOver.setValue(
0579: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0580: attrib);
0581: prop_onMouseOver
0582: .setValue(
0583: Constants.PropertyDescriptor.CATEGORY,
0584: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0585:
0586: PropertyDescriptor prop_onMouseUp = new PropertyDescriptor(
0587: "onMouseUp", beanClass, "getOnMouseUp",
0588: "setOnMouseUp");
0589: prop_onMouseUp.setDisplayName(resources
0590: .getString("Hyperlink_onMouseUp_DisplayName"));
0591: prop_onMouseUp.setShortDescription(resources
0592: .getString("Hyperlink_onMouseUp_Description"));
0593: prop_onMouseUp
0594: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.JavaScriptPropertyEditor"));
0595: prop_onMouseUp.setExpert(false);
0596: prop_onMouseUp.setHidden(false);
0597: prop_onMouseUp.setPreferred(false);
0598: attrib = new AttributeDescriptor("onMouseUp", false, null,
0599: true);
0600: prop_onMouseUp.setValue(
0601: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0602: attrib);
0603: prop_onMouseUp
0604: .setValue(
0605: Constants.PropertyDescriptor.CATEGORY,
0606: com.sun.rave.designtime.base.CategoryDescriptors.JAVASCRIPT);
0607:
0608: PropertyDescriptor prop_shape = new PropertyDescriptor(
0609: "shape", beanClass, "getShape", "setShape");
0610: prop_shape.setDisplayName(resources
0611: .getString("Hyperlink_shape_DisplayName"));
0612: prop_shape.setShortDescription(resources
0613: .getString("Hyperlink_shape_Description"));
0614: prop_shape.setExpert(false);
0615: prop_shape.setHidden(true);
0616: prop_shape.setPreferred(false);
0617: prop_shape
0618: .setValue(
0619: Constants.PropertyDescriptor.CATEGORY,
0620: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0621:
0622: PropertyDescriptor prop_style = new PropertyDescriptor(
0623: "style", beanClass, "getStyle", "setStyle");
0624: prop_style.setDisplayName(resources
0625: .getString("Hyperlink_style_DisplayName"));
0626: prop_style.setShortDescription(resources
0627: .getString("Hyperlink_style_Description"));
0628: prop_style
0629: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.css.CssStylePropertyEditor"));
0630: prop_style.setExpert(false);
0631: prop_style.setHidden(false);
0632: prop_style.setPreferred(false);
0633: attrib = new AttributeDescriptor("style", false, null, true);
0634: prop_style.setValue(
0635: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0636: attrib);
0637: prop_style
0638: .setValue(
0639: Constants.PropertyDescriptor.CATEGORY,
0640: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0641:
0642: PropertyDescriptor prop_styleClass = new PropertyDescriptor(
0643: "styleClass", beanClass, "getStyleClass",
0644: "setStyleClass");
0645: prop_styleClass.setDisplayName(resources
0646: .getString("Hyperlink_styleClass_DisplayName"));
0647: prop_styleClass.setShortDescription(resources
0648: .getString("Hyperlink_styleClass_Description"));
0649: prop_styleClass
0650: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StyleClassPropertyEditor"));
0651: prop_styleClass.setExpert(false);
0652: prop_styleClass.setHidden(false);
0653: prop_styleClass.setPreferred(false);
0654: attrib = new AttributeDescriptor("styleClass", false, null,
0655: true);
0656: prop_styleClass.setValue(
0657: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0658: attrib);
0659: prop_styleClass
0660: .setValue(
0661: Constants.PropertyDescriptor.CATEGORY,
0662: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0663:
0664: PropertyDescriptor prop_tabIndex = new PropertyDescriptor(
0665: "tabIndex", beanClass, "getTabIndex", "setTabIndex");
0666: prop_tabIndex.setDisplayName(resources
0667: .getString("Hyperlink_tabIndex_DisplayName"));
0668: prop_tabIndex.setShortDescription(resources
0669: .getString("Hyperlink_tabIndex_Description"));
0670: prop_tabIndex
0671: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.IntegerPropertyEditor"));
0672: prop_tabIndex.setExpert(false);
0673: prop_tabIndex.setHidden(false);
0674: prop_tabIndex.setPreferred(false);
0675: attrib = new AttributeDescriptor("tabIndex", false, null,
0676: true);
0677: prop_tabIndex.setValue(
0678: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0679: attrib);
0680: prop_tabIndex
0681: .setValue(
0682: Constants.PropertyDescriptor.CATEGORY,
0683: com.sun.rave.designtime.base.CategoryDescriptors.ACCESSIBILITY);
0684: prop_tabIndex.setValue(
0685: "com.sun.rave.propertyeditors.MIN_VALUE", "1");
0686:
0687: PropertyDescriptor prop_target = new PropertyDescriptor(
0688: "target", beanClass, "getTarget", "setTarget");
0689: prop_target.setDisplayName(resources
0690: .getString("Hyperlink_target_DisplayName"));
0691: prop_target.setShortDescription(resources
0692: .getString("Hyperlink_target_Description"));
0693: prop_target
0694: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0695: prop_target.setExpert(false);
0696: prop_target.setHidden(false);
0697: prop_target.setPreferred(false);
0698: attrib = new AttributeDescriptor("target", false, null,
0699: true);
0700: prop_target.setValue(
0701: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0702: attrib);
0703: prop_target
0704: .setValue(
0705: Constants.PropertyDescriptor.CATEGORY,
0706: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0707: prop_target
0708: .setValue(
0709: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0710: com.sun.rave.propertyeditors.domains.HtmlFrameTargetsDomain.class);
0711:
0712: PropertyDescriptor prop_text = new PropertyDescriptor(
0713: "text", beanClass, "getText", "setText");
0714: prop_text.setDisplayName(resources
0715: .getString("Hyperlink_text_DisplayName"));
0716: prop_text.setShortDescription(resources
0717: .getString("Hyperlink_text_Description"));
0718: prop_text
0719: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0720: prop_text.setExpert(false);
0721: prop_text.setHidden(false);
0722: prop_text.setPreferred(false);
0723: attrib = new AttributeDescriptor("text", false, null, true);
0724: prop_text.setValue(
0725: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0726: attrib);
0727: prop_text
0728: .setValue(
0729: Constants.PropertyDescriptor.CATEGORY,
0730: com.sun.rave.designtime.base.CategoryDescriptors.APPEARANCE);
0731:
0732: PropertyDescriptor prop_toolTip = new PropertyDescriptor(
0733: "toolTip", beanClass, "getToolTip", "setToolTip");
0734: prop_toolTip.setDisplayName(resources
0735: .getString("Hyperlink_toolTip_DisplayName"));
0736: prop_toolTip.setShortDescription(resources
0737: .getString("Hyperlink_toolTip_Description"));
0738: prop_toolTip
0739: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.StringPropertyEditor"));
0740: prop_toolTip.setExpert(false);
0741: prop_toolTip.setHidden(false);
0742: prop_toolTip.setPreferred(false);
0743: attrib = new AttributeDescriptor("toolTip", false, null,
0744: true);
0745: prop_toolTip.setValue(
0746: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0747: attrib);
0748: prop_toolTip
0749: .setValue(
0750: Constants.PropertyDescriptor.CATEGORY,
0751: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0752:
0753: PropertyDescriptor prop_type = new PropertyDescriptor(
0754: "type", beanClass, "getType", "setType");
0755: prop_type.setDisplayName(resources
0756: .getString("Hyperlink_type_DisplayName"));
0757: prop_type.setShortDescription(resources
0758: .getString("Hyperlink_type_Description"));
0759: prop_type
0760: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0761: prop_type.setExpert(false);
0762: prop_type.setHidden(false);
0763: prop_type.setPreferred(false);
0764: attrib = new AttributeDescriptor("type", false, null, true);
0765: prop_type.setValue(
0766: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0767: attrib);
0768: prop_type
0769: .setValue(
0770: Constants.PropertyDescriptor.CATEGORY,
0771: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0772: prop_type
0773: .setValue(
0774: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0775: com.sun.rave.propertyeditors.domains.MimeTypesDomain.class);
0776:
0777: PropertyDescriptor prop_url = new PropertyDescriptor("url",
0778: beanClass, "getUrl", "setUrl");
0779: prop_url.setDisplayName(resources
0780: .getString("Hyperlink_url_DisplayName"));
0781: prop_url.setShortDescription(resources
0782: .getString("Hyperlink_url_Description"));
0783: prop_url
0784: .setPropertyEditorClass(loadClass("org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.SunWebUrlPropertyEditor"));
0785: prop_url.setExpert(false);
0786: prop_url.setHidden(false);
0787: prop_url.setPreferred(false);
0788: attrib = new AttributeDescriptor("url", false, null, true);
0789: prop_url.setValue(
0790: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0791: attrib);
0792: prop_url
0793: .setValue(
0794: Constants.PropertyDescriptor.CATEGORY,
0795: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0796:
0797: PropertyDescriptor prop_urlLang = new PropertyDescriptor(
0798: "urlLang", beanClass, "getUrlLang", "setUrlLang");
0799: prop_urlLang.setDisplayName(resources
0800: .getString("Hyperlink_urlLang_DisplayName"));
0801: prop_urlLang.setShortDescription(resources
0802: .getString("Hyperlink_urlLang_Description"));
0803: prop_urlLang
0804: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.SelectOneDomainEditor"));
0805: prop_urlLang.setExpert(false);
0806: prop_urlLang.setHidden(false);
0807: prop_urlLang.setPreferred(false);
0808: attrib = new AttributeDescriptor("urlLang", false, null,
0809: true);
0810: prop_urlLang.setValue(
0811: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0812: attrib);
0813: prop_urlLang
0814: .setValue(
0815: Constants.PropertyDescriptor.CATEGORY,
0816: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0817: prop_urlLang
0818: .setValue(
0819: "com.sun.rave.propertyeditors.DOMAIN_CLASS",
0820: com.sun.rave.propertyeditors.domains.LanguagesDomain.class);
0821:
0822: PropertyDescriptor prop_visible = new PropertyDescriptor(
0823: "visible", beanClass, "isVisible", "setVisible");
0824: prop_visible.setDisplayName(resources
0825: .getString("Hyperlink_visible_DisplayName"));
0826: prop_visible.setShortDescription(resources
0827: .getString("Hyperlink_visible_Description"));
0828: prop_visible.setExpert(false);
0829: prop_visible.setHidden(false);
0830: prop_visible.setPreferred(false);
0831: attrib = new AttributeDescriptor("visible", false, "true",
0832: true);
0833: prop_visible.setValue(
0834: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0835: attrib);
0836: prop_visible
0837: .setValue(
0838: Constants.PropertyDescriptor.CATEGORY,
0839: com.sun.rave.designtime.base.CategoryDescriptors.BEHAVIOR);
0840:
0841: PropertyDescriptor prop_attributes = new PropertyDescriptor(
0842: "attributes", beanClass, "getAttributes", null);
0843: prop_attributes.setDisplayName(resources
0844: .getString("Hyperlink_attributes_DisplayName"));
0845: prop_attributes.setShortDescription(resources
0846: .getString("Hyperlink_attributes_Description"));
0847: prop_attributes.setExpert(false);
0848: prop_attributes.setHidden(true);
0849: prop_attributes.setPreferred(false);
0850: prop_attributes
0851: .setValue(
0852: Constants.PropertyDescriptor.CATEGORY,
0853: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0854:
0855: PropertyDescriptor prop_childCount = new PropertyDescriptor(
0856: "childCount", beanClass, "getChildCount", null);
0857: prop_childCount.setDisplayName(resources
0858: .getString("Hyperlink_childCount_DisplayName"));
0859: prop_childCount.setShortDescription(resources
0860: .getString("Hyperlink_childCount_Description"));
0861: prop_childCount.setExpert(false);
0862: prop_childCount.setHidden(true);
0863: prop_childCount.setPreferred(false);
0864: prop_childCount
0865: .setValue(
0866: Constants.PropertyDescriptor.CATEGORY,
0867: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0868:
0869: PropertyDescriptor prop_children = new PropertyDescriptor(
0870: "children", beanClass, "getChildren", null);
0871: prop_children.setDisplayName(resources
0872: .getString("Hyperlink_children_DisplayName"));
0873: prop_children.setShortDescription(resources
0874: .getString("Hyperlink_children_Description"));
0875: prop_children.setExpert(false);
0876: prop_children.setHidden(true);
0877: prop_children.setPreferred(false);
0878: prop_children
0879: .setValue(
0880: Constants.PropertyDescriptor.CATEGORY,
0881: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0882:
0883: PropertyDescriptor prop_facets = new PropertyDescriptor(
0884: "facets", beanClass, "getFacets", null);
0885: prop_facets.setDisplayName(resources
0886: .getString("Hyperlink_facets_DisplayName"));
0887: prop_facets.setShortDescription(resources
0888: .getString("Hyperlink_facets_Description"));
0889: prop_facets.setExpert(false);
0890: prop_facets.setHidden(true);
0891: prop_facets.setPreferred(false);
0892: prop_facets
0893: .setValue(
0894: Constants.PropertyDescriptor.CATEGORY,
0895: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0896:
0897: PropertyDescriptor prop_family = new PropertyDescriptor(
0898: "family", beanClass, "getFamily", null);
0899: prop_family.setDisplayName(resources
0900: .getString("Hyperlink_family_DisplayName"));
0901: prop_family.setShortDescription(resources
0902: .getString("Hyperlink_family_Description"));
0903: prop_family.setExpert(false);
0904: prop_family.setHidden(true);
0905: prop_family.setPreferred(false);
0906: prop_family
0907: .setValue(
0908: Constants.PropertyDescriptor.CATEGORY,
0909: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0910:
0911: PropertyDescriptor prop_id = new PropertyDescriptor("id",
0912: beanClass, "getId", "setId");
0913: prop_id.setDisplayName(resources
0914: .getString("Hyperlink_id_DisplayName"));
0915: prop_id.setShortDescription(resources
0916: .getString("Hyperlink_id_Description"));
0917: prop_id.setExpert(false);
0918: prop_id.setHidden(true);
0919: prop_id.setPreferred(false);
0920: attrib = new AttributeDescriptor("id", false, null, true);
0921: prop_id.setValue(
0922: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0923: attrib);
0924: prop_id
0925: .setValue(
0926: Constants.PropertyDescriptor.CATEGORY,
0927: com.sun.rave.designtime.base.CategoryDescriptors.GENERAL);
0928:
0929: PropertyDescriptor prop_immediate = new PropertyDescriptor(
0930: "immediate", beanClass, "isImmediate",
0931: "setImmediate");
0932: prop_immediate.setDisplayName(resources
0933: .getString("Hyperlink_immediate_DisplayName"));
0934: prop_immediate.setShortDescription(resources
0935: .getString("Hyperlink_immediate_Description"));
0936: prop_immediate.setExpert(false);
0937: prop_immediate.setHidden(false);
0938: prop_immediate.setPreferred(false);
0939: attrib = new AttributeDescriptor("immediate", false, null,
0940: true);
0941: prop_immediate.setValue(
0942: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0943: attrib);
0944: prop_immediate
0945: .setValue(
0946: Constants.PropertyDescriptor.CATEGORY,
0947: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0948:
0949: PropertyDescriptor prop_parent = new PropertyDescriptor(
0950: "parent", beanClass, "getParent", null);
0951: prop_parent.setDisplayName(resources
0952: .getString("Hyperlink_parent_DisplayName"));
0953: prop_parent.setShortDescription(resources
0954: .getString("Hyperlink_parent_Description"));
0955: prop_parent.setExpert(false);
0956: prop_parent.setHidden(true);
0957: prop_parent.setPreferred(false);
0958: prop_parent
0959: .setValue(
0960: Constants.PropertyDescriptor.CATEGORY,
0961: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0962:
0963: PropertyDescriptor prop_rendered = new PropertyDescriptor(
0964: "rendered", beanClass, "isRendered", "setRendered");
0965: prop_rendered.setDisplayName(resources
0966: .getString("Hyperlink_rendered_DisplayName"));
0967: prop_rendered.setShortDescription(resources
0968: .getString("Hyperlink_rendered_Description"));
0969: prop_rendered.setExpert(false);
0970: prop_rendered.setHidden(false);
0971: prop_rendered.setPreferred(false);
0972: attrib = new AttributeDescriptor("rendered", false, null,
0973: true);
0974: prop_rendered.setValue(
0975: Constants.PropertyDescriptor.ATTRIBUTE_DESCRIPTOR,
0976: attrib);
0977: prop_rendered
0978: .setValue(
0979: Constants.PropertyDescriptor.CATEGORY,
0980: com.sun.rave.designtime.base.CategoryDescriptors.ADVANCED);
0981:
0982: PropertyDescriptor prop_rendererType = new PropertyDescriptor(
0983: "rendererType", beanClass, "getRendererType",
0984: "setRendererType");
0985: prop_rendererType.setDisplayName(resources
0986: .getString("Hyperlink_rendererType_DisplayName"));
0987: prop_rendererType.setShortDescription(resources
0988: .getString("Hyperlink_rendererType_Description"));
0989: prop_rendererType.setExpert(false);
0990: prop_rendererType.setHidden(true);
0991: prop_rendererType.setPreferred(false);
0992: prop_rendererType
0993: .setValue(
0994: Constants.PropertyDescriptor.CATEGORY,
0995: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
0996:
0997: PropertyDescriptor prop_rendersChildren = new PropertyDescriptor(
0998: "rendersChildren", beanClass, "getRendersChildren",
0999: null);
1000: prop_rendersChildren
1001: .setDisplayName(resources
1002: .getString("Hyperlink_rendersChildren_DisplayName"));
1003: prop_rendersChildren
1004: .setShortDescription(resources
1005: .getString("Hyperlink_rendersChildren_Description"));
1006: prop_rendersChildren.setExpert(false);
1007: prop_rendersChildren.setHidden(true);
1008: prop_rendersChildren.setPreferred(false);
1009: prop_rendersChildren
1010: .setValue(
1011: Constants.PropertyDescriptor.CATEGORY,
1012: com.sun.rave.designtime.base.CategoryDescriptors.INTERNAL);
1013:
1014: PropertyDescriptor prop_value = new PropertyDescriptor(
1015: "value", beanClass, "getValue", "setValue");
1016: prop_value.setDisplayName(resources
1017: .getString("Hyperlink_value_DisplayName"));
1018: prop_value.setShortDescription(resources
1019: .getString("Hyperlink_value_Description"));
1020: prop_value
1021: .setPropertyEditorClass(loadClass("com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor"));
1022: prop_value.setExpert(false);
1023: prop_value.setHidden(true);
1024: prop_value.setPreferred(false);
1025: prop_value
1026: .setValue(
1027: Constants.PropertyDescriptor.CATEGORY,
1028: com.sun.rave.designtime.base.CategoryDescriptors.DATA);
1029: prop_value.setValue("ignoreIsBound", "true");
1030:
1031: propDescriptors = new PropertyDescriptor[] { prop_action,
1032: prop_actionListener, prop_attributes,
1033: prop_childCount, prop_children, prop_disabled,
1034: prop_facets, prop_family, prop_id, prop_immediate,
1035: prop_onBlur, prop_onClick, prop_onDblClick,
1036: prop_onFocus, prop_onKeyDown, prop_onKeyPress,
1037: prop_onKeyUp, prop_onMouseDown, prop_onMouseMove,
1038: prop_onMouseOut, prop_onMouseOver, prop_onMouseUp,
1039: prop_parent, prop_rendered, prop_rendererType,
1040: prop_rendersChildren, prop_shape, prop_style,
1041: prop_styleClass, prop_tabIndex, prop_target,
1042: prop_text, prop_toolTip, prop_type, prop_url,
1043: prop_urlLang, prop_value, prop_visible, };
1044: return propDescriptors;
1045:
1046: } catch (IntrospectionException e) {
1047: e.printStackTrace();
1048: return null;
1049: }
1050:
1051: }
1052:
1053: }
1054: //GEN-END:BeanInfo
|