Title: Add UI agnostic table selection listener · Issue #12 · scijava/scijava-table · GitHub
Open Graph Title: Add UI agnostic table selection listener · Issue #12 · scijava/scijava-table
X Title: Add UI agnostic table selection listener · Issue #12 · scijava/scijava-table
Description: Continuing the discussion in the forum, citing @ctrueden: However: I would like to discuss & design a way of using SciJava’s UI-agnostic event mechanism for UI actions. That way, every table viewer implementation would fire the same SciJ...
Open Graph Description: Continuing the discussion in the forum, citing @ctrueden: However: I would like to discuss & design a way of using SciJava’s UI-agnostic event mechanism for UI actions. That way, every table viewer...
X Description: Continuing the discussion in the forum, citing @ctrueden: However: I would like to discuss & design a way of using SciJava’s UI-agnostic event mechanism for UI actions. That way, every table vi...
Opengraph URL: https://github.com/scijava/scijava-table/issues/12
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add UI agnostic table selection listener","articleBody":"Continuing the [discussion in the forum](https://forum.image.sc/t/ij2-interactive-results-table/19705/16), citing @ctrueden: \r\n\u003eHowever: I would like to discuss \u0026 design a way of using SciJava’s UI-agnostic event mechanism for UI actions. That way, every table viewer implementation would fire the same SciJava events on the `EventService` , and you could listen for them, without worrying about whether it is a Swing-based UI or not. \r\n\r\nWould this be something worth considering?\r\n- add a `TableSelectionModel` in `scijava-table`\r\n- publish `TableSelectionChangedEvent(TableSelectionModel model, Table source)` from the `SwingTableDisplayPanel` in `scijava-swing-ui` via `EventService`\r\n\r\n.. this way I can load a `GenericTable table`, display it via `UIService` and filter `TableSelectionChangedEvent`s by `event.source == table`. \r\n\r\nCould this work bi-directional? I could publish my own `TableSelectionChangedEvent(myOwnTableSelectionModel, genericTable)` the table UI would listen to that and adjust accordingly.\r\n\r\nThere could be a general `SelectionModel\u003cT\u003e` and a `SelectionChangedEvent`, but what would `T` be then in case of a `TableSelectionModel`? It should communicate which column and which row is selected, so it could be `TableSelectionModel extends SelectionModel\u003cPair\u003cColumn, Integer\u003e\u003e `...","author":{"url":"https://github.com/frauzufall","@type":"Person","name":"frauzufall"},"datePublished":"2020-04-03T10:57:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/12/scijava-table/issues/12"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e928d967-232d-f0f3-6363-fb14b6739709 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D054:1C7DFD:B4A2EC:E65084:69742A71 |
| html-safe-nonce | 413dc2c0da91a9e627ca5bb7339232db8d65f0287e6ba3c61af3379236d22aa6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDU0OjFDN0RGRDpCNEEyRUM6RTY1MDg0OjY5NzQyQTcxIiwidmlzaXRvcl9pZCI6IjMxOTE1NzMwNTM5MTczNzUwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d9a56081fa3428feed8263d163371d47dcf311ccfe52d46cd6baf521982f85c |
| hovercard-subject-tag | issue:593298044 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-table/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57f0fb5b9575246c811a199345d77a9ea44a9209ab24f8e51e0cc5480d930055/scijava/scijava-table/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57f0fb5b9575246c811a199345d77a9ea44a9209ab24f8e51e0cc5480d930055/scijava/scijava-table/issues/12 |
| og:image:alt | Continuing the discussion in the forum, citing @ctrueden: However: I would like to discuss & design a way of using SciJava’s UI-agnostic event mechanism for UI actions. That way, every table viewer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frauzufall |
| hostname | github.com |
| expected-hostname | github.com |
| None | f0c542b740cf8c6c6deff23a0eeffd05a0e8bd35565559ca5ec1535bcbb67e5c |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-table git https://github.com/scijava/scijava-table.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 136337458 |
| octolytics-dimension-repository_nwo | scijava/scijava-table |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 136337458 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-table |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4e27a77ef0bf22cd9328967ddc1e1c3dfa6ffe51 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width