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

jadex.base.gui.filetree.TreeProperties Maven / Gradle / Ivy

There is a newer version: 2.4
Show newest version
package jadex.base.gui.filetree;


/**
 *  Struct for storing Tree properties.
 */
public class TreeProperties
{
	//-------- attributes --------
	
	/** The root path entries. */
	protected String[]	roots;
	
	/** The selected node (if any). */
	protected NodePath	selected;
	
	/** The expanded nodes. */
	protected NodePath[] expanded;
	
	//-------- methods --------
	
	/**
	 *  Get the root node.
	 */
	public String[]	getRootPathEntries()
	{
		return roots;
	}
	
	/**
	 *  Get the selected node.
	 */
	public NodePath	getSelectedNode()
	{
		return selected;
	}
	
	/**
	 *  Get the expanded nodes.
	 */
	public NodePath[]	getExpandedNodes()
	{
		return expanded;
	}
	
	/**
	 *  Set the root path entries.
	 */
	public void	setRootPathEntries(String[] roots)
	{
		this.roots	= roots;
	}
	
	/**
	 *  Set the selected node.
	 */
	public void	setSelectedNode(NodePath selected)
	{
		this.selected	= selected;
	}
	
	/**
	 *  Set the expanded nodes.
	 */
	public void	setExpandedNodes(NodePath[] expanded)
	{
		this.expanded	= expanded;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy