1 19 20 21 package org.netbeans.modules.palette; 22 23 import javax.swing.Action ; 24 import org.netbeans.spi.palette.PaletteController; 25 import org.netbeans.spi.palette.PaletteFilter; 26 import org.openide.util.*; 27 28 33 public interface Model { 34 35 39 public static final String PROP_SELECTED_ITEM = "selectedItem"; 40 41 String getName(); 42 43 46 Category[] getCategories(); 47 48 51 Action [] getActions(); 52 53 void addModelListener( ModelListener listener ); 54 55 void removeModelListener( ModelListener listener ); 56 57 60 Item getSelectedItem(); 61 62 65 Category getSelectedCategory(); 66 67 73 void setSelectedItem( Lookup category, Lookup item ); 74 75 78 void clearSelection(); 79 80 void refresh(); 81 82 void showCustomizer( PaletteController controller, Settings settings ); 83 84 Lookup getRoot(); 85 86 boolean moveCategory( Category source, Category target, boolean moveBefore ); 87 88 boolean canReorderCategories(); 89 } 90 | Popular Tags |