01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.common;
05:
06: import javax.swing.ListSelectionModel;
07: import javax.swing.event.ListSelectionListener;
08:
09: public class NullListSelectionModel implements ListSelectionModel {
10: public static final int NULL_SELECTION = 3;
11:
12: public int getAnchorSelectionIndex() {
13: return -1;
14: }
15:
16: public int getLeadSelectionIndex() {
17: return -1;
18: }
19:
20: public int getMaxSelectionIndex() {
21: return -1;
22: }
23:
24: public int getMinSelectionIndex() {
25: return -1;
26: }
27:
28: public int getSelectionMode() {
29: return NULL_SELECTION;
30: }
31:
32: public void clearSelection() {/**/
33: }
34:
35: public boolean getValueIsAdjusting() {
36: return false;
37: }
38:
39: public boolean isSelectionEmpty() {
40: return true;
41: }
42:
43: public void setAnchorSelectionIndex(int index) {/**/
44: }
45:
46: public void setLeadSelectionIndex(int index) {/**/
47: }
48:
49: public void setSelectionMode(int selectionMode) {/**/
50: }
51:
52: public boolean isSelectedIndex(int index) {
53: return false;
54: }
55:
56: public void addSelectionInterval(int index0, int index1) {/**/
57: }
58:
59: public void removeIndexInterval(int index0, int index1) {/**/
60: }
61:
62: public void removeSelectionInterval(int index0, int index1) {/**/
63: }
64:
65: public void setSelectionInterval(int index0, int index1) {/**/
66: }
67:
68: public void insertIndexInterval(int index, int length,
69: boolean before) {/**/
70: }
71:
72: public void setValueIsAdjusting(boolean valueIsAdjusting) {/**/
73: }
74:
75: public void addListSelectionListener(ListSelectionListener x) {/**/
76: }
77:
78: public void removeListSelectionListener(ListSelectionListener x) {/**/
79: }
80: }
|