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

wicket.contrib.tinymce.ajax.TinyMceAjaxSubmitLink Maven / Gradle / Ivy

There is a newer version: 10.0.0-M2
Show newest version
package wicket.contrib.tinymce.ajax;

import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink;
import org.apache.wicket.markup.html.form.Form;

/**
 * An AjaxSubmitLink with the TinyMceAjaxSubmitModifier
 * 
 * @author Sander van Faassen
 */
public abstract class TinyMceAjaxSubmitLink extends AjaxSubmitLink
{
	/** */
	private static final long serialVersionUID = 1L;

	/**
	 * @param id
	 * @param form
	 */
	public TinyMceAjaxSubmitLink(String id, Form form)
	{
		super(id, form);
		addTinyMceAjaxSubmitModifier();
	}

	/**
	 * @param id
	 */
	public TinyMceAjaxSubmitLink(String id)
	{
		super(id);
		addTinyMceAjaxSubmitModifier();
	}

	/**
	 * Add the TinyMceAjaxSubmitModifier to this AjaxSubmitLink
	 */
	private final void addTinyMceAjaxSubmitModifier()
	{
		add(new TinyMceAjaxSubmitModifier());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy