Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 7 8 package javax.swing.tree; 9 10 import javax.swing.event.*; 11 import java.beans.PropertyChangeListener ; 12 13 71 72 public interface TreeSelectionModel 73 { 74 75 public static final int SINGLE_TREE_SELECTION = 1; 76 77 80 public static final int CONTIGUOUS_TREE_SELECTION = 2; 81 82 84 public static final int DISCONTIGUOUS_TREE_SELECTION = 4; 85 86 96 void setSelectionMode(int mode); 97 98 104 int getSelectionMode(); 105 106 113 void setSelectionPath(TreePath path); 114 115 122 void setSelectionPaths(TreePath [] paths); 123 124 131 void addSelectionPath(TreePath path); 132 133 141 void addSelectionPaths(TreePath [] paths); 142 143 150 void removeSelectionPath(TreePath path); 151 152 160 void removeSelectionPaths(TreePath [] paths); 161 162 168 TreePath getSelectionPath(); 169 170 174 TreePath [] getSelectionPaths(); 175 176 179 int getSelectionCount(); 180 181 185 boolean isPathSelected(TreePath path); 186 187 190 boolean isSelectionEmpty(); 191 192 196 void clearSelection(); 197 198 202 void setRowMapper(RowMapper newMapper); 203 204 208 RowMapper getRowMapper(); 209 210 215 int[] getSelectionRows(); 216 217 222 int getMinSelectionRow(); 223 224 229 int getMaxSelectionRow(); 230 231 234 boolean isRowSelected(int row); 235 236 245 void resetRowSelection(); 246 247 251 int getLeadSelectionRow(); 252 253 257 TreePath getLeadSelectionPath(); 258 259 268 void addPropertyChangeListener(PropertyChangeListener listener); 269 270 277 void removePropertyChangeListener(PropertyChangeListener listener); 278 279 285 void addTreeSelectionListener(TreeSelectionListener x); 286 287 293 void removeTreeSelectionListener(TreeSelectionListener x); 294 } 295
| Popular Tags
|