Added set Current Dataset Function
This commit is contained in:
@@ -182,6 +182,22 @@ public class App extends Application
|
|||||||
return currentDataset;
|
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.
|
* Creates new dataset.
|
||||||
* @param datasetName
|
* @param datasetName
|
||||||
|
|||||||
Reference in New Issue
Block a user