Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4537

Add Generics to TabbedPanel: <T extends ITab>

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.6, 6.0.0-beta1
    • 1.5.7, 6.0.0-beta2
    • wicket
    • None

    Description

      In 1.5, TabbedPanel#tabs has a wildcard signature: List<? extends ITab>. This makes it impossible to add tabs to that list, even though adding panels is one of the stated purposes of the #getTabs() method.

      On #wicket, dashorst suggested giving TabbedPanel a type parameter <T extends ITab>, which I think is a good idea. It should definitely be added in 6.0.

      What about 1.5.x? This would be a source-level break, but I think binaries should still work.

      Attachments

        Activity

          People

            cmenzel Carl-Eric Menzel
            cmenzel Carl-Eric Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: