1 package org.catacomb.druid.xtext.base; 2 3 4 public class DMItem { 5 6 7 public DMItem parent; 8 9 10 public DMItem() { 11 12 } 13 14 15 public void notifyAppearanceChange() { 16 propogateChange(this); 17 } 18 19 private void propogateChange(Object src) { 20 childChanged(src); 21 22 if (parent != null) { 23 parent.propogateChange(src); 24 } 25 } 26 27 public void setParent(DMItem dmi) { 28 parent = dmi; 29 } 30 31 public void childChanged(Object src) { 32 33 } 34 35 }