You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Greg Brown <gk...@mac.com> on 2010/09/17 18:03:18 UTC

"Split" buttons

Hi all,

I just checked in some updates to resolve PIVOT-458:

  https://issues.apache.org/jira/browse/PIVOT-458

This change adds support for "split" behavior to ListButton. When a ListButton's "repeatable" property is set to true, clicking on the content area will not show the popup but will instead cause the buttonPressed() event to be fired. Clicking on the trigger will show the popup, but not fire buttonPressed(). This type of component is useful in situations where you want to allow the user to "repeat" a selection (hence, the "repeatable" property name).

I would be interested in hearing your feedback. Hope you find it useful.

Greg



Re: "Split" buttons

Posted by Chris Bartlett <cb...@gmail.com>.
Created the ticket
https://issues.apache.org/jira/browse/PIVOT-646

On 25 September 2010 07:48, Greg Brown <gk...@mac.com> wrote:

> I just verified the problem and have a fix - I'll create the ticket and try
> to resolve it tomorrow. Thank you for finding this!  :-)
>
> On Sep 24, 2010, at 7:53 PM, Greg Brown wrote:
>
> > I think I know what the problem is. Can you enter this in JIRA just so we
> can track it?
> >
> > On Sep 24, 2010, at 6:06 PM, Chris Bartlett wrote:
> >
> >> While testing the focus decorator stuff I found an issue which should be
> reproducible via the following steps (using trunk)
> >>
> >> 1. Open KitchenSink & expand the 'Lists' Rollup
> >> 2. Click anywhere on the 'Basic' ListButton to display the full list
> >> 3. Click anywhere on the 'Image' ListButton to display the full list
> >> Focus transfers to the 'Image' ListButton's list, but then quickly
> transfers again to the 'Basic' ListButton
> >>
> >> 4. (With the 'Image' ListButton still expanded)
> >> Press the down arrow key to change the selected value for 'Basic' from
> 'Color' to 'Red'
> >>
> >> The same happens if you select the Image ListButton before the Basic
> one.
> >>
> >> Screenshots (hopefully) attached, numbered as per the steps above.
> >>
> >> Chris
> >>
> >> On 17 September 2010 23:33, Greg Brown <gk...@mac.com> wrote:
> >> FYI, the "Color" list button in the Kitchen Sink app has been updated to
> function as an example of the "repeatable" property.
> >>
> >> On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:
> >>
> >>> Hi all,
> >>>
> >>> I just checked in some updates to resolve PIVOT-458:
> >>>
> >>> https://issues.apache.org/jira/browse/PIVOT-458
> >>>
> >>> This change adds support for "split" behavior to ListButton. When a
> ListButton's "repeatable" property is set to true, clicking on the content
> area will not show the popup but will instead cause the buttonPressed()
> event to be fired. Clicking on the trigger will show the popup, but not fire
> buttonPressed(). This type of component is useful in situations where you
> want to allow the user to "repeat" a selection (hence, the "repeatable"
> property name).
> >>>
> >>> I would be interested in hearing your feedback. Hope you find it
> useful.
> >>>
> >>> Greg
> >>>
> >>>
> >>
> >>
> >> <ListButton.zip>
> >
>
>

Re: "Split" buttons

Posted by Greg Brown <gk...@mac.com>.
I just verified the problem and have a fix - I'll create the ticket and try to resolve it tomorrow. Thank you for finding this!  :-)

On Sep 24, 2010, at 7:53 PM, Greg Brown wrote:

> I think I know what the problem is. Can you enter this in JIRA just so we can track it? 
> 
> On Sep 24, 2010, at 6:06 PM, Chris Bartlett wrote:
> 
>> While testing the focus decorator stuff I found an issue which should be reproducible via the following steps (using trunk)
>> 
>> 1. Open KitchenSink & expand the 'Lists' Rollup
>> 2. Click anywhere on the 'Basic' ListButton to display the full list
>> 3. Click anywhere on the 'Image' ListButton to display the full list
>> Focus transfers to the 'Image' ListButton's list, but then quickly transfers again to the 'Basic' ListButton
>> 
>> 4. (With the 'Image' ListButton still expanded)
>> Press the down arrow key to change the selected value for 'Basic' from 'Color' to 'Red'
>> 
>> The same happens if you select the Image ListButton before the Basic one.
>> 
>> Screenshots (hopefully) attached, numbered as per the steps above.
>> 
>> Chris
>> 
>> On 17 September 2010 23:33, Greg Brown <gk...@mac.com> wrote:
>> FYI, the "Color" list button in the Kitchen Sink app has been updated to function as an example of the "repeatable" property.
>> 
>> On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:
>> 
>>> Hi all,
>>> 
>>> I just checked in some updates to resolve PIVOT-458:
>>> 
>>> https://issues.apache.org/jira/browse/PIVOT-458
>>> 
>>> This change adds support for "split" behavior to ListButton. When a ListButton's "repeatable" property is set to true, clicking on the content area will not show the popup but will instead cause the buttonPressed() event to be fired. Clicking on the trigger will show the popup, but not fire buttonPressed(). This type of component is useful in situations where you want to allow the user to "repeat" a selection (hence, the "repeatable" property name).
>>> 
>>> I would be interested in hearing your feedback. Hope you find it useful.
>>> 
>>> Greg
>>> 
>>> 
>> 
>> 
>> <ListButton.zip>
> 


Re: "Split" buttons

Posted by Greg Brown <gk...@mac.com>.
I think I know what the problem is. Can you enter this in JIRA just so we can track it? 

On Sep 24, 2010, at 6:06 PM, Chris Bartlett wrote:

> While testing the focus decorator stuff I found an issue which should be reproducible via the following steps (using trunk)
> 
> 1. Open KitchenSink & expand the 'Lists' Rollup
> 2. Click anywhere on the 'Basic' ListButton to display the full list
> 3. Click anywhere on the 'Image' ListButton to display the full list
> Focus transfers to the 'Image' ListButton's list, but then quickly transfers again to the 'Basic' ListButton
> 
> 4. (With the 'Image' ListButton still expanded)
> Press the down arrow key to change the selected value for 'Basic' from 'Color' to 'Red'
> 
> The same happens if you select the Image ListButton before the Basic one.
> 
> Screenshots (hopefully) attached, numbered as per the steps above.
> 
> Chris
> 
> On 17 September 2010 23:33, Greg Brown <gk...@mac.com> wrote:
> FYI, the "Color" list button in the Kitchen Sink app has been updated to function as an example of the "repeatable" property.
> 
> On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:
> 
> > Hi all,
> >
> > I just checked in some updates to resolve PIVOT-458:
> >
> >  https://issues.apache.org/jira/browse/PIVOT-458
> >
> > This change adds support for "split" behavior to ListButton. When a ListButton's "repeatable" property is set to true, clicking on the content area will not show the popup but will instead cause the buttonPressed() event to be fired. Clicking on the trigger will show the popup, but not fire buttonPressed(). This type of component is useful in situations where you want to allow the user to "repeat" a selection (hence, the "repeatable" property name).
> >
> > I would be interested in hearing your feedback. Hope you find it useful.
> >
> > Greg
> >
> >
> 
> 
> <ListButton.zip>


Re: "Split" buttons

Posted by Chris Bartlett <cb...@gmail.com>.
Forgot to add that I can't reproduce this with with KitchenSink here.
http://pivot.apache.org/demos/kitchen-sink.html

On 25 September 2010 05:06, Chris Bartlett <cb...@gmail.com> wrote:

> While testing the focus decorator stuff I found an issue which should be
> reproducible via the following steps (using trunk)
>
> 1. Open KitchenSink & expand the 'Lists' Rollup
> 2. Click anywhere on the 'Basic' ListButton to display the full list
> 3. Click anywhere on the 'Image' ListButton to display the full list
> Focus transfers to the 'Image' ListButton's list, but then quickly
> transfers again to the 'Basic' ListButton
>
> 4. (With the 'Image' ListButton still expanded)
> Press the down arrow key to change the selected value for 'Basic' from
> 'Color' to 'Red'
>
> The same happens if you select the Image ListButton before the Basic one.
>
> Screenshots (hopefully) attached, numbered as per the steps above.
>
> Chris
>
> On 17 September 2010 23:33, Greg Brown <gk...@mac.com> wrote:
>
>> FYI, the "Color" list button in the Kitchen Sink app has been updated to
>> function as an example of the "repeatable" property.
>>
>> On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:
>>
>> > Hi all,
>> >
>> > I just checked in some updates to resolve PIVOT-458:
>> >
>> >  https://issues.apache.org/jira/browse/PIVOT-458
>> >
>> > This change adds support for "split" behavior to ListButton. When a
>> ListButton's "repeatable" property is set to true, clicking on the content
>> area will not show the popup but will instead cause the buttonPressed()
>> event to be fired. Clicking on the trigger will show the popup, but not fire
>> buttonPressed(). This type of component is useful in situations where you
>> want to allow the user to "repeat" a selection (hence, the "repeatable"
>> property name).
>> >
>> > I would be interested in hearing your feedback. Hope you find it useful.
>> >
>> > Greg
>> >
>> >
>>
>>
>

Re: "Split" buttons

Posted by Chris Bartlett <cb...@gmail.com>.
While testing the focus decorator stuff I found an issue which should be
reproducible via the following steps (using trunk)

1. Open KitchenSink & expand the 'Lists' Rollup
2. Click anywhere on the 'Basic' ListButton to display the full list
3. Click anywhere on the 'Image' ListButton to display the full list
Focus transfers to the 'Image' ListButton's list, but then quickly transfers
again to the 'Basic' ListButton

4. (With the 'Image' ListButton still expanded)
Press the down arrow key to change the selected value for 'Basic' from
'Color' to 'Red'

The same happens if you select the Image ListButton before the Basic one.

Screenshots (hopefully) attached, numbered as per the steps above.

Chris

On 17 September 2010 23:33, Greg Brown <gk...@mac.com> wrote:

> FYI, the "Color" list button in the Kitchen Sink app has been updated to
> function as an example of the "repeatable" property.
>
> On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:
>
> > Hi all,
> >
> > I just checked in some updates to resolve PIVOT-458:
> >
> >  https://issues.apache.org/jira/browse/PIVOT-458
> >
> > This change adds support for "split" behavior to ListButton. When a
> ListButton's "repeatable" property is set to true, clicking on the content
> area will not show the popup but will instead cause the buttonPressed()
> event to be fired. Clicking on the trigger will show the popup, but not fire
> buttonPressed(). This type of component is useful in situations where you
> want to allow the user to "repeat" a selection (hence, the "repeatable"
> property name).
> >
> > I would be interested in hearing your feedback. Hope you find it useful.
> >
> > Greg
> >
> >
>
>

Re: "Split" buttons

Posted by Greg Brown <gk...@mac.com>.
FYI, the "Color" list button in the Kitchen Sink app has been updated to function as an example of the "repeatable" property.

On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:

> Hi all,
> 
> I just checked in some updates to resolve PIVOT-458:
> 
>  https://issues.apache.org/jira/browse/PIVOT-458
> 
> This change adds support for "split" behavior to ListButton. When a ListButton's "repeatable" property is set to true, clicking on the content area will not show the popup but will instead cause the buttonPressed() event to be fired. Clicking on the trigger will show the popup, but not fire buttonPressed(). This type of component is useful in situations where you want to allow the user to "repeat" a selection (hence, the "repeatable" property name).
> 
> I would be interested in hearing your feedback. Hope you find it useful.
> 
> Greg
> 
> 


Re: "Split" buttons

Posted by Greg Brown <gk...@mac.com>.
FYI, the "Color" list button in the Kitchen Sink app has been updated to function as an example of the "repeatable" property.

On Sep 17, 2010, at 12:03 PM, Greg Brown wrote:

> Hi all,
> 
> I just checked in some updates to resolve PIVOT-458:
> 
>  https://issues.apache.org/jira/browse/PIVOT-458
> 
> This change adds support for "split" behavior to ListButton. When a ListButton's "repeatable" property is set to true, clicking on the content area will not show the popup but will instead cause the buttonPressed() event to be fired. Clicking on the trigger will show the popup, but not fire buttonPressed(). This type of component is useful in situations where you want to allow the user to "repeat" a selection (hence, the "repeatable" property name).
> 
> I would be interested in hearing your feedback. Hope you find it useful.
> 
> Greg
> 
>