<commit_before>/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the GNU Affero
 * General Public License. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */

package org.geomajas.widget.featureinfo.client.widget;

import org.geomajas.gwt.client.widget.KeepInScreenWindow;
import org.geomajas.widget.featureinfo.client.FeatureInfoMessages;

import com.google.gwt.core.client.GWT;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.Label;

/**
 * 
 * @author <NAME>
 */
public class FeatureInfoHtmlWindow extends KeepInScreenWindow {

	private static final FeatureInfoMessages MESSAGES = GWT.create(FeatureInfoMessages.class);

	public FeatureInfoHtmlWindow(String html) {
		buildWidget(html);
	}

	private void buildWidget(String html) {
		setTitle(MESSAGES.layerHtmlWindowTitleMessage());
		setWidth(300);
		setHeight(400);
		setOverflow(Overflow.AUTO);
		Label label = new Label();
		label.setContents(html);
		label.show();
		addItem(label);
	}

}
<commit_msg>Made FeatureInfo HTML window resizable<commit_after>/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the GNU Affero
 * General Public License. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */

package org.geomajas.widget.featureinfo.client.widget;

import org.geomajas.gwt.client.widget.KeepInScreenWindow;
import org.geomajas.widget.featureinfo.client.FeatureInfoMessages;

import com.google.gwt.core.client.GWT;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.Label;

/**
 * 
 * @author <NAME>
 */
public class FeatureInfoHtmlWindow extends KeepInScreenWindow {

	private static final FeatureInfoMessages MESSAGES = GWT.create(FeatureInfoMessages.class);

	public FeatureInfoHtmlWindow(String html) {
		buildWidget(html);
	}

	private void buildWidget(String html) {
		setTitle(MESSAGES.layerHtmlWindowTitleMessage());
		setWidth(400);
		setHeight(400);
		setOverflow(Overflow.AUTO);
		setCanDragResize(true);
		Label label = new Label();
		label.setContents(html);
		label.show();
		addItem(label);
	}

}

{'fraction_non_alphanumeric': 0.10414246999612853, 'fraction_numerical': 0.01084010840108401, 'mean_word_length': 4.81981981981982, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2504287', 'n_tokens_mistral': 848, 'n_tokens_neox': 780, 'n_words': 201}