All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fathzer.soft.jclop.swing.RemoteFileListWorker Maven / Gradle / Ivy

package com.fathzer.soft.jclop.swing;

import java.util.Collection;

import com.fathzer.soft.ajlib.swing.worker.Worker;
import com.fathzer.soft.jclop.Account;
import com.fathzer.soft.jclop.Cancellable;
import com.fathzer.soft.jclop.Entry;


final class RemoteFileListWorker extends Worker, Void> implements Cancellable {
	private final Account account;

	RemoteFileListWorker(Account account) {
		this.account = account;
	}

	@Override
	protected Collection doProcessing() throws Exception {
		return account.getService().getRemoteEntries(account, this);
	}

	@Override
	public void setPhase(String phase, int phaseLength) {
		super.setPhase(phase, phaseLength);
	}

	@Override
	public void setCancelAction(Runnable action) {
	}

	@Override
	public void setMax(int length) {
		super.setPhaseLength(length);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy