bind componentTree to TreePanel

Hi there i was wondering if someone can give advice how to implement a editable tree for ext components as used in the sencha architect itself.

I think there are many solutions for doing this, my first try was to bind the treestore records (nodeInterface) direct to the container components. Like in the code snippet bellow.
But then i realized that the component methods and the nodeInterface seem to have the same
interface.

So maybe the best way is to extend the Treestore to use components in some way.
For example by mixin the nodeinterface...