public void replaceName(String oldName, String newName) { super.addName(newName); setDirtyAndFirePropertyChange(CAROWNERS_NAME_CHANGED_PROPERTY, oldName, newName); super.deleteName(newName); }
protected void setDirtyAndFirePropertyChange(String p, Object old, Object n) { // Set dirty CarManagerXml.instance().setDirty(true); super.firePropertyChange(p, old, n); }
@Override public void deleteName(String owner) { super.deleteName(owner); setDirtyAndFirePropertyChange(CAROWNERS_CHANGED_PROPERTY, owner, null); }