com.sksamuel.jqm4gwt.plugins.grid960.Grid960Panel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jqm4gwt-grid960 Show documentation
Show all versions of jqm4gwt-grid960 Show documentation
Plugin to jqm4gwt to use Jquery Mobile Grid960
package com.sksamuel.jqm4gwt.plugins.grid960;
import com.google.gwt.dom.client.Document;
import com.google.gwt.uibinder.client.UiChild;
import com.google.gwt.user.client.ui.Widget;
import com.sksamuel.jqm4gwt.panel.JQMPanel;
public class Grid960Panel extends JQMPanel {
protected Grid960Panel() {
super(Document.get().createDivElement(), "grid960", "container_12");
}
@UiChild
public void add(GridColumn col) {
super.add(col);
}
@Override
public void add(Widget w) {
throw new RuntimeException("Grid960Panels only accept GridColumns. Add your content to a grid column and " +
"then add the column to this panel.");
}
}