PDA

View Full Version : PropertyGrid, some thoughts



DragonFist
22 Oct 2007, 8:48 PM
Been playing with the property grid to see if I can use it in a project.

Some things I would like to see in it. Perhaps some of these can be done via plugins:

1. a unsorted option. Sometimes the order I set the source in is the order I want it to be in.

2. Nested Properties. Something like the RowExpander except that when the value of a Property is another object or name/value pairs the row can be expanded to open another property grid (or just indented rows) for those properties.

3. A way to turn off the "click on the name and the value editor opens" or at least set the number of clicks it takes to do so. (clicksToEdit doesn't seem to affect this.)

4. An extension of #2, a way to set the source to a record or object and have it populate with nested values (except functions and such).

Anyhow, nice tool. I think the above would make it even more useful.

Best,

Shawn

Edit: Something that I imagine being able to do is:

PropsGrid.setSource(Tree.getSelectionModel().getSelectedNode().attributes);

or:

PropsGrid.setSource(grid3.getSelectionModel().getSelected().data);

Where, maybe, the main grid only has the name and the properties grid is a detail editor.

huangfengjing
23 Oct 2007, 4:26 AM
Seems so cool if the features you expcted could be implemented, ahh.
But I wanna know more is who will do this? Are you? Or mybe Jack :)

DragonFist
23 Oct 2007, 5:21 AM
I am merely musing. I personnally would have to roll up my sleeves and figure out how to do it. And, perhaps, I shall at some point. Unfortunately, I don't have the time right now to make such an effort.

So, to answer your question, I don't know. Maybe me, in the future. Or maybe someone with more knowledge of the library will read this, become inspired and bang it out before then. Or, maybe the team is already working on similar improvements, I don't know.