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

com.jwebmp.plugins.jstree.options.JSTreeDefaultOptions Maven / Gradle / Ivy

/*
 * 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.jstree.options;

import com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart;
import com.jwebmp.core.plugins.ComponentInformation;

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

/**
 * @author GedMarc
 * @version 1.0
 * @since 22 Dec 2016
 */
@ComponentInformation(name = "JS Tree Sort Plugin",
		description = "This plugin automatically arranges all sibling nodes according to a comparison config option function, which defaults to alphabetical order.",
		url = "https://www.jstree.com/plugins/")
public class JSTreeDefaultOptions>
		extends JavaScriptPart
{


	/**
	 * configure which plugins will be active on an instance. Should be an array of strings, where each element is a plugin name. The default is
	 */
	private List plugins;

	public JSTreeDefaultOptions()
	{
		//Nothing Needed
	}

	/**
	 * configure which plugins will be active on an instance. Should be an array of strings, where each element is a plugin name. The default is
	 *
	 * @return
	 */
	public List getPlugins()
	{
		if (plugins == null)
		{
			plugins = new ArrayList<>();
		}
		return plugins;
	}

	/**
	 * configure which plugins will be active on an instance. Should be an array of strings, where each element is a plugin name. The default is
	 *
	 * @param plugins
	 */
	public void setPlugins(List plugins)
	{
		this.plugins = plugins;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy