1 29 30 package nextapp.echo2.app.list; 31 32 import java.io.Serializable ; 33 34 import nextapp.echo2.app.event.ChangeListener; 35 36 39 public interface ListSelectionModel 40 extends Serializable { 41 42 public static final int SINGLE_SELECTION = 0; 43 public static final int MULTIPLE_SELECTION = 2; 44 45 51 public void addChangeListener(ChangeListener l); 52 53 56 public void clearSelection(); 57 58 64 public int getMaxSelectedIndex(); 65 66 72 public int getMinSelectedIndex(); 73 74 85 public int getSelectionMode(); 86 87 93 public boolean isSelectedIndex(int index); 94 95 100 public boolean isSelectionEmpty(); 101 102 108 public void removeChangeListener(ChangeListener l); 109 110 116 public void setSelectedIndex(int index, boolean selected); 117 118 129 public void setSelectionMode(int selectionMode); 130 } 131 | Popular Tags |