Examples of ObserverNotification


Examples of de.hpi.eworld.observer.ObserverNotification

  {
    if(this.points.size() > index && index > 0)
    {
      this.points.remove(index);
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * @param points a list with the polygon points
   */
  public void setPoints(List<GlobalPosition> points) {
    this.points = points;
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setStartTime(int startTime) {
    boolean changed = (startTime != this.startTime);
    this.startTime = startTime;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setEndTime(int endTime) {
    boolean changed = (endTime != this.endTime);
    this.endTime = endTime;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * @param location The location
   */
  public void setLocation(LocationModel location) {
    this.location = location;
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * Delete all old affected edges.
   */
  public void resetEdges() {
    this.edges = new ArrayList<EdgeModel>();
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  {
    if (edge != null && !this.edges.contains(edge))
    {     
      this.edges.add(edge);
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setEventType(Type type) {
    boolean changed = ((type != null) && (!type.equals(this.type)));
    this.type = type;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setFullBlock(boolean fullBlock) {
    boolean changed = (this.fullBlock != fullBlock);
    this.fullBlock = fullBlock;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * @param blockedLanes The new list of blocked lanes.
   */
  public void setBlockedLanes(ArrayList<LaneModel> blockedLanes) {
    this.blockedLanes = blockedLanes;
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
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.