KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > common > NullListSelectionModel


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.common;
5
6 import javax.swing.ListSelectionModel JavaDoc;
7 import javax.swing.event.ListSelectionListener JavaDoc;
8
9 public class NullListSelectionModel implements ListSelectionModel JavaDoc {
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 JavaDoc x) {/**/}
31   public void removeListSelectionListener(ListSelectionListener JavaDoc x) {/**/}
32 }
33
Popular Tags