Added set Current Dataset Function

This commit is contained in:
YaFedImYaEatIm
2016-09-23 10:42:11 +12:00
parent 30cf90bb40
commit 42a0ecfb94
@@ -182,6 +182,22 @@ public class App extends Application
return currentDataset;
}
/**
* Sets the current Dataset to another Dataset by its index in the datasets arraylist
* @param index
*/
public void setCurrentDataset(int index){
currentDataset = datasets.get(index);
}
/**
* Sets the current Dataset to another Dataset.
* @param dataset
*/
public void setCurrentDataset(Dataset dataset){
currentDataset = dataset;
}
/**
* Creates new dataset.
* @param datasetName