// 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/Screen.java
// public interface Screen {
// 	VerticalPanel getScreen();
// 
// 	void stopReload();
// }
// 
// 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 com.google.gwt.user.client.ui.VerticalPanel;
import com.webwoz.client.client.DatabaseAccess;
import com.webwoz.client.client.Screen;
import com.webwoz.client.client.DatabaseAccessAsync;
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.logical.shared.OpenEvent;
import com.google.gwt.event.logical.shared.OpenHandler;
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.DisclosurePanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
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 ExampleClientScreen01 implements Screen {
	// Panels
	private VerticalPanel layoutPanel = new VerticalPanel();
	private VerticalPanel audioOutputPanel = new VerticalPanel();
	private VerticalPanel textOutputPanel = new VerticalPanel();
	private VerticalPanel mmOutputPanel = new VerticalPanel();
	private HorizontalPanel controlPanel = new HorizontalPanel();
	private VerticalPanel infoPanel = new VerticalPanel();
	private HorizontalPanel contentPanel = new HorizontalPanel();
	private DisclosurePanel translatedUtterancePanel = new DisclosurePanel(
			"Deutscher Text");
	private DisclosurePanel originalUtterancePanel = new DisclosurePanel(
			"Englischer Originaltext");
	private HTML info = new HTML();
	private HTML intro = new HTML(
			"<p><strong>Bitte dr&uuml;cken Sie nun auf <strong>'Version A' </strong> bzw. <strong>'Version B' </strong> um das Experiment zu beginnen.</p>");
	private HTML infoVersion01 = new HTML(
			"<p><strong>Information:</strong><br /> Falls Sie eine Aussage des Systems nicht verstehen haben Sie die M&ouml;glicheit entweder den (maschinell &uuml;bersetzten) Deutschen Text oder den Englischen Orginaltext einzusehen. Bitte klicken sie dazu auf den ensprechenden Pfeil. Um die Session zu beenden dr&uuml;cken Sie bitte auf <strong>'Stop'</strong>.</p>");
	private HTML infoVersion02 = new HTML(
			"<p><strong>Information:</strong><br /> Falls Sie den &uuml;bersetzten Text nicht verstehen haben Sie die M&ouml;glicheit die orginale (Englische) Textversion einzusehen. Bitte klicken sie dazu auf den ensprechenden Pfeil. Um die Session zu beenden dr&uuml;cken Sie bitte auf <strong>'Stop'</strong>.</p>");
	private HTML translUttText = new HTML("");
	private HTML origUttText = new HTML("");

	// Buttons
	private Button startV01Button = new Button("Version A");
	private Button startV02Button = new Button("Version B");
	private Button startV03Button = new Button("Video");
	private Button startV04Button = new Button("English Text & Speech");
	private Button stopButton = new Button("Stop");

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

	// RPC
	private DatabaseAccessAsync databaseAccessSvc = GWT
// 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/Screen.java
// public interface Screen {
// 	VerticalPanel getScreen();
// 
// 	void stopReload();
// }
// 
// 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/layouts/ExampleClientScreen01.java
import com.google.gwt.user.client.ui.VerticalPanel;
import com.webwoz.client.client.DatabaseAccess;
import com.webwoz.client.client.Screen;
import com.webwoz.client.client.DatabaseAccessAsync;
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.logical.shared.OpenEvent;
import com.google.gwt.event.logical.shared.OpenHandler;
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.DisclosurePanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;

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 ExampleClientScreen01 implements Screen {
	// Panels
	private VerticalPanel layoutPanel = new VerticalPanel();
	private VerticalPanel audioOutputPanel = new VerticalPanel();
	private VerticalPanel textOutputPanel = new VerticalPanel();
	private VerticalPanel mmOutputPanel = new VerticalPanel();
	private HorizontalPanel controlPanel = new HorizontalPanel();
	private VerticalPanel infoPanel = new VerticalPanel();
	private HorizontalPanel contentPanel = new HorizontalPanel();
	private DisclosurePanel translatedUtterancePanel = new DisclosurePanel(
			"Deutscher Text");
	private DisclosurePanel originalUtterancePanel = new DisclosurePanel(
			"Englischer Originaltext");
	private HTML info = new HTML();
	private HTML intro = new HTML(
			"<p><strong>Bitte dr&uuml;cken Sie nun auf <strong>'Version A' </strong> bzw. <strong>'Version B' </strong> um das Experiment zu beginnen.</p>");
	private HTML infoVersion01 = new HTML(
			"<p><strong>Information:</strong><br /> Falls Sie eine Aussage des Systems nicht verstehen haben Sie die M&ouml;glicheit entweder den (maschinell &uuml;bersetzten) Deutschen Text oder den Englischen Orginaltext einzusehen. Bitte klicken sie dazu auf den ensprechenden Pfeil. Um die Session zu beenden dr&uuml;cken Sie bitte auf <strong>'Stop'</strong>.</p>");
	private HTML infoVersion02 = new HTML(
			"<p><strong>Information:</strong><br /> Falls Sie den &uuml;bersetzten Text nicht verstehen haben Sie die M&ouml;glicheit die orginale (Englische) Textversion einzusehen. Bitte klicken sie dazu auf den ensprechenden Pfeil. Um die Session zu beenden dr&uuml;cken Sie bitte auf <strong>'Stop'</strong>.</p>");
	private HTML translUttText = new HTML("");
	private HTML origUttText = new HTML("");

	// Buttons
	private Button startV01Button = new Button("Version A");
	private Button startV02Button = new Button("Version B");
	private Button startV03Button = new Button("Video");
	private Button startV04Button = new Button("English Text & Speech");
	private Button stopButton = new Button("Stop");

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

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