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

📄 simplebeancontainerbeaninfo.java

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 JAVA
字号:
/* ********************************************************************** *  *    Use, duplication, or disclosure by the Government is subject to *           restricted rights as set forth in the DFARS. *   *                         BBNT Solutions LLC *                             A Part of  *                  Verizon       *                          10 Moulton Street *                         Cambridge, MA 02138 *                          (617) 873-3000 * *    Copyright (C) 2002 by BBNT Solutions, LLC *                 All Rights Reserved. * ********************************************************************** */package com.bbn.openmap.examples.beanbox;import java.awt.*;import java.beans.*;import java.util.*;import com.bbn.openmap.tools.beanbox.BeanLayoutEditor;/** * A BeanInfo for the * {@link com.bbn.openmap.examples.beanbox.SimpleBeanContainer}bean */public class SimpleBeanContainerBeanInfo extends SimpleBeanObjectBeanInfo {    public PropertyDescriptor[] getPropertyDescriptors() {        ArrayList list = new ArrayList(8);        PropertyDescriptor[] pds = super.getPropertyDescriptors();        list.addAll(Arrays.asList(pds));        try {            list.add(new PropertyDescriptor("widthInNM", SimpleBeanContainer.class));            list.add(new PropertyDescriptor("heightInNM", SimpleBeanContainer.class));            PropertyDescriptor pd = new PropertyDescriptor("layoutClass", SimpleBeanContainer.class);            pd.setPropertyEditorClass(LayoutClassEditor.class);            list.add(pd);            pd = new PropertyDescriptor("layoutManager", SimpleBeanContainer.class, "getLayout", "setLayout");            // since layoutManager property is itself a bean            // (of type BeanLayoutManager), use the            // general purpose BeanLayoutEditor class provided in the            // tools.beanbox            // package as the editor class of this bean property.            pd.setPropertyEditorClass(BeanLayoutEditor.class);            list.add(pd);        } catch (IntrospectionException e) {            e.printStackTrace();        }        return (PropertyDescriptor[]) list.toArray(new PropertyDescriptor[0]);    }    public Image getIcon(int iconKind) {        Image image = loadImage("/com/bbn/openmap/examples/beanbox/simplebeancontainer.gif");        return image;    }}

⌨️ 快捷键说明

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