📄 longitude_latitude_beanbeaninfo.java
字号:
package longitudebean;import java.beans.*;/** * Title: * Description: * Copyright: Copyright (c) 2002 * Company: * @author * @version 1.0 */public class Longitude_Latitude_BeanBeanInfo extends SimpleBeanInfo { Class beanClass = Longitude_Latitude_Bean.class; String iconColor16x16Filename; String iconColor32x32Filename; String iconMono16x16Filename; String iconMono32x32Filename; public Longitude_Latitude_BeanBeanInfo() { } public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor _jd = new PropertyDescriptor("jd", beanClass, "getJd", null); PropertyDescriptor _jd_d = new PropertyDescriptor("jd_d", beanClass, "getJd_d", "setJd_d"); PropertyDescriptor _jd_f = new PropertyDescriptor("jd_f", beanClass, "getJd_f", "setJd_f"); PropertyDescriptor _jd_m = new PropertyDescriptor("jd_m", beanClass, "getJd_m", "setJd_m"); PropertyDescriptor _latitude = new PropertyDescriptor("latitude", beanClass, "getLatitude", "setLatitude"); PropertyDescriptor _longitude = new PropertyDescriptor("longitude", beanClass, "getLongitude", "setLongitude"); PropertyDescriptor _wd = new PropertyDescriptor("wd", beanClass, "getWd", null); PropertyDescriptor _wd_d = new PropertyDescriptor("wd_d", beanClass, "getWd_d", "setWd_d"); PropertyDescriptor _wd_f = new PropertyDescriptor("wd_f", beanClass, "getWd_f", "setWd_f"); PropertyDescriptor _wd_m = new PropertyDescriptor("wd_m", beanClass, "getWd_m", "setWd_m"); PropertyDescriptor[] pds = new PropertyDescriptor[] { _jd, _jd_d, _jd_f, _jd_m, _latitude, _longitude, _wd, _wd_d, _wd_f, _wd_m}; return pds; } catch(IntrospectionException ex) { ex.printStackTrace(); return null; } } public java.awt.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 + -