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

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

Sorry if I wasn't clear. It just seems like you might be able to save yourself 
some code by taking advantage of the fact that a Container is already a 
sequence of components. Instead of extending ButtonGroup to behave like a 
sequence, just have radio buttons use the parent container to determine what to 
focus when an arrow key is pressed (e.g. have the up arrow call 
transferFocus(FocusTraversalDirection.PREVIOUS)).



> 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