Updater.java :  » Math » lablayer » LabLayer » controller » Java Open Source

Java Open Source » Math » lablayer 
lablayer » LabLayer » controller » Updater.java
/**
 * 
 */
package lablayer.controller;

import lablayer.view.ViewComponentInterface;

/**
 *
 */
class Updater implements Updatable {
  private ViewComponentInterface viewComponent = null;
  
  private Updater() {
    super();
  }
  
  public Updater(ViewComponentInterface viewComponent) {
    this();
    try {
                    assert viewComponent != null : "viewComponent is null pointer";
                    this.viewComponent = viewComponent;
    } catch (AssertionError e) {
                    //e.printStackTrace();
    }
  }

  @Override
  public void update() {
    this.viewComponent.update();
  }
  
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.