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

com.sksamuel.jqm4gwt.html.Div Maven / Gradle / Ivy

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