1 13 package com.tonbeller.wcf.table; 14 15 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 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 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 |