Added a background loader, periods will now be loaded in the background. Left blue button wil now pauze / resume the period switcher

This commit is contained in:
jancoow
2014-10-23 17:49:16 +02:00
parent 85b6a9d448
commit d276efc53f
4 changed files with 374 additions and 188 deletions
+5 -4
View File
@@ -1,3 +1,4 @@
package weerstation1;
import java.util.ArrayList;
@@ -123,7 +124,7 @@ public class Grootheid
}
public void display(){
public void display(String periodname){
GUIboard.clearLeft();
GUIboard.clearRight();
GUIboard.clearTop();
@@ -138,13 +139,13 @@ public class Grootheid
}
if(!(statics_name == "")){
GUIboard.writePageToMatrix(getName(), statics_name + getStatics(), "");
GUIboard.writePageToMatrix(getName(), statics_name + getStatics(), periodname);
}else if(!(custom == "")){
GUIboard.writePageToMatrix(getName(), custom, "");
GUIboard.writePageToMatrix(getName(), custom, periodname);
}
if(!(period == null)){
GUIboard.writePageToMatrix(getName(), period.toString(), "");
GUIboard.writePageToMatrix(getName(), period.toString(), periodname);
}
}