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.
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.