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

com.sksamuel.jqm4gwt.toolbar.JQMFooter Maven / Gradle / Ivy

There is a newer version: 1.4.7
Show newest version
package com.sksamuel.jqm4gwt.toolbar;

import com.google.gwt.user.client.ui.Widget;

/**
 * @author Stephen K Samuel [email protected] 4 May 2011 21:21:13
 * 
 *         This class models a JQM Footer element. It can contain an arbitary
 *         number of other widgets.
 * 
 * @link 
 *       http://jquerymobile.com/demos/1.2.0/docs/toolbars/docs-footers.html
 * 
 */
public class JQMFooter extends JQMToolbar {

	/**
	 * Create a new empty {@link JQMFooter}. Use this when you want a blank
	 * footer that you will add widgets to later.
	 */
	public JQMFooter() {
		this((String) null);
	}

	/**
	 * Creates a new footer with the given text as a h1 element
	 * 
	 * @param text
	 *              the text to use in the h1 element
	 */
	public JQMFooter(String text) {
		super("footer", "jpm4gwt-footer", text);
	}

	/**
	 * Create a new footer containing the given array of widgets.
	 * 
	 * @param widgets
	 *              the array of widgets to add to the footer bar
	 */
	public JQMFooter(Widget... widgets) {
		this((String) null);
		for (Widget widget : widgets) {
			add(widget);
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy