1 4 package com.tc.admin.common; 5 6 import javax.swing.ListSelectionModel ; 7 import javax.swing.event.ListSelectionListener ; 8 9 public class NullListSelectionModel implements ListSelectionModel { 10 public static final int NULL_SELECTION = 3; 11 12 public int getAnchorSelectionIndex() {return -1;} 13 public int getLeadSelectionIndex() {return -1;} 14 public int getMaxSelectionIndex() {return -1;} 15 public int getMinSelectionIndex() {return -1;} 16 public int getSelectionMode() {return NULL_SELECTION;} 17 public void clearSelection() {} 18 public boolean getValueIsAdjusting() {return false;} 19 public boolean isSelectionEmpty() {return true;} 20 public void setAnchorSelectionIndex(int index) {} 21 public void setLeadSelectionIndex(int index) {} 22 public void setSelectionMode(int selectionMode) {} 23 public boolean isSelectedIndex(int index) {return false;} 24 public void addSelectionInterval(int index0, int index1) {} 25 public void removeIndexInterval(int index0, int index1) {} 26 public void removeSelectionInterval(int index0, int index1) {} 27 public void setSelectionInterval(int index0, int index1) {} 28 public void insertIndexInterval(int index, int length, boolean before) {} 29 public void setValueIsAdjusting(boolean valueIsAdjusting) {} 30 public void addListSelectionListener(ListSelectionListener x) {} 31 public void removeListSelectionListener(ListSelectionListener x) {} 32 } 33 | Popular Tags |