Skip to content

Commit

Permalink
Ready for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lian-D committed Jan 27, 2019
1 parent 1d7e9d4 commit 3eab9d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
20 changes: 4 additions & 16 deletions frontend/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified frontend/out/production/Display/gui/Patientdata$1.class
Binary file not shown.
Binary file modified frontend/out/production/Display/gui/Patientdata.class
Binary file not shown.
21 changes: 12 additions & 9 deletions frontend/src/gui/Patientdata.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class Patientdata implements Initializable {

@Override
public void initialize(URL location, ResourceBundle resources) {

//The Following is for the demo, please ignore this
PriorityList priorityList = new PriorityList();
ArrayList<String> priority = new ArrayList<>();
ArrayList<String> norm = new ArrayList<>();
Expand All @@ -30,25 +32,26 @@ public void initialize(URL location, ResourceBundle resources) {
priority.add("Urgent Room 105 needs a AED");
priorityList.priorityAlerts = priority;
priorityList.alerts = norm;
//I will make this stuff update soon
ArrayList<String> priorities = priorityList.getAlerts();
for (String s: priorities){
listView.getItems().add(s);
}

File file = new File("speechdata.txt");
FileUpdateCheck fuc = new FileUpdateCheck();
fuc.fileUpdate(file);
//This is how we test for if our files have updated
int delay = 5000; //milliseconds
ActionListener taskPerformer = new ActionListener() {
public void actionPerformed(ActionEvent evt) {
System.out.println("Checking For Updates");
File file = new File("speechdata.txt");
FileUpdateCheck fuc = new FileUpdateCheck();
fuc.fileUpdate(file);
boolean value = fuc.isFileUpdated(file);
System.out.println(value);
value = fuc.isFileUpdated(file);
System.out.println(value);
fuc.timeStamp = 550000;
value = fuc.isFileUpdated(file);
System.out.println(value);
// value = fuc.isFileUpdated(file);
// System.out.println(value);
// fuc.timeStamp = 550000;
// value = fuc.isFileUpdated(file);
// System.out.println(value);
}
};
new javax.swing.Timer(delay, taskPerformer).start();
Expand Down

0 comments on commit 3eab9d8

Please sign in to comment.