-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopyOfControllerMap.java
More file actions
64 lines (49 loc) · 1.73 KB
/
CopyOfControllerMap.java
File metadata and controls
64 lines (49 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import java.awt.event.ActionEvent;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
/**
* Write a description of class CopyOfControllerMap here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class CopyOfControllerMap
{
// Singleton pattern
private static CopyOfControllerMap instance;
private static Object[][] data;
//StatisticsBorough otherObject = new StatisticsBorough();
// Declare other controllers
StatisticsBorough statisticsBorough;
// Declare the models (Source of data)
ModelMain modelMain;
// Declare the statistics class generator
Statistics statistics;
//String[] mapColumnNames = StatisticsBorough columnNames;
String[] columnNames = {"Date", "retail Recreation GMR","park GMR","Transit GMR", "Work Places GMR","Residential GMR","new COVID cases", "total COVID cases "};
/**
* Constructor for objects of class CopyOfControllerMap
*/
public CopyOfControllerMap() {}
public static CopyOfControllerMap getInstance() {
if (instance == null) {
instance = new CopyOfControllerMap();
}
return instance;
}
// @FXML
// public void handleENFIButton(ActionEvent event){
// // System.out.println("Button worked");
// // statisticsBorough = statisticsBorough.getInstance();
// // String borough = "Enfield";
// // data = statisticsBorough.boroughData(borough);
// // showTable();
// }
@FXML
private void sampleEvent(ActionEvent event) {
System.out.println("Button worked");
}
}