Tutorial Writing a Custom Tree

Delisa Mason edited this page Aug 29, 2011 · 1 revision

What is a Tree?

Trees appear on the left of the window. An example of a tree is the directory view. There is a simple interface which you can implement to create your own trees.

Here’s some terminology:

  • Trees are represented by the Tree class. You create an instance of this to show a tree in Redcar.
  • A tree mirror is an object that can be queried by Redcar to get the contents of the tree. You will implement one of these to display your tree.
  • A tree controller is an object that can respond to tree events, like clicks. You will implement one of these if you want to respond to user input.

Creating a simple Tree of your own

Adding icons

Responding to clicks

Adding drag and drop