1 13 package com.tonbeller.wcf.table; 14 15 16 19 public abstract class AbstractTableModel implements TableModel { 20 private TableModelChangeSupport changeSupport; 21 22 protected AbstractTableModel() { 23 changeSupport = new TableModelChangeSupport(this); 24 } 25 26 public void fireModelChanged() { 27 changeSupport.fireModelChanged(false); 28 } 29 30 public void fireModelChanged(boolean identityChanged) { 31 changeSupport.fireModelChanged(identityChanged); 32 } 33 34 public void addTableModelChangeListener(TableModelChangeListener l) { 35 changeSupport.addTableModelChangeListener(l); 36 } 37 38 public void removeTableModelChangeListener(TableModelChangeListener l) { 39 changeSupport.removeTableModelChangeListener(l); 40 } 41 42 } 43 | Popular Tags |