KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > table > EmptyTableModel


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.table;
14
15 /**
16  * @author av
17  */

18 public class EmptyTableModel implements TableModel {
19   static TableModel model = new EmptyTableModel();
20
21   public static TableModel instance() {
22     return model;
23   }
24
25   private EmptyTableModel() {
26   }
27
28   public String JavaDoc getTitle() {
29     return "";
30   }
31
32   public int getRowCount() {
33     return 0;
34   }
35
36   public TableRow getRow(int rowIndex) {
37     return null;
38   }
39
40   public int getColumnCount() {
41     return 0;
42   }
43
44   public String JavaDoc getColumnTitle(int columnIndex) {
45     return null;
46   }
47
48   public void addTableModelChangeListener(TableModelChangeListener listener) {
49   }
50   
51   public void removeTableModelChangeListener(TableModelChangeListener listener) {
52   }
53
54   public void fireModelChanged(boolean identityChanged) {
55   }
56 }
57
Popular Tags