Jesse Long created WICKET-4719:
----------------------------------
Summary: Allow a list of a subclass of IColumn in DataTable
constructor
Key: WICKET-4719
URL: https://issues.apache.org/jira/browse/WICKET-4719
Project: Wicket
Issue Type: Improvement
Components: wicket-extensions
Affects Versions: 6.0.0-beta3
Reporter: Jesse Long
Priority: Minor
DataTable constructor requires List<IColumn<T, S>>. My T and S types are
parameterized, with multiple parameters. This leads to a lot of typing.
List<IColumn<MyObject<T>, Descriptor<MyObject<T>, SomethingElse>>> columns =
....
I want to be able to subclass IColumn<T, S> calling MyColumn<T> with hiding all
those type parameters, and take only one type parameter. Like:
class MyColumn<T> implements IColumn<MyObject<T>, Descriptor<MyObject<T>,
SomethingElse>>{}
but I cannot pass a List<MyColumn<T>> to DataTable constructor. DataTable
should take List<? extends IColumn<T, S>> instead of List<IColumn<T, S>>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira