1 20 package org.enhydra.barracuda.core.comp; 21 22 import org.enhydra.barracuda.core.comp.model.Model; 23 24 25 31 public interface ListSelectionModel extends Model { 32 33 39 public static final int SINGLE_SELECTION = 0; 40 41 47 public static final int SINGLE_INTERVAL_SELECTION = 1; 48 49 55 public static final int MULTIPLE_INTERVAL_SELECTION = 2; 56 57 public void setSelectionMode(int selectionMode); 58 public int getSelectionMode(); 59 public void setSelectionInterval(int index0, int index1); 60 public void addSelectionInterval(int index0, int index1); 61 public void removeSelectionInterval(int index0, int index1); 62 public int getMinSelectionIndex(); 63 public int getMaxSelectionIndex(); 64 public boolean isSelectedIndex(int index); 65 public boolean isSelectionEmpty(); 66 public void clearSelection(); 67 68 } 69 | Popular Tags |