Title: Allow to supply SearchAction with custom ActionListener · Issue #10 · scijava/scijava-search · GitHub
Open Graph Title: Allow to supply SearchAction with custom ActionListener · Issue #10 · scijava/scijava-search
X Title: Allow to supply SearchAction with custom ActionListener · Issue #10 · scijava/scijava-search
Description: Currently, we generate a default ActionListener for every SearchAction in the details pane: scijava-search/src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java Lines 514 to 521 in 14315f8 for (final SearchAction action : actions...
Open Graph Description: Currently, we generate a default ActionListener for every SearchAction in the details pane: scijava-search/src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java Lines 514 to 521 in 14315f8 ...
X Description: Currently, we generate a default ActionListener for every SearchAction in the details pane: scijava-search/src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java Lines 514 to 521 in 14315f8 ...
Opengraph URL: https://github.com/scijava/scijava-search/issues/10
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow to supply SearchAction with custom ActionListener","articleBody":"Currently, we generate a default `ActionListener` for every `SearchAction` in the details pane:\r\nhttps://github.com/scijava/scijava-search/blob/14315f805141d18c71c712225cc8fbfde090cfa6/src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java#L514-L521\r\n\r\nAllowing for `SearchAction`s to provide their own `ActionListener` would allow more flexibility, e.g. displaying a small popup menu (`JPopupMenu`) with additional (sub-)choices that wouldn't justify the creation of an own `SearchAction` for them.\r\n\r\nThis goes in the same direction as https://github.com/scijava/scijava-search/issues/4 to provide more flexibility to define search actions.\r\n\r\nThe problem with allowing with allowing `ActionListener` as a parameter would be that we introduce an awt dependency in a UI-agnostic `SearchAction`, so this would have to be abstracted somehow...\r\n","author":{"url":"https://github.com/imagejan","@type":"Person","name":"imagejan"},"datePublished":"2018-01-15T16:30:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/10/scijava-search/issues/10"}
| 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:5a46973d-8a01-db5b-bd7c-3363d110f5de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D476:25678D:1580D55:1E1654B:696F4F51 |
| html-safe-nonce | 1acaa5c7ca59a8918dd38f3cad1c665f4d3ba6579d81e5a76e049c63b7f537d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDc2OjI1Njc4RDoxNTgwRDU1OjFFMTY1NEI6Njk2RjRGNTEiLCJ2aXNpdG9yX2lkIjoiMjYyMDE3NTE0NDYzNzY0ODcyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d06f41f88bf43c06e404e1224eb4b38d78032888b97a8351bf56c476326e2bf |
| hovercard-subject-tag | issue:288651832 |
| 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-search/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dec91d0f5751b691c200f346226d9324ee13dccff13a6db683587be411c5df5f/scijava/scijava-search/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dec91d0f5751b691c200f346226d9324ee13dccff13a6db683587be411c5df5f/scijava/scijava-search/issues/10 |
| og:image:alt | Currently, we generate a default ActionListener for every SearchAction in the details pane: scijava-search/src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java Lines 514 to 521 in 14315f8 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imagejan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49bb2ee76ae1b4ec758faefafda636ff20b05a9708bb290d28422cdf542ae979 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-search git https://github.com/scijava/scijava-search.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 114413803 |
| octolytics-dimension-repository_nwo | scijava/scijava-search |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 114413803 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-search |
| 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 | 036f37fe552777ac9c6ee661957f947285aab936 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width