* @param x X座標
* @param y Y座標
*/
public void sendResult(int x, int y){
//キャッシュへ結果を書き込む
final StatisticsServiceAsync service =
(StatisticsServiceAsync)GWT.create(
StatisticsService.class);
((ServiceDefTarget)service).setServiceEntryPoint(
GWT.getHostPageBaseURL() + "fourtypes/stat");
GWT.log("[TestButtonPanel:sendResult()] " +
"prepared sending result to server");
service.setResult(x, y, new Date(), new AsyncCallback<Void>(){
/**
* 結果送信処理失敗時処理。
* 失敗したらそのままほったらかす。
* @param caught 発生した例外
*/