// Path: webwozclient/src/com/webwoz/client/client/DatabaseAccess.java
// @RemoteServiceRelativePath("databaseAccess")
// public interface DatabaseAccess extends RemoteService {
// 
// 	void storeData(String sql);
// 
// 	String[][] retrieveData(String sql);
// 
// 	String getDateTime();
// 
// 	void closeConnection();
// 
// }
// 
// Path: webwozclient/src/com/webwoz/client/client/DatabaseAccessAsync.java
// public interface DatabaseAccessAsync {
// 
// 	void storeData(String sql, AsyncCallback<Void> callback);
// 
// 	void retrieveData(String sql, AsyncCallback<String[][]> callback);
// 
// 	void getDateTime(AsyncCallback<String> callback);
// 
// 	void closeConnection(AsyncCallback<Void> callback);
// 
// }
// 
// Path: webwozclient/src/com/webwoz/client/client/Screen.java
// public interface Screen {
// 	VerticalPanel getScreen();
// 
// 	void stopReload();
// }


import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.webwoz.client.client.DatabaseAccess;
import com.webwoz.client.client.DatabaseAccessAsync;
import com.webwoz.client.client.Screen;
package com.webwoz.client.client.layouts;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */


public class ExampleClientScreen02 implements Screen {

	// Panels
	private VerticalPanel layoutPanel = new VerticalPanel();
	private VerticalPanel outputPanel = new VerticalPanel();
	private HTML outputText = new HTML("");

	// Refresh interval
	private static final int REFRESH_INTERVAL = 1000;
	private Timer refreshTimer;
	private boolean reload;

	// RPC
// Path: webwozclient/src/com/webwoz/client/client/DatabaseAccess.java
// @RemoteServiceRelativePath("databaseAccess")
// public interface DatabaseAccess extends RemoteService {
// 
// 	void storeData(String sql);
// 
// 	String[][] retrieveData(String sql);
// 
// 	String getDateTime();
// 
// 	void closeConnection();
// 
// }
// 
// Path: webwozclient/src/com/webwoz/client/client/DatabaseAccessAsync.java
// public interface DatabaseAccessAsync {
// 
// 	void storeData(String sql, AsyncCallback<Void> callback);
// 
// 	void retrieveData(String sql, AsyncCallback<String[][]> callback);
// 
// 	void getDateTime(AsyncCallback<String> callback);
// 
// 	void closeConnection(AsyncCallback<Void> callback);
// 
// }
// 
// Path: webwozclient/src/com/webwoz/client/client/Screen.java
// public interface Screen {
// 	VerticalPanel getScreen();
// 
// 	void stopReload();
// }


// Path: webwozclient/src/com/webwoz/client/client/layouts/ExampleClientScreen02.java
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.webwoz.client.client.DatabaseAccess;
import com.webwoz.client.client.DatabaseAccessAsync;
import com.webwoz.client.client.Screen;

package com.webwoz.client.client.layouts;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */


public class ExampleClientScreen02 implements Screen {

	// Panels
	private VerticalPanel layoutPanel = new VerticalPanel();
	private VerticalPanel outputPanel = new VerticalPanel();
	private HTML outputText = new HTML("");

	// Refresh interval
	private static final int REFRESH_INTERVAL = 1000;
	private Timer refreshTimer;
	private boolean reload;

	// RPC
	private DatabaseAccessAsync databaseAccessSvc = GWT