1 19 20 package org.netbeans.modules.javawebstart; 21 22 import java.awt.Image ; 23 import java.beans.BeanInfo ; 24 import java.beans.IntrospectionException ; 25 import java.beans.Introspector ; 26 import java.beans.SimpleBeanInfo ; 27 import org.openide.loaders.UniFileLoader; 28 import org.openide.util.Utilities; 29 30 public class JnlpDataLoaderBeanInfo extends SimpleBeanInfo { 31 32 public BeanInfo [] getAdditionalBeanInfo() { 33 try { 34 return new BeanInfo [] {Introspector.getBeanInfo(UniFileLoader.class)}; 35 } catch (IntrospectionException e) { 36 throw new AssertionError (e); 37 } 38 } 39 40 public Image getIcon(int type) { 41 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 42 return Utilities.loadImage("org/netbeans/modules/javawebstart/resources/jnlp.gif"); 43 } else { 44 return null; 45 } 46 47 } 48 49 } 50 | Popular Tags |