Tree (control)

from Wikipedia, the free encyclopedia
Tree that represents a directory with subdirectories (in the Konqueror file manager )

A tree , illustrative, and tree view (ger .: Tree view or treeview ), is a control of a graphical user interface , which is a hierarchical list and allows selection of them. The tree consists of several nested nodes, which can be opened or closed with a mouse click on the symbol shown in front (usually a plus or minus sign or a triangle).

presentation

The tree is usually shown with the root in the upper left corner. The connecting lines between the nodes can be drawn or omitted. If these are not shown, the hierarchical structure can only be recognized by the indented display of the nodes. Another distinguishing feature is the representation of the leaves, which are integrated in the tree or on a detail page z. B. can be displayed in the form of a list.

An alternative form of a tree is the combination with a text box . Depending on the content of this text box, only the nodes and leaves that contain the entered search term in any form are displayed in the tree. Such trees are used in Eclipse , among others .

use

Trees are often used to represent hierarchically nested structures. The hierarchical directory structure of a computer, for example, is often represented as a tree. Well-known application examples are the folder structure in Windows Explorer or the Xtree file manager under DOS .

The list of software settings is also often shown as a tree to make it clearer.

Most IDEs can represent the structure of a software project as a tree (from the entire project down to sections in individual files).