1 16 package swingwtx.swing; 17 18 import swingwtx.swing.event.*; 19 20 public interface ListSelectionModel { 21 22 int SINGLE_SELECTION = 0; 23 int SINGLE_INTERVAL_SELECTION = 1; 24 int MULTIPLE_INTERVAL_SELECTION = 2; 25 26 void setSelectionInterval(int index0, int index1); 27 void addSelectionInterval(int index0, int index1); 28 void removeSelectionInterval(int index0, int index1); 29 int getMinSelectionIndex(); 30 int getMaxSelectionIndex(); 31 boolean isSelectedIndex(int index); 32 int getAnchorSelectionIndex(); 33 void setAnchorSelectionIndex(int index); 34 int getLeadSelectionIndex(); 35 void setLeadSelectionIndex(int index); 36 void clearSelection(); 37 boolean isSelectionEmpty(); 38 void insertIndexInterval(int index, int length, boolean before); 39 void removeIndexInterval(int index0, int index1); 40 void setValueIsAdjusting(boolean valueIsAdjusting); 41 boolean getValueIsAdjusting(); 42 void setSelectionMode(int selectionMode); 43 int getSelectionMode(); 44 45 void addListSelectionListener(ListSelectionListener x); 46 void removeListSelectionListener(ListSelectionListener x); 47 } 48 49 | Popular Tags |