⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inputregisterbeaninfo.java

📁 hibernate应用测试,初学hibernate 的会员可以看看.
💻 JAVA
字号:
package com.bean;

import java.awt.*;
import java.beans.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class InputRegisterBeanInfo extends SimpleBeanInfo {
    Class beanClass = InputRegister.class;
    String iconColor16x16Filename;
    String iconColor32x32Filename;
    String iconMono16x16Filename;
    String iconMono32x32Filename;

    public InputRegisterBeanInfo() {
    }

    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor _area = new PropertyDescriptor(
                    "area", beanClass, "getArea", "setArea");

            PropertyDescriptor _auditingPeop = new PropertyDescriptor(
                    "auditingPeop", beanClass, "getAuditingPeop",
                    "setAuditingPeop");

            PropertyDescriptor _carNum = new PropertyDescriptor(
                    "carNum", beanClass, "getCarNum", "setCarNum");

            PropertyDescriptor _clientName = new PropertyDescriptor(
                    "clientName", beanClass, null, null);

            PropertyDescriptor _computerOperator = new PropertyDescriptor(
                    "computerOperator", beanClass, "getComputerOperator",
                    "setComputerOperator");

            PropertyDescriptor _conveyPeopl = new PropertyDescriptor(
                    "conveyPeopl", beanClass, "getConveyPeopl",
                    "setConveyPeopl");

            PropertyDescriptor _delFlagd = new PropertyDescriptor(
                    "delFlagd", beanClass, "getDelFlagd", "setDelFlagd");

            PropertyDescriptor _dischargeExpense = new PropertyDescriptor(
                    "dischargeExpense", beanClass, "getDischargeExpense",
                    "setDischargeExpense");

            PropertyDescriptor _disrepairAmount = new PropertyDescriptor(
                    "disrepairAmount", beanClass, "getDisrepairAmount",
                    "setDisrepairAmount");

            PropertyDescriptor _disrepairWeight = new PropertyDescriptor(
                    "disrepairWeight", beanClass, "getDisrepairWeight",
                    "setDisrepairWeight");

            PropertyDescriptor _driver = new PropertyDescriptor(
                    "driver", beanClass, "getDriver", "setDriver");

            PropertyDescriptor _firstAudFlag = new PropertyDescriptor(
                    "firstAudFlag", beanClass, "getFirstAudFlag",
                    "setFirstAudFlag");

            PropertyDescriptor _guaranteePeriod = new PropertyDescriptor(
                    "guaranteePeriod", beanClass, "getGuaranteePeriod",
                    "setGuaranteePeriod");

            PropertyDescriptor _guiFenNum = new PropertyDescriptor(
                    "guiFenNum", beanClass, "getGuiFenNum", "setGuiFenNum");

            PropertyDescriptor _inApId = new PropertyDescriptor(
                    "inApId", beanClass, "getInApId", "setInApId");

            PropertyDescriptor _inRegiId = new PropertyDescriptor(
                    "inRegiId", beanClass, "getInRegiId", "setInRegiId");

            PropertyDescriptor _planAmount = new PropertyDescriptor(
                    "planAmount", beanClass, null, null);

            PropertyDescriptor _planWeight = new PropertyDescriptor(
                    "planWeight", beanClass, null, null);

            PropertyDescriptor _primitiveId = new PropertyDescriptor(
                    "primitiveId", beanClass, "getPrimitiveId",
                    "setPrimitiveId");

            PropertyDescriptor _produceBatch = new PropertyDescriptor(
                    "produceBatch", beanClass, "getProduceBatch",
                    "setProduceBatch");

            PropertyDescriptor _productGrade = new PropertyDescriptor(
                    "productGrade", beanClass, "getProductGrade",
                    "setProductGrade");

            PropertyDescriptor _productName = new PropertyDescriptor(
                    "productName", beanClass, null, null);

            PropertyDescriptor _realAmount = new PropertyDescriptor(
                    "realAmount", beanClass, "getRealAmount", "setRealAmount");

            PropertyDescriptor _realWeight = new PropertyDescriptor(
                    "realWeight", beanClass, "getRealWeight", "setRealWeight");

            PropertyDescriptor _registerDate = new PropertyDescriptor(
                    "registerDate", beanClass, "getRegisterDate",
                    "setRegisterDate");

            PropertyDescriptor _registerKind = new PropertyDescriptor(
                    "registerKind", beanClass, "getRegisterKind",
                    "setRegisterKind");

            PropertyDescriptor _registerNote = new PropertyDescriptor(
                    "registerNote", beanClass, "getRegisterNote",
                    "setRegisterNote");

            PropertyDescriptor _registerState = new PropertyDescriptor(
                    "registerState", beanClass, "getRegisterState",
                    "setRegisterState");

            PropertyDescriptor _shName = new PropertyDescriptor(
                    "shName", beanClass, null, null);

            PropertyDescriptor _shSpace = new PropertyDescriptor(
                    "shSpace", beanClass, "getShSpace", "setShSpace");

            PropertyDescriptor[] pds = new PropertyDescriptor[] {
                                       _area,
                                       _auditingPeop,
                                       _carNum,
                                       _clientName,
                                       _computerOperator,
                                       _conveyPeopl,
                                       _delFlagd,
                                       _dischargeExpense,
                                       _disrepairAmount,
                                       _disrepairWeight,
                                       _driver,
                                       _firstAudFlag,
                                       _guaranteePeriod,
                                       _guiFenNum,
                                       _inApId,
                                       _inRegiId,
                                       _planAmount,
                                       _planWeight,
                                       _primitiveId,
                                       _produceBatch,
                                       _productGrade,
                                       _productName,
                                       _realAmount,
                                       _realWeight,
                                       _registerDate,
                                       _registerKind,
                                       _registerNote,
                                       _registerState,
                                       _shName,
                                       _shSpace
            };
            return pds;
        } catch (Exception exception) {
            exception.printStackTrace();
            return null;
        }
    }

    public Image getIcon(int iconKind) {
        switch (iconKind) {
        case BeanInfo.ICON_COLOR_16x16:
            return ((iconColor16x16Filename != null)
                    ? loadImage(iconColor16x16Filename) : null);

        case BeanInfo.ICON_COLOR_32x32:
            return ((iconColor32x32Filename != null)
                    ? loadImage(iconColor32x32Filename) : null);

        case BeanInfo.ICON_MONO_16x16:
            return ((iconMono16x16Filename != null)
                    ? loadImage(iconMono16x16Filename) : null);

        case BeanInfo.ICON_MONO_32x32:
            return ((iconMono32x32Filename != null)
                    ? loadImage(iconMono32x32Filename) : null);
        }

        return null;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -