1 19 20 package org.netbeans.spi.options; 21 22 import java.awt.Image ; 23 import javax.swing.Icon ; 24 import javax.swing.ImageIcon ; 25 import org.openide.util.Utilities; 26 27 49 public abstract class OptionsCategory { 50 51 59 public String getIconBase () { 60 return null; 61 } 62 63 69 public Icon getIcon () { 70 Image image = Utilities.loadImage (getIconBase () + ".png"); 71 if (image != null) return new ImageIcon (image); 72 image = Utilities.loadImage (getIconBase () + ".gif"); 73 if (image == null) return null; 74 return new ImageIcon (image); 75 } 76 77 83 public abstract String getCategoryName (); 84 85 91 public abstract String getTitle (); 92 93 102 public abstract OptionsPanelController create (); 103 104 } 105 | Popular Tags |