// 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);
// 
// }


import java.util.Date;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.media.client.Audio;
import com.google.gwt.media.client.Video;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.webwoz.client.client.DatabaseAccess;
import com.webwoz.client.client.DatabaseAccessAsync;
		// panels to structure layout
		headPanel = new VerticalPanel();
		titlePanel = new HorizontalPanel();
		contentPanel = new VerticalPanel();
		footPanel = new VerticalPanel();
		loginPanel = new HorizontalPanel();
		asrPanel = new VerticalPanel();
		textPanel = new VerticalPanel();
		audioPanel = new VerticalPanel();
		mmPanel = new VerticalPanel();
		txtInPanel = new HorizontalPanel();

		// labels
		userLabel = new Label("User: ");
		pwLabel = new Label("Password: ");
		loginMessage = new Label();

		// text boxes
		userTextBox = new TextBox();
		pwTextBox = new PasswordTextBox();

		// text areas
		textInputTextArea = new TextArea();

		// buttons
		loginButton = new Button("login");
		logoutButton = new Button("logout");
		sendButton = new Button("Send");

		// 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/WebWOZClient.java
import java.util.Date;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.media.client.Audio;
import com.google.gwt.media.client.Video;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.webwoz.client.client.DatabaseAccess;
import com.webwoz.client.client.DatabaseAccessAsync;

		// panels to structure layout
		headPanel = new VerticalPanel();
		titlePanel = new HorizontalPanel();
		contentPanel = new VerticalPanel();
		footPanel = new VerticalPanel();
		loginPanel = new HorizontalPanel();
		asrPanel = new VerticalPanel();
		textPanel = new VerticalPanel();
		audioPanel = new VerticalPanel();
		mmPanel = new VerticalPanel();
		txtInPanel = new HorizontalPanel();

		// labels
		userLabel = new Label("User: ");
		pwLabel = new Label("Password: ");
		loginMessage = new Label();

		// text boxes
		userTextBox = new TextBox();
		pwTextBox = new PasswordTextBox();

		// text areas
		textInputTextArea = new TextArea();

		// buttons
		loginButton = new Button("login");
		logoutButton = new Button("logout");
		sendButton = new Button("Send");

		// RPC
		databaseAccessSvc = GWT.create(DatabaseAccess.class);