Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-458

Add a "repeatable" property to ListButton

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: wtk
    • Labels:
      None

      Description

      I found this to be a requirement in my application: if the user clicks the label part of a LinkButton, the button should fire immediately without showing the popup, thus invoking the action with the currently selected entry. If the user clicks the triangle part, the popup should be shown.

      I patched LinkButton to add a new boolean property called "showPopupOnTriggerClickOnly" to TerraListButtonSkin (I couldn't think of a better name, sorry). If set to true, the ListButton popup will only show up if the user clicks the triangle, but not if the user clicks the rest of the button. However, ButtonPressListeners fire as usual, if the user clicks any part of the button. If the property is false, the behavior is as it was before. The default value of the property is false.

      I tested the patch in my application and ComponentExplorer and it works good.

      It would be nice if you integrate the patch. Otherwise I'd still have the option to write a custom skin, but I think this patch could be interesting to other developers as well.

        Attachments

        1. office-listbutton-triggerclicked.png
          5 kB
          Dirk Moebius
        2. office-listbutton-pressed.png
          0.7 kB
          Dirk Moebius
        3. office-listbutton-normal.png
          0.6 kB
          Dirk Moebius
        4. office-listbutton-hovered.png
          0.7 kB
          Dirk Moebius
        5. listbutton-popup-splitpaint.patch
          8 kB
          Dirk Moebius
        6. ASF.LICENSE.NOT.GRANTED--menubutton-popup.patch
          2 kB
          Dirk Moebius
        7. ASF.LICENSE.NOT.GRANTED--listbutton-popup.patch
          3 kB
          Dirk Moebius

          Activity

            People

            • Assignee:
              gbrown Gregory K. Brown
              Reporter:
              dmoebius Dirk Moebius
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: