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

Chris Bartlett commented on PIVOT-677:
--------------------------------------

RadioButtonGroup extends the unchanged ButtonGroup, so the new functionality 
will only be exposed if the new class is specifically used.  It is intended for 
what I consider to be the common use case where all radio buttons are in the 
same container, however I tried to make it behave in a predictable and sane 
manner for other scenarios too.  The problem was not knowing what those 
scenarios might be.

Greg - 
Can you give any examples of having buttons in different containers where you 
think the behaviour might be strange?  And are you talking about the focus side 
of things or navigation/selection too?

The only multi-container scenario I could think of for the demo was having 
RadioButtons aligned via a TablePane's columns, and that looks fine to me.  See 
the RadioButtons in 'Container 1' to 'Container 6' in the demo app, which can 
be found here
http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/buttons/radio_button_group_example.bxml

I'm not clear about what you are suggesting with RadioButton (And again, are 
you referring to just focus or selection/navigation?).
Could you elaborate a bit further?  
Sorry if I am being slow :)

> 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