All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.future.earth.gwt.client.ui.general.SupLabel Maven / Gradle / Ivy

The newest version!
package eu.future.earth.gwt.client.ui.general;

import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.HasText;

public class SupLabel extends ComplexPanel implements HasText {

	public SupLabel() {
		this(null);
	}

	public SupLabel(String newValue) {
		super();
		setElement(Document.get().createElement("sup"));
		if (newValue != null) {
			setText(newValue);
		}
	}

	@Override
	public String getText() {
		return getElement().getInnerText();
	}

	@Override
	public void setText(String text) {
		getElement().setInnerText(text);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy