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

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

The 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