KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
17  * @author av
18  */

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