I have created a
Miller Columns widget for Vaadin. This Miller Columns component can be used to display hierarchical data, and on the server-side the component extends Vaadin’s Tree component. A picture tells more than thousand words:
See this
demo to test the component. Also
source codes and Vaadin 6.2 compatible
jar are available.
Quick bug report. When you are in the right edge of the screen already and navigate deeper, the widget should automatically scroll horizontally to show the selected tree node children. To correct, always when selecting, scroll as far right as possible.
I’m trying to use this component again as its very handy in certain circumstances, but I’m not understanding its behavior right now: why do I have to click on an element to make it selected? Whats the meaning of the second click? The first click opens, and the second click highlights, but I would like a single click to open and highlight, like a normal tree operates. Can you help?
Thank you,
Mark
Edit:
PS. I’ve noticed that this causes a problem when I want to add child elements, so I need a way to select a parent element with a single click, as it takes 2 right now to select a parent so that children can be added to the selected parent
Wow, I love this component! I noticed that it will keep track of what you have opened up as you move between branches of the tree. Is there a way to do this programmatically? Or to be able to open a branch programmatically?
but nothing seems to work. Then I noticed there is a ‘partialUpdate’ section of code that does some important stuff, is there something special I need to do to activate the partial update?
Unfortunately the component throws NullPointerException when processing data from client-side widget, when the tree is lazy-built (using expand and collapse listeners).
The itemId in line 119 get’s nulled in this case, so the next line throws the exception.
It’s null because int the event processing code of the tree component, itemIdMapper gets all the mappings cleared.