Examples of notifyObservers()


Examples of de.hpi.eworld.core.ModelManager.notifyObservers()

   */
  @Override
  public void run() {
    ModelManager manager = ModelManager.getInstance();
    manager.setChanged();
    manager.notifyObservers(new ObserverNotification(NotificationType.startBatchProcess));
    manager.clearChanged();
   
    Collection<ModelElement> allElements = ModelManager.getInstance().getAllModelElements();
    int totalNumber = allElements.size();
    if(totalNumber == 0) totalNumber = 1;
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager.notifyObservers()

                              progress));
      this.clearChanged();
    }
   
    manager.setChanged();
    manager.notifyObservers(new ObserverNotification(NotificationType.endBatchProcess, true, false));
    manager.clearChanged();
   
    this.setChanged();
    if(progressDialog.wasCanceled()) {
      this.notifyObservers(new ObserverNotification(NotificationType.failed));
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager.notifyObservers()

    ModelManager model = ModelManager.getInstance();
   
    model.clearModel();

    model.setChanged();
    model.notifyObservers(new ObserverNotification(NotificationType.startBatchProcess));
    model.clearChanged();
   
    for(String id : nodes.keySet()) {
      MyNode n = nodes.get(id);
      NodeModel newNode = new NodeModel(n.lat, n.lon);
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager.notifyObservers()

        model.addModelElement(newWay);
      }
    }
   
    model.setChanged();
    model.notifyObservers(new ObserverNotification(NotificationType.endBatchProcess, true, false));
    model.clearChanged();
  }

  /*
   * embedded SAX Handler-Class
View Full Code Here

Examples of helloworld.behavioral.observer.Subject.notifyObservers()

        helloWorldMementoOriginator.restoreFromMemento(memento);
        System.out.println(helloWorldMementoOriginator.helloWorld());

        System.out.println("19. Observer: ");
        Subject subject = new Subject().attach(new HelloWorldObserver());
        subject.notifyObservers();

        System.out.println("20. State: ");
        HelloWorldStateContext helloWorldStateContext = new HelloWorldStateContext();
        HelloWorld stateHelloWorld = helloWorldStateContext.appendWord("Hello").appendWord("State");
        System.out.println(stateHelloWorld.helloWorld());
View Full Code Here

Examples of net.sf.jmp3renamer.datamanager.DataManager.notifyObservers()

    private void applySorting() {
        DataManager dm = DataManager.getInstance();
        Sorter sorter = (Sorter) comboSort.getSelectedItem();
        sorter.sort(dm.getDatasets());
        dm.setSorter(sorter);
        dm.notifyObservers();
    }
}
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.notifyObservers()

                    "Components of the proxy service may not be initialized");
            }

            AxisService as = axisConfig.getServiceForActivation(this.getName());
            as.setActive(true);
            axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, as), as);
            this.setRunning(true);
            auditInfo("Started the proxy service : " + name);
        } else {
            auditWarn("Unable to start proxy service : " + name +
                ". Couldn't access Axis configuration");
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.notifyObservers()

            try {
                AxisService as = axisConfig.getService(this.getName());
                if (as != null) {
                    as.setActive(false);
                    axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_STOP, as), as);
                }
                this.setRunning(false);
                auditInfo("Stopped the proxy service : " + name);
            } catch (AxisFault axisFault) {
                handleException("Error stopping the proxy service : " + name, axisFault);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.notifyObservers()

                    "Components of the proxy service may not be initialized");
            }

            AxisService as = axisConfig.getServiceForActivation(this.getName());
            as.setActive(true);
            axisConfig.notifyObservers(AxisEvent.SERVICE_START, as);
            this.setRunning(true);
            auditInfo("Started the proxy service : " + name);
        } else {
            auditWarn("Unable to start proxy service : " + name +
                ". Couldn't access Axis configuration");
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.notifyObservers()

            try {
                AxisService as = axisConfig.getService(this.getName());
                if (as != null) {
                    as.setActive(false);
                    axisConfig.notifyObservers(AxisEvent.SERVICE_STOP, as);
                }
                this.setRunning(false);
                auditInfo("Stopped the proxy service : " + name);
            } catch (AxisFault axisFault) {
                handleException("Error stopping the proxy service : " + name, axisFault);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.