[ 
https://issues.apache.org/jira/browse/PIVOT-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057844#comment-13057844
 ] 

Greg Brown commented on PIVOT-677:
----------------------------------

OK, that helps a bit. I see that simply transferring focus wouldn't be 
sufficient - you'd also need to know that you are transferring focus to a 
button and that the button would need to be selected, which isn't quite as 
elegant.

It still seems odd to me that RadioButtonGroup doesn't extend Container, 
though. In most cases, when you want this kind of behavior, I'd guess that all 
of the buttons will belong to a single parent container (most likely a 
BoxPane). In that case, it seems like either extending Container or adding a 
simple key listener to the container would be sufficient (and potentially 
simpler).


> Add ability to navigate a ButtonGroup of RadioButtons using the keyboard
> ------------------------------------------------------------------------
>
>                 Key: PIVOT-677
>                 URL: https://issues.apache.org/jira/browse/PIVOT-677
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>
> LEFT or UP arrows would select the previous enabled button in the group.
> RIGHT or DOWN arrows would select the next enabled button in the group.
> Optionally, HOME & END would select the first or last enabled button in 
> respectively.
> This functionality could be added to the existing 
> org.apache.pivot.wtk.ButtonGroup class, or a new class named RadioButtonGroup 
> could be created.
> The ButtonGroup would track the order that the buttons were added and use it 
> to select the appropriate button.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to