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

Add a "repeatable" property to ListButton

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • wtk
    • 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. ASF.LICENSE.NOT.GRANTED--listbutton-popup.patch
          3 kB
          Dirk Moebius
        2. ASF.LICENSE.NOT.GRANTED--menubutton-popup.patch
          2 kB
          Dirk Moebius
        3. listbutton-popup-splitpaint.patch
          8 kB
          Dirk Moebius
        4. office-listbutton-hovered.png
          0.7 kB
          Dirk Moebius
        5. office-listbutton-normal.png
          0.6 kB
          Dirk Moebius
        6. office-listbutton-pressed.png
          0.7 kB
          Dirk Moebius
        7. office-listbutton-triggerclicked.png
          5 kB
          Dirk Moebius

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: