Wicket
  1. Wicket
  2. WICKET-1197

add/remove all buttons in Palette component

    Details

    • Type: Wish Wish
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.13.0, 7.0.0-M1
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      It would be nice if the Palette component had buttons to move all of the items from one side of the selectable options to the other.

      Many desktop applications with this style of data manipulation have these buttons to greatly speed up the process of adding large numbers of items to the selected items

      eg:

      [ item ] ( add all ) [item]
      [ item ] ( add selected) [item]
      [ item ] ( remove selected ) [item]
      [ item ] ( remove all ) [item]

      1. WICKET-1197.patch
        8 kB
        Niels van Kampenhout

        Activity

        Hide
        Martin Grigorov added a comment -

        With a long overdue the patch is applied.

        I've also replaced the usage of images for the buttons with CSS content property that uses Unicode arrows. To replace them the application can provide custom CSS.

        Show
        Martin Grigorov added a comment - With a long overdue the patch is applied. I've also replaced the usage of images for the buttons with CSS content property that uses Unicode arrows. To replace them the application can provide custom CSS.
        Hide
        Timo Rantalaiho added a comment -

        This is a new feature so belongs to 1.5, right?

        Sounds like a nice feature, thanks!

        Show
        Timo Rantalaiho added a comment - This is a new feature so belongs to 1.5, right? Sounds like a nice feature, thanks!
        Hide
        Martijn Dashorst added a comment -

        Moved to next milestone release.

        Show
        Martijn Dashorst added a comment - Moved to next milestone release.
        Hide
        Niels van Kampenhout added a comment - - edited

        I attached a patch which adds optional "add all" and "remove all" buttons to the Palette. I added two constructors with an extra parameter, boolean allowMoveAll, to enable the two new buttons. The original constructors default this parameter to false so existing applications are not affected.

        Note: I used ">>" and "<<" labels for the buttons instead of images.

        Show
        Niels van Kampenhout added a comment - - edited I attached a patch which adds optional "add all" and "remove all" buttons to the Palette. I added two constructors with an extra parameter, boolean allowMoveAll, to enable the two new buttons. The original constructors default this parameter to false so existing applications are not affected. Note: I used ">>" and "<<" labels for the buttons instead of images.
        Hide
        Niels van Kampenhout added a comment -

        I have code lying around for this. Will create and send in a patch later this week.

        Show
        Niels van Kampenhout added a comment - I have code lying around for this. Will create and send in a patch later this week.
        Hide
        Jason Anderson added a comment -

        move to Wish

        Show
        Jason Anderson added a comment - move to Wish

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Jason Anderson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development