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

org.wicketstuff.select2.StringTextChoiceProvider Maven / Gradle / Ivy

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

import java.util.Collection;

/**
 * A simple {@code StringTextChoiceProvider} for Strings.
 *
 * @author Tom Götz ([email protected])
 */
public abstract class StringTextChoiceProvider extends ChoiceProvider
{
	private static final long serialVersionUID = 1L;

	@Override
	public String getDisplayValue(String choice)
	{
		return choice;
	}

	@Override
	public String getIdValue(String choice)
	{
		return choice;
	}

	@Override
	public Collection toChoices(Collection ids)
	{
		return ids;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy