You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2012/10/25 19:11:12 UTC

[jira] [Commented] (PIVOT-731) Ignore Flag for controls within a Rollup Heading

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

Roger Whitcomb commented on PIVOT-731:
--------------------------------------

There is an existing style for Rollup that will do what you want:  "headingToggles", so for your example, you would do:
<Rollup expanded="true" styles="{headingToggles:false}">
  <heading>
    <BoxPane orientation="horizontal">
      <Label text="Choose:"/>
      <ListButton listData="['Option 1', 'Option 2']"/>
    </BoxPane>
  </heading>
...
The result is that only clicking on the rollup button would do the rollup action, and not clicking on the header component(s).

So, I'm going to close this issue as already implemented.  But, feel free to reopen if you feel there is still a problem in your application doing it this way.
                
> Ignore Flag for controls within a Rollup Heading
> ------------------------------------------------
>
>                 Key: PIVOT-731
>                 URL: https://issues.apache.org/jira/browse/PIVOT-731
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>    Affects Versions: 2.0
>         Environment: Windows 7 Professional 64bit
> Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
>            Reporter: Daniel Kuschny
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: collapse, expanded, header, rollup
>             Fix For: 2.0.2
>
>
> If you place any control which requires a focus into a Rollup Header you can't click on it without collapsing the rollup. 
> I tried to place a ListButton within a Rollup Header:
> <Rollup expanded="true">
>     <heading>
>         <BoxPane orientation="horizontal">
>             <Label text="Choose:" />
>             <ListButton listData="['Option 1', 'Option 2']" />
>         </BoxPane>
>     </heading>
>     ...
> If I click on the ListButton, the rollup expands/collapses. Please add a shared property which allows preventing the collapse behaviour on specific controls:
> <Rollup expanded="true">
>     <heading>
>         <BoxPane orientation="horizontal">
>             <Label text="Choose:" />
>             <ListButton listData="['Option 1', 'Option 2']" Rollup.ignore="true" />
>         </BoxPane>
>     </heading>
>     ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira