淘先锋技术网

首页 1 2 3 4 5 6 7

import javafx.beans.property.SimpleDoubleProperty;

import javafx.beans.property.SimpleStringProperty;

public final class DownloadData {

private final SimpleStringProperty fileName = new SimpleStringProperty();

private final SimpleStringProperty status = new SimpleStringProperty();

private final SimpleStringProperty dlSpeed = new SimpleStringProperty();

private final SimpleDoubleProperty progress = new SimpleDoubleProperty();

private final SimpleStringProperty downloadSize = new SimpleStringProperty();

private final SimpleStringProperty dlPercent = new SimpleStringProperty();

private String uuid;

public DownloadData(String filename, double progress) {

setFileName(filename);

setProgress(progress);

}

public DownloadData(String status, String filename, String dlSpeed, double progress) {

setStatus(status);

setFileName(filename);

setDlSpeed(dlSpeed);

setProgress(progress);

}

public String getFileName() {

return fileName.get();

}

public void setFileName(String fileName) {

this.fileName.set(fileName);

}

public SimpleStringProperty fileNameProperty(){

return fileName;

}

public String getStatus() {

return status.get();

}

public void setStatus(String status) {

this.status.set(status);

}

public SimpleStringProperty statusProperty(){

return status;

}

public String getDlSpeed() {

return dlSpeed.get();

}

public void setDlSpeed(String dlSpeed) {

this.dlSpeed.set(dlSpeed);

}

public SimpleStringProperty dlSpeedProperty(){

return dlSpeed;

}

public double getProgress() {

return progress.get();

}

public void setProgress(double progress) {

this.progress.set(progress);

}

public SimpleDoubleProperty progressProperty(){

return progress;

}

public String getDownloadSize() {

return downloadSize.get();

}

public void setDownloadSize(String downloadSize) {

this.downloadSize.set(downloadSize);

}

public SimpleStringProperty downloadSizeProperty(){

return downloadSize;

}

public String getDlPercent() {

return dlPercent.get();

}

public void setDlPercent(String dlPercent) {

this.dlPercent.set(dlPercent);

}

public SimpleStringProperty dlPercentProperty(){

return dlPercent;

}

public String getUUID() {

return uuid;

}

public void setUUID(String uuid) {

this.uuid = uuid;

}

}