public void findAndUndo(Object someObj){
  if (someObj instanceof LayerHandler) {
    logger.fine("LayersPanel removing LayerHandler");
    if (getLayerHandler() == (LayerHandler)someObj) {
      setLayerHandler(null);
    }
  }
  if (controls != null && someObj != this) {
    controls.findAndUndo(someObj);
  }
  if (someObj instanceof Layer) {
    paneLookUp.remove((Layer)someObj);
  }
}

public void findAndUndo ( Object someObj ) { if ( someObj instanceof LayerHandler ) { logger . fine ( "LayersPanel removing LayerHandler" ) ; if ( getLayerHandler ( ) == ( LayerHandler ) someObj ) { setLayerHandler ( null ) ; } } if ( controls != null && someObj != this ) { controls . findAndUndo ( someObj ) ; } if ( someObj instanceof Layer ) { paneLookUp . remove ( ( Layer ) someObj ) ; } }
beancontextmembershiplistener method . called when an object has been removed from the parent beancontext . if a layerhandler is removed , and it ' s the current one being listened to , then the layers in the panel will be wiped clean .
