01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.impl.comp;
15:
16: import javax.swing.DefaultListSelectionModel;
17: import javax.swing.ListSelectionModel;
18: import javax.swing.event.ListSelectionListener;
19:
20: /**
21: *
22: * @author jmarranz
23: */
24: public class EmptyListSelectionModelImpl extends
25: DefaultListSelectionModel {
26: public static final ListSelectionModel SINGLETON = new EmptyListSelectionModelImpl();
27:
28: /** Creates a new instance of EmptyListSelectionModelImpl */
29: public EmptyListSelectionModelImpl() {
30: }
31:
32: public void setSelectionInterval(int index0, int index1) {
33: }
34:
35: public void addSelectionInterval(int index0, int index1) {
36: }
37:
38: public void removeSelectionInterval(int index0, int index1) {
39: }
40:
41: public void setAnchorSelectionIndex(int index) {
42: }
43:
44: public void setLeadSelectionIndex(int index) {
45: }
46:
47: public void clearSelection() {
48: }
49:
50: public void insertIndexInterval(int index, int length,
51: boolean before) {
52: }
53:
54: public void removeIndexInterval(int index0, int index1) {
55: }
56:
57: public void setValueIsAdjusting(boolean valueIsAdjusting) {
58: }
59:
60: public void setSelectionMode(int selectionMode) {
61: }
62:
63: public void addListSelectionListener(ListSelectionListener x) {
64: }
65:
66: public void removeListSelectionListener(ListSelectionListener x) {
67: }
68:
69: public void setLeadAnchorNotificationEnabled(boolean flag) {
70: }
71:
72: }
|