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

org.wicketstuff.twitter.behavior.FollowButtonBehavior Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
package org.wicketstuff.twitter.behavior;


/**
 * 
 * @author Till Freier
 * 
 */
public class FollowButtonBehavior extends AbstractAnywhereBehavior
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private final String account;

	public FollowButtonBehavior(String apiKey, String account)
	{
		super(apiKey);
		this.account = account;
	}

	@Override
	protected String getAnywhereMethod()
	{
		final StringBuilder js = new StringBuilder();
		js.append("followButton('");
		js.append(account);
		js.append("')");

		return js.toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy