Ticket #1646 (closed defect: moved)
Opened 2013-02-01T14:57:36-06:00
Last modified 2013-03-20T11:48:50-05:00
Improve Table API
Reported by: | curtis | Owned by: | curtis |
---|---|---|---|
Priority: | minor | Milestone: | imagej2-unscheduled |
Component: | Data Model | Version: | 2.0.0-beta6 |
Severity: | minor | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1713 |
Description
I believed the Table API (e.g., for Results tables) was pretty thorough, but when trying to use it to implement a new IJ2 List Shortcuts command, I discovered that there are no appendRow methods. These would be a nice convenience, rather than having to explicitly call set(String colHeader, int row, Object value) for each cell of the row.
Well, there *are* appendRow methods, but none that take the actual row data. So the current ListShortcuts implementation does:
When what would be nicer would be:
Of course, while this is more succinct, it also loses the column-safety, assuming columns are in a particular order.