function TreeView(parent, closeable, container, index)
{
	TabComponent.call(this, parent, closeable, container, index, "Project Explorer", Global.FILE_PATH + "icons/misc/menu.png");

	var self = this;

	this.element.style.overflow = "auto";
	this.element.style.backgroundColor = null;

	this.search = new SearchBox(this);
	this.search.element.style.backgroundColor = "var(--bar-color)";
	this.search.setOnChange(function()
	{
		self.selectByName(self.search.search.getText());
	});

	this.program = null;
	this.root = null;
}
TreeView component is used to represent a object tree.

Each tree entry represents direclty a Object3D object present in the editor.

@class TreeView
@extends {TabComponent}
@param {Component} parent Parent element.
@param {boolean} closeable If the tab is closeable.
@param {TabGroup} container The container where this tab is inserted.
@param {number} index Index inside the container button array.