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

📄 book_opbeaninfo.java

📁 Name: Book shop manager. 开发语言: Java
💻 JAVA
字号:
package bookmanager;

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

/**
 * <p>Title: 图书管理</p>
 *
 * <p>Description: 大型软件实习项目</p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: 武汉大学计算机学院</p>
 *
 * @author 王佳
 * @version 1.0
 */
public class book_opBeanInfo extends SimpleBeanInfo {
    Class beanClass = book_op.class;
    String iconColor16x16Filename;
    String iconColor32x32Filename;
    String iconMono16x16Filename;
    String iconMono32x32Filename;

    public book_opBeanInfo() {
    }

    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor _authority = new PropertyDescriptor(
                    "authority", beanClass, "getAuthority", null);
            _authority.setDisplayName("authority");
            _authority.setShortDescription("authority");

            PropertyDescriptor _bdate = new PropertyDescriptor(
                    "bdate", beanClass, "getBdate", "setBdate");
            _bdate.setDisplayName("bdate");
            _bdate.setShortDescription("bdate");

            PropertyDescriptor _bkauthor = new PropertyDescriptor(
                    "bkauthor", beanClass, "getBkauthor", "setBkauthor");
            _bkauthor.setDisplayName("bkauthor");
            _bkauthor.setShortDescription("bkauthor");

            PropertyDescriptor _bkid = new PropertyDescriptor(
                    "bkid", beanClass, "getBkid", "setBkid");
            _bkid.setDisplayName("bkid");
            _bkid.setShortDescription("bkid");

            PropertyDescriptor _bkname = new PropertyDescriptor(
                    "bkname", beanClass, "getBkname", "setBkname");
            _bkname.setDisplayName("bkname");
            _bkname.setShortDescription("bkname");

            PropertyDescriptor _bkpublish = new PropertyDescriptor(
                    "bkpublish", beanClass, "getBkpublish", "setBkpublish");
            _bkpublish.setDisplayName("bkpublish");
            _bkpublish.setShortDescription("bkpublish");

            PropertyDescriptor _edition = new PropertyDescriptor(
                    "edition", beanClass, "getEdition", "setEdition");
            _edition.setDisplayName("edition");
            _edition.setShortDescription("edition");

            PropertyDescriptor _hold = new PropertyDescriptor(
                    "hold", beanClass, "getHold", null);
            _hold.setDisplayName("hold");
            _hold.setShortDescription("hold");

            PropertyDescriptor _printHtml = new PropertyDescriptor(
                    "printHtml", beanClass, null, null);
            _printHtml.setDisplayName("printHtml");
            _printHtml.setShortDescription("printHtml");

            PropertyDescriptor _rdate = new PropertyDescriptor(
                    "rdate", beanClass, "getRdate", "setRdate");
            _rdate.setDisplayName("rdate");
            _rdate.setShortDescription("rdate");

            PropertyDescriptor _sql = new PropertyDescriptor(
                    "sql", beanClass, null, null);
            _sql.setDisplayName("sql");
            _sql.setShortDescription("sql");

            PropertyDescriptor _uid = new PropertyDescriptor(
                    "uid", beanClass, "getUid", "setUid");
            _uid.setDisplayName("uid");
            _uid.setShortDescription("uid");

            PropertyDescriptor _username = new PropertyDescriptor(
                    "username", beanClass, "getUsername", "setUsername");
            _username.setDisplayName("username");
            _username.setShortDescription("username");

            PropertyDescriptor[] pds = new PropertyDescriptor[] {
                                       _authority,
                                       _bdate,
                                       _bkauthor,
                                       _bkid,
                                       _bkname,
                                       _bkpublish,
                                       _edition,
                                       _hold,
                                       _printHtml,
                                       _rdate,
                                       _sql,
                                       _uid,
                                       _username
            };
            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 + -