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

📄 picturebeaninfo.java

📁 一个简单的visio程序。
💻 JAVA
字号:
package HAB.object;

import java.beans.*;

public class PictureBeanInfo extends SimpleBeanInfo
                implements java.io.Serializable

{
	private void writeObject(java.io.ObjectOutputStream s)
				      throws java.io.IOException
    {
         s.defaultWriteObject();
    }

    private void readObject(java.io.ObjectInputStream s)
	      throws java.lang.ClassNotFoundException,
		     java.io.IOException
    {
        s.defaultReadObject();
    }
	public PropertyDescriptor[] getPropertyDescriptors()
   {
      try
      {
         PropertyDescriptor rv[] = new PropertyDescriptor[5];

         rv[0] = new PropertyDescriptor("Handle",beanClass,"_getHandle","_setHandle");
         rv[1] = new PropertyDescriptor("Height",beanClass,"_getHeight",null);
         rv[2] = new PropertyDescriptor("Width",beanClass,"_getWidth",null);
         rv[3] = new PropertyDescriptor("HPal",beanClass,"_getHPal","_setHPal");
         rv[4] = new PropertyDescriptor("Type",beanClass,"_getType","_setType");
		// rv[5] = new PropertyDescriptor("Deft",beanClass,"_getDeft","_setDeft");

         return  rv;
      }catch(IntrospectionException e)
      {
         throw new Error(e.toString());
      }
   }

   public MethodDescriptor[] getMethodDescriptors()
   {
      MethodDescriptor rv[] = new MethodDescriptor[0];

      return rv;
   }

   private static Class beanClass =  HAB.object.Picture.class;
}

⌨️ 快捷键说明

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