Skip to content

Conversation

@karlduderstadt
Copy link
Contributor

@karlduderstadtkarlduderstadt commented Aug 3, 2021

This add support for widget groups. Strings with a GROUP visibility become group labels. Group members are annotated using the group annotation with the same name. The expanded annotation on Group label determines whether group members are showing or hidden initially.

@Parameter(visibility = ItemVisibility.GROUP) privateStringbasic = "basic"; @Parameter(group = "basic", label = "Number of ducks") privateintduckCount = 1; @Parameter(visibility = ItemVisibility.GROUP, expanded = false) privateStringadvanced = "advanced"; @Parameter(group = "advanced", label = "Advanced duck typing") privatebooleanadvancedDuckTyping = true; @Parameter(group = "advanced", label = "Starvation threshold") privateintstarvationThreshold = 6;

and in scripts

#@ String (visibility =GROUP, value ="basic") basic #@ Integer (label ="Number of ducks", group ="basic") duckCount #@ String (visibility =GROUP, value ="advanced", expanded =false) advanced #@ Boolean (label ="Advanced duck typing", value =true, group ="advanced") advancedDuckTyping #@ Integer (label ="Starvation threshold", value =6, group ="advanced") starvationThreshold

This PR requires changes in the Support widget groups to resolve #310 which is PR #428 at scijava-common -
scijava/scijava-common#428 until those changes are merged and scijava-ui-swing depends on the new version of scijava-common CI will fail here. This resolves issue scijava/scijava-common#310

Updates the SwingInputPanel to recognize ItemVisibility.GROUP and group annotations and organize input widgets accordingly with group labels and the ability to expand or collapse groups. Addresses scijava-common issue 310. Depends on scijava-common additions of GROUP visibility and group annotations
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@karlduderstadt