1 13 package com.tonbeller.wcf.selection; 14 15 import java.util.Collection ; 16 import java.util.Set ; 17 18 23 public interface SelectionModel extends SingleSelectionModel { 24 25 static final int NO_SELECTION = 0; 26 27 static final int SINGLE_SELECTION = 1; 28 29 static final int MULTIPLE_SELECTION = 2; 30 31 static final int SINGLE_SELECTION_HREF = 3; 32 33 static final int MULTIPLE_SELECTION_BUTTON = 4; 34 35 static final int MULTIPLE_SELECTION_HREF = 5; 36 37 static final int SINGLE_SELECTION_BUTTON = 6; 38 39 int getMode(); 40 void setMode(int mode); 41 Set getSelection(); 42 void add(Object obj); 43 void addAll(Collection c); 44 void remove(Object obj); 45 boolean contains(Object obj); 46 } 47 | Popular Tags |