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

	// text boxes
	private TextBox userTextBox;
	private PasswordTextBox pwTextBox;

	// buttons
	private Button loginButton;
	private Button logoutButton;
	private Button sendButton;

	// Text area
	private TextArea textInputTextArea;

	// handler
	private ClickHandler sendClickHandler;
	private KeyPressHandler sendKeyPressHandler;
	private ClickHandler loginClickHandler;
	private KeyPressHandler loginUserKeyPressHandler;
	private KeyPressHandler loginPWKeyPressHandler;
	private ClickHandler logoutClickHandler;

	// handler registration
	private HandlerRegistration sendClickHandlerRegistration;
	private HandlerRegistration sendKeyPressHandlerRegistration;
	private HandlerRegistration loginClickHandlerRegistration;
	private HandlerRegistration loginUserKeyPressHandlerRegistration;
	private HandlerRegistration loginPWKeyPressHandlerRegistration;
	private HandlerRegistration logoutClickHandlerRegistration;

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


	// text boxes
	private TextBox userTextBox;
	private PasswordTextBox pwTextBox;

	// buttons
	private Button loginButton;
	private Button logoutButton;
	private Button sendButton;

	// Text area
	private TextArea textInputTextArea;

	// handler
	private ClickHandler sendClickHandler;
	private KeyPressHandler sendKeyPressHandler;
	private ClickHandler loginClickHandler;
	private KeyPressHandler loginUserKeyPressHandler;
	private KeyPressHandler loginPWKeyPressHandler;
	private ClickHandler logoutClickHandler;

	// handler registration
	private HandlerRegistration sendClickHandlerRegistration;
	private HandlerRegistration sendKeyPressHandlerRegistration;
	private HandlerRegistration loginClickHandlerRegistration;
	private HandlerRegistration loginUserKeyPressHandlerRegistration;
	private HandlerRegistration loginPWKeyPressHandlerRegistration;
	private HandlerRegistration logoutClickHandlerRegistration;

	// RPC
	private DatabaseAccessAsync databaseAccessSvc;