KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > tree > AbstractTreeModel


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.tree;
14
15
16 public abstract class AbstractTreeModel implements TreeModel {
17   private TreeModelChangeSupport changeSupport;
18
19   protected AbstractTreeModel() {
20     changeSupport = new TreeModelChangeSupport(this);
21   }
22
23   public void fireModelChanged(boolean identityChanged) {
24     changeSupport.fireModelChanged(identityChanged);
25   }
26
27   public void fireModelChanged(boolean identityChanged, Object JavaDoc parent) {
28     changeSupport.fireModelChanged(identityChanged, parent);
29   }
30
31   public void fireModelChanged() {
32     changeSupport.fireModelChanged(false);
33   }
34
35   public void addTreeModelChangeListener(TreeModelChangeListener l) {
36     changeSupport.addTreeModelChangeListener(l);
37   }
38
39   public void removeTreeModelChangeListener(TreeModelChangeListener l) {
40     changeSupport.removeTreeModelChangeListener(l);
41   }
42
43 }
44
Popular Tags