Beispiel #1
0
  public void findAndUndo(Object someObj) {
    super.findAndUndo(someObj);

    if (someObj instanceof MapBean && map == someObj) {
      map = null;
    }

    if (someObj instanceof InformationDelegator && infoDelegator == someObj) {

      infoDelegator = null;
    }
  }
Beispiel #2
0
  public void findAndInit(Object someObj) {
    super.findAndInit(someObj);
    if (someObj instanceof MapHandler) {
      // Check to see if the MapBean is already available.
      map = (MapBean) mapHandler.get("com.bbn.openmap.MapBean");
      infoDelegator = (InformationDelegator) mapHandler.get("com.bbn.openmap.InformationDelegator");
    }

    if (someObj instanceof MapBean) {
      map = (MapBean) someObj;
    }

    if (someObj instanceof InformationDelegator) {
      infoDelegator = (InformationDelegator) someObj;
    }
  }