Examples of stateChanged()


Examples of org.spoutcraft.launcher.util.DownloadListener.stateChanged()

    private final AtomicReference<DownloadListener> wrapped = new AtomicReference<DownloadListener>(null);
    public void stateChanged(String fileName, float progress) {
      fileName = (new File(fileName)).getName();
      DownloadListener listener = wrapped.get();
      if (listener != null) {
        listener.stateChanged(fileName, progress);
      }
    }

    public void setDownloadListener(DownloadListener listener) {
      wrapped.set(listener);
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.