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: github.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:909f9dfa-cfe1-b260-69fa-3323c7b7ac21 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98EE:D39FC:4103F:5432C:696AD06E |
| html-safe-nonce | 04a3aeb0392afa0662cc84b3113eceeea6ffe15e977a11834b95e0e169f03e31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEVFOkQzOUZDOjQxMDNGOjU0MzJDOjY5NkFEMDZFIiwidmlzaXRvcl9pZCI6IjMwMTI3NDAwNDYxOTcxMDU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d3db8ae8dc02c8052dfb626ee4ea6b99e2468e31af72fa3e88d7ae55ffbd8aa |
| 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 | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| 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 | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width