
package de.ivu.elect.business.dokumente.control;

import de.ivu.document.generator.template.monitor.DocumentProgress;
import de.ivu.document.generator.template.monitor.DocumentProgressMonitor;

public class ProgressMonitorWrapper implements DocumentProgressMonitor {

  private final ProgressMonitor monitor;

  public ProgressMonitorWrapper(ProgressMonitor monitor) {
    this.monitor = monitor;
  }

  @Override
  public void progress(DocumentProgress progress, int count, int size) {
    monitor.progress(progress, count, size);

  }

  @Override
  public void progress(DocumentProgress progress) {
    monitor.progress(progress);
  }

  @Override
  public boolean isCanceled() {
    return monitor.isCanceled();
  }
}
