/** * Specifies the model's globe. * * @param globe the model's new globe. May be null, in which case the current globe will be detached from the * model. */ public void setGlobe(Globe globe) { // don't raise an exception if globe == null. In that case, we are disassociating the model from any globe //remove property change listener "this" from the current globe. if (this.globe != null) { this.globe.removePropertyChangeListener(this); } // if the new globe is not null, add "this" as a property change listener. if (globe != null) { globe.addPropertyChangeListener(this); } Globe old = this.globe; this.globe = globe; this.firePropertyChange(AVKey.GLOBE, old, this.globe); }