1 7 8 package javax.swing; 9 10 import javax.swing.event.*; 11 12 28 29 public interface ListSelectionModel 30 { 31 37 int SINGLE_SELECTION = 0; 38 39 45 int SINGLE_INTERVAL_SELECTION = 1; 46 47 53 int MULTIPLE_INTERVAL_SELECTION = 2; 54 55 56 66 void setSelectionInterval(int index0, int index1); 67 68 69 80 void addSelectionInterval(int index0, int index1); 81 82 83 94 void removeSelectionInterval(int index0, int index1); 95 96 97 100 int getMinSelectionIndex(); 101 102 103 106 int getMaxSelectionIndex(); 107 108 109 112 boolean isSelectedIndex(int index); 113 114 115 127 int getAnchorSelectionIndex(); 128 129 130 135 void setAnchorSelectionIndex(int index); 136 137 138 146 int getLeadSelectionIndex(); 147 148 153 void setLeadSelectionIndex(int index); 154 155 161 void clearSelection(); 162 163 166 boolean isSelectionEmpty(); 167 168 173 void insertIndexInterval(int index, int length, boolean before); 174 175 180 void removeIndexInterval(int index0, int index1); 181 182 195 void setValueIsAdjusting(boolean valueIsAdjusting); 196 197 202 boolean getValueIsAdjusting(); 203 204 222 void setSelectionMode(int selectionMode); 223 224 229 int getSelectionMode(); 230 231 244 void addListSelectionListener(ListSelectionListener x); 245 246 253 void removeListSelectionListener(ListSelectionListener x); 254 } 255 256
| Popular Tags
|