public void ping(String title, String[] data){
		if(title.equals("key-data")){
			this.textName.ping(title, data);
			this.textEarned.ping(title,data);
			this.textTotal.ping(title,data);
		}
		else if(title.equals("mouse-data")){
			int x = (int)Double.parseDouble(data[0]);
			int y = (int)Double.parseDouble(data[1]);
			int event = Integer.parseInt(data[2]);
			this.textName.ping(title, data);
			this.textEarned.ping(title,data);
			this.textTotal.ping(title, data);
			this.confirm.mouseAction(x,y,event);
			this.cancel.mouseAction(x,y,event);
		}
		else if(title.equals("text-earned")){
			if(data[0].equals(""))
				this.earned=0;
			else
				this.earned = Integer.parseInt(data[0]);
		}
		else if(title.equals("text-total")){
			if(data[0].equals(""))
				this.total=0;
			else
				this.total = Integer.parseInt(data[0]);
		}
		else if(title.equals("confirm")){
			String[] pushData = {this.textName.getFullText(),""+earned,""+total};
			super.pushData("create-grade", pushData);
		}
		else if(title.equals("cancel")){
			super.pushData("remove-widget",null);
		}
		else if(title.equals("update")){
			super.pushData("update",null);
		}
	}