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

org.wicketstuff.facebook.behaviors.EdgeRemoveEventBehavior 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 unlikes something (fb:like)
 * 
 * @author Till Freier
 * 
 */
public abstract class EdgeRemoveEventBehavior extends AbstractSubscribeBehavior
{

	protected EdgeRemoveEventBehavior()
	{
		super("edge.remove");
	}

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy