Wil now show play and pauze icons, cleaner code for changing buttons & screens

This commit is contained in:
jancoow
2014-10-25 23:24:39 +02:00
parent 370bca2137
commit 923065bc99
6 changed files with 84 additions and 65 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
package weerstation1;
package weerstation;
import java.util.ArrayList;
@@ -124,7 +124,7 @@ public class Grootheid
}
public void display(String periodname){
public void display(String periodname, Boolean p, Boolean s){
GUIboard.clearLeft();
GUIboard.clearRight();
GUIboard.clearTop();
@@ -139,13 +139,13 @@ public class Grootheid
}
if(!(statics_name == "")){
GUIboard.writePageToMatrix(getName(), statics_name + getStatics(), periodname);
GUIboard.writePageToMatrix(getName(), statics_name + getStatics(), periodname, p, s);
}else if(!(custom == "")){
GUIboard.writePageToMatrix(getName(), custom, periodname);
GUIboard.writePageToMatrix(getName(), custom, periodname, p, s);
}
if(!(period == null)){
GUIboard.writePageToMatrix(getName(), period.toString(), periodname);
GUIboard.writePageToMatrix(getName(), period.toString(), periodname, p, s);
}
}