Package org.biojava.utils

Examples of org.biojava.utils.ChangeSupport.firePreChangeEvent()


            t,
            null
        );
        ChangeSupport cs = getChangeSupport(Ontology.TRIPLE);
        synchronized(cs) {
          cs.firePreChangeEvent(ce);
          addTerm(t);
          addTriple(t);
          cs.firePostChangeEvent(ce);
        }
      }
View Full Code Here


        new Object[] { key, value },
        new Object[] { key, properties.get(key)}
      );
      ChangeSupport cs = getChangeSupport(Annotation.PROPERTY);
      synchronized(cs) {
        cs.firePreChangeEvent(ce);
        properties.put(key, value);
        cs.firePostChangeEvent(ce);
      }
    }
  }
View Full Code Here

        new Object[] { key, null },
        new Object[] { key, properties.get(key)}
      );
      ChangeSupport cs = getChangeSupport(Annotation.PROPERTY);
      synchronized(cs) {
        cs.firePreChangeEvent(ce);
        properties.remove(key);
        cs.firePostChangeEvent(ce);
      }
    }
  }
View Full Code Here

            t,
            null
        );
        ChangeSupport cs = getChangeSupport(Ontology.TERM);
        synchronized(cs) {
          cs.firePreChangeEvent(ce);
          terms.put(t.getName(), t);
          cs.firePostChangeEvent(ce);
        }
      }
    }
View Full Code Here

            null,
            t
        );
        ChangeSupport cs = getChangeSupport(Ontology.TERM);
        synchronized(cs) {
          cs.firePreChangeEvent(ce);
          terms.remove(name);
          if (t instanceof Triple) {
            removeTriple((Triple) t);
          }
          cs.firePostChangeEvent(ce);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.