Next: Node instances, Previous: The AppTree, Up: The AppTree
The apptree package support several 'nodetypes', described by a structure that must be only manipulated via the apptree API. Each nodetype is displayed in a different way, and with different associated bindings. In that way, the apptree package permits to create several types of nodes, as projects, datamodels, documentation nodes, etc. I hope this to be a sufficiently scalable design in order to support future Ferret development (support more types of nodes).
Each nodetype has some associated attributes:
If the prefix string is empty, then no parentheis are drawn.
Note that code for actually selecting the node on the Tree widget is also appending.
Note that code for actually selecting the node on the Tree widget is also appending.
Example:
{ {"New project" project::new}
{"Open a new project" project::open}
{Separator}
{"Close project" project::close} }
Note that all the nodetype related information is keeping by the apptree package itself. So every client of the apptree package should use only its exported API.