1 19 20 package org.netbeans.modules.palette; 21 22 import java.awt.Image ; 23 import java.awt.datatransfer.Transferable ; 24 import java.awt.dnd.DropTargetDragEvent ; 25 import javax.swing.Action ; 26 import org.openide.util.Lookup; 27 28 33 public interface Category { 34 35 38 String getName(); 39 40 43 String getDisplayName(); 44 45 48 String getShortDescription(); 49 50 53 Image getIcon(int type); 54 55 58 Action [] getActions(); 59 60 63 Item[] getItems(); 64 65 void addCategoryListener( CategoryListener listener ); 66 67 void removeCategoryListener( CategoryListener listener ); 68 69 Transferable getTransferable(); 70 71 Lookup getLookup(); 72 73 boolean dropItem( Transferable dropItem, int dndAction, Item target, boolean dropBefore ); 74 75 boolean dragOver( DropTargetDragEvent e ); 76 } 77 | Popular Tags |