コード例 #1
0
 public final void setNotation(DbSMSNotation newNotation) throws DbException {
   if (notation == newNotation) return;
   if (notation != null) notation.removeDbRefreshListener(this);
   notation = newNotation;
   notation.addDbRefreshListener(this, DbRefreshListener.CALL_ONCE);
   setApply(false);
 }
コード例 #2
0
 public final void propertyChange(PropertyChangeEvent ev) {
   if (ev.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)
       && ((Boolean) ev.getNewValue()).booleanValue()) {
     DbObject.fComposite.removeDbRefreshListener(orNotationbankComponent);
     DbSMSNotation.fName.removeDbRefreshListener(orNotationbankComponent);
     DbObject.fComposite.removeDbRefreshListener(beNotationbankComponent);
     DbSMSNotation.fName.removeDbRefreshListener(beNotationbankComponent);
     DbObject.fComposite.removeDbRefreshListener(umlNotationbankComponent);
     DbSMSNotation.fName.removeDbRefreshListener(umlNotationbankComponent);
     if (notation != null) notation.removeDbRefreshListener(this);
     if (project != null) project.removeDbRefreshListener(this);
   }
 }