// Path: src/main/java/es/upm/fi/dia/oeg/map4rdf/client/resource/BrowserMessages.java
// public interface BrowserMessages extends Messages {
// 
// 	String statistics();
// 
// 	String results();
// 
// 	String overlays();
// 
// 	String loading();
// 
// 	String select();
// 
// 	String type();
// 
// 	String here();
// 
// 	String latitude();
// 
// 	String longitude();
// 
// 	String information();
// 	
// 	String edit();
// 	
// 	String filtres();
// 	
// 	String clear();
// 
// 	String draw();
// 	
// 	String canNotLoaddescription();
// }
// 
// Path: src/main/java/es/upm/fi/dia/oeg/map4rdf/share/StatisticDefinition.java
// public class StatisticDefinition implements Serializable {
// 
// 	private String dataset;
// 	private ArrayList<String> dimensions = new ArrayList<String>();
// 
// 	StatisticDefinition() {
// 		// for serialization
// 	}
// 
// 	public StatisticDefinition(String dataset) {
// 		this(dataset, null);
// 	}
// 
// 	public StatisticDefinition(String dataset, List<String> dimensions) {
// 		this.dataset = dataset;
// 		if (dimensions != null) {
// 			this.dimensions.addAll(dimensions);
// 		}
// 	}
// 
// 	public String getDataset() {
// 		return dataset;
// 	}
// 
// 	public List<String> getDimensions() {
// 		return dimensions;
// 	}
// 
// 	protected void setDimensions(ArrayList<String> dimensions) {
// 		this.dimensions = dimensions;
// 	}
// }


import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.logical.shared.HasSelectionHandlers;
import com.google.gwt.event.logical.shared.SelectionEvent;
import com.google.gwt.event.logical.shared.SelectionHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.ListBox;
import com.google.inject.Inject;
import es.upm.fi.dia.oeg.map4rdf.client.resource.BrowserMessages;
import es.upm.fi.dia.oeg.map4rdf.client.util.LocaleUtil;
import es.upm.fi.dia.oeg.map4rdf.share.Resource;
import es.upm.fi.dia.oeg.map4rdf.share.StatisticDefinition;
import java.util.List;
import name.alexdeleon.lib.gwtblocks.client.widget.prettypopup.PrettyPopup;
import name.alexdeleon.lib.gwtblocks.client.widget.prettypopup.PrettyPopupStylesheetFactory;
import com.google.gwt.event.dom.client.ClickEvent;
/**
 * Copyright (c) 2011 Ontology Engineering Group, 
 * Departamento de Inteligencia Artificial,
 * Facultad de Informetica, Universidad 
 * Politecnica de Madrid, Spain
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package es.upm.fi.dia.oeg.map4rdf.client.maplet.stats;





/**
 * @author Alexander De Leon
 */
public class StatisticsSelectionDialog extends PrettyPopup implements HasSelectionHandlers<StatisticDefinition> {

	private final ListBox datasetList = new ListBox();
	private final Button selectButton = new Button("Select");
// Path: src/main/java/es/upm/fi/dia/oeg/map4rdf/client/resource/BrowserMessages.java
// public interface BrowserMessages extends Messages {
// 
// 	String statistics();
// 
// 	String results();
// 
// 	String overlays();
// 
// 	String loading();
// 
// 	String select();
// 
// 	String type();
// 
// 	String here();
// 
// 	String latitude();
// 
// 	String longitude();
// 
// 	String information();
// 	
// 	String edit();
// 	
// 	String filtres();
// 	
// 	String clear();
// 
// 	String draw();
// 	
// 	String canNotLoaddescription();
// }
// 
// Path: src/main/java/es/upm/fi/dia/oeg/map4rdf/share/StatisticDefinition.java
// public class StatisticDefinition implements Serializable {
// 
// 	private String dataset;
// 	private ArrayList<String> dimensions = new ArrayList<String>();
// 
// 	StatisticDefinition() {
// 		// for serialization
// 	}
// 
// 	public StatisticDefinition(String dataset) {
// 		this(dataset, null);
// 	}
// 
// 	public StatisticDefinition(String dataset, List<String> dimensions) {
// 		this.dataset = dataset;
// 		if (dimensions != null) {
// 			this.dimensions.addAll(dimensions);
// 		}
// 	}
// 
// 	public String getDataset() {
// 		return dataset;
// 	}
// 
// 	public List<String> getDimensions() {
// 		return dimensions;
// 	}
// 
// 	protected void setDimensions(ArrayList<String> dimensions) {
// 		this.dimensions = dimensions;
// 	}
// }


// Path: src/main/java/es/upm/fi/dia/oeg/map4rdf/client/maplet/stats/StatisticsSelectionDialog.java
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.logical.shared.HasSelectionHandlers;
import com.google.gwt.event.logical.shared.SelectionEvent;
import com.google.gwt.event.logical.shared.SelectionHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.ListBox;
import com.google.inject.Inject;
import es.upm.fi.dia.oeg.map4rdf.client.resource.BrowserMessages;
import es.upm.fi.dia.oeg.map4rdf.client.util.LocaleUtil;
import es.upm.fi.dia.oeg.map4rdf.share.Resource;
import es.upm.fi.dia.oeg.map4rdf.share.StatisticDefinition;
import java.util.List;
import name.alexdeleon.lib.gwtblocks.client.widget.prettypopup.PrettyPopup;
import name.alexdeleon.lib.gwtblocks.client.widget.prettypopup.PrettyPopupStylesheetFactory;
import com.google.gwt.event.dom.client.ClickEvent;

/**
 * Copyright (c) 2011 Ontology Engineering Group, 
 * Departamento de Inteligencia Artificial,
 * Facultad de Informetica, Universidad 
 * Politecnica de Madrid, Spain
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package es.upm.fi.dia.oeg.map4rdf.client.maplet.stats;





/**
 * @author Alexander De Leon
 */
public class StatisticsSelectionDialog extends PrettyPopup implements HasSelectionHandlers<StatisticDefinition> {

	private final ListBox datasetList = new ListBox();
	private final Button selectButton = new Button("Select");
	private final BrowserMessages messages;