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

com.jwebmp.plugins.jqxwidgets.dropdownlist.JQXDropDownListNameValuePair Maven / Gradle / Ivy

There is a newer version: 1.0.16.0-jre14
Show newest version
/*
 * Copyright (C) 2017 GedMarc
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package com.jwebmp.plugins.jqxwidgets.dropdownlist;

import com.fasterxml.jackson.annotation.JsonValue;
import com.jwebmp.plugins.jqxwidgets.dataadapter.options.JQXDataAdapterSourceData;

import java.util.ArrayList;
import java.util.List;

/**
 * This Class
 *
 * @author GedMarc
 * @since 31 Dec 2015
 */
public class JQXDropDownListNameValuePair
		extends JQXDataAdapterSourceData
{

	private List values;

	public JQXDropDownListNameValuePair()
	{
		//No config needed
	}

	@Override
	public String toString()
	{
		return super.toString();
	}

	@JsonValue
	public List getValues()
	{
		if (values == null)
		{
			values = new ArrayList<>();
		}
		return values;
	}

	public void setValues(List values)
	{
		this.values = values;
	}

	public static class JQXDropDownListData

	{

		private String name;
		private String value;

		public JQXDropDownListData()
		{
		}

		public JQXDropDownListData(String name, String value)
		{
			this.name = name;
			this.value = value;
		}

		public JQXDropDownListData(String name)
		{
			this.name = name;
		}

		public String getName()
		{
			return name;
		}

		public void setName(String name)
		{
			this.name = name;
		}

		public String getValue()
		{
			return value;
		}

		public void setValue(String value)
		{
			this.value = value;
		}

	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy