com.sksamuel.jqm4gwt.html.Div Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jqm4gwt-standalone Show documentation
Show all versions of jqm4gwt-standalone Show documentation
jqm4gwt bundled with all of its dependencies
The newest version!
package com.sksamuel.jqm4gwt.html;
import com.google.gwt.user.client.ui.FlowPanel;
/**
* An implementation of a <div> element exposed as a widget. Shorter equivalent of FlowPanel.
*
*/
public class Div extends FlowPanel {
// implements HasText or HasHTML cannot be declared!
// Otherwise UiBinder will be broken.
public Div() {
}
public String getText() {
return getElement().getInnerText();
}
public void setText(String text) {
getElement().setInnerText(text);
}
public Div withText(String text) {
setText(text);
return this;
}
public String getHTML() {
return getElement().getInnerHTML();
}
public void setHTML(String html) {
getElement().setInnerHTML(html);
}
public Div withHTML(String html) {
setHTML(html);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy