1 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 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 |