1 19 20 package org.netbeans.modules.editor.errorstripe.privatespi; 21 22 import java.beans.PropertyChangeListener ; 23 import java.beans.PropertyChangeSupport ; 24 import java.util.List ; 25 import org.netbeans.spi.editor.errorstripe.UpToDateStatus; 26 27 35 public abstract class MarkProvider { 36 37 39 public static final String PROP_MARKS = "marks"; 41 private PropertyChangeSupport pcs; 42 43 44 public MarkProvider() { 45 pcs = new PropertyChangeSupport (this); 46 } 47 48 52 public abstract List getMarks(); 53 54 58 public final void addPropertyChangeListener(PropertyChangeListener l) { 59 pcs.addPropertyChangeListener(l); 60 } 61 62 66 public final void removePropertyChangeListener(PropertyChangeListener l) { 67 pcs.removePropertyChangeListener(l); 68 } 69 70 78 protected final void firePropertyChange(String name, Object old, Object nue) { 79 pcs.firePropertyChange(name, old, nue); 80 } 81 82 } 83 | Popular Tags |