Pivot
  1. Pivot
  2. PIVOT-731

Ignore Flag for controls within a Rollup Heading

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Not a Problem
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.3
    • Component/s: wtk
    • Environment:
      Windows 7 Professional 64bit
      Java(TM) SE Runtime Environment (build 1.6.0_21-b06)

      Description

      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>
      ...

        Activity

        Hide
        Sandro Martini added a comment -

        The code was already ok in 2.0.2, but moved to 2.0.3 to have this in its release notes (if needed).

        Show
        Sandro Martini added a comment - The code was already ok in 2.0.2, but moved to 2.0.3 to have this in its release notes (if needed).
        Hide
        Roger Whitcomb added a comment -

        Already implemented as the "headingToggles" style.

        Show
        Roger Whitcomb added a comment - Already implemented as the "headingToggles" style.
        Hide
        Roger Whitcomb added a comment -

        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.

        Show
        Roger Whitcomb added a comment - 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.
        Hide
        Sandro Martini added a comment -

        This requires more tests, so move to 2.0.2

        Show
        Sandro Martini added a comment - This requires more tests, so move to 2.0.2
        Hide
        Greg Brown added a comment -

        That actually may have more to do with the implementation of the header component than Rollup. If the header component takes the focus on mouse down, it should probably consume the event (which will prevent the rollup from collapsing).

        Show
        Greg Brown added a comment - That actually may have more to do with the implementation of the header component than Rollup. If the header component takes the focus on mouse down, it should probably consume the event (which will prevent the rollup from collapsing).

          People

          • Assignee:
            Sandro Martini
            Reporter:
            Daniel Kuschny
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development