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

org.wicketstuff.facebook.behaviors.EdgeCreateEventBehavior Maven / Gradle / Ivy

There is a newer version: 10.1.1
Show newest version
package org.wicketstuff.facebook.behaviors;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.request.IRequestParameters;

/**
 * fired when the user likes something (fb:like)
 * 
 * @author Till Freier
 * 
 */
public abstract class EdgeCreateEventBehavior extends AbstractSubscribeBehavior
{

	protected EdgeCreateEventBehavior()
	{
		super("edge.create");
	}

	/**
	 * 
	 * @param target
	 * @param url
	 *            URL that was liked
	 */
	protected abstract void onEdgeCreate(AjaxRequestTarget target, String url);

	@Override
	protected void onEvent(final AjaxRequestTarget target, final IRequestParameters parameters,
		final String response)
	{
		onEdgeCreate(target, response);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy