public void removeFromAllListeners(MapBean mapBean){
  if (mapBean != null) {
    removeZoomListener((ZoomListener)mapBean);
    mapBean.removeProjectionListener(this);
    scaleField.setText("----");
  }
}

public void removeFromAllListeners ( MapBean mapBean ) { if ( mapBean != null ) { removeZoomListener ( ( ZoomListener ) mapBean ) ; mapBean . removeProjectionListener ( this ) ; scaleField . setText ( "----" ) ; } }
this function removes the mapbean object from its set of listeners . an inverse of setuplisteners ( ) method .
