I've tried to simulate some folder/file tree. I wanted to allow simple operations upon right click (new subfolder, rename, delete). For the new subfolder and rename operations, I display some modalPanel with a simple inputtext and ok/cancel buttons.

All works fine, but a nice to have feature would be to set the selected item name in the modal panel input text upon the rename operation. However, I don't know how to do that.