Repository: wicket Updated Branches: refs/heads/master 76f289cc7 -> 40fe9b98e
WICKET-6117 Make IGenericComponent a mixin/trait so it could be easily reused in custom components Add usage example in javadoc Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/40fe9b98 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/40fe9b98 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/40fe9b98 Branch: refs/heads/master Commit: 40fe9b98e8f51747cac32715c1cc15546ef4ecf7 Parents: 76f289c Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Fri Mar 11 09:16:54 2016 +0100 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Fri Mar 11 09:16:54 2016 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/wicket/IGenericComponent.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/40fe9b98/wicket-core/src/main/java/org/apache/wicket/IGenericComponent.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/IGenericComponent.java b/wicket-core/src/main/java/org/apache/wicket/IGenericComponent.java index 27e2216..d208e4d 100644 --- a/wicket-core/src/main/java/org/apache/wicket/IGenericComponent.java +++ b/wicket-core/src/main/java/org/apache/wicket/IGenericComponent.java @@ -22,6 +22,13 @@ import org.apache.wicket.model.IModel; * An interface for all {@link Component components} with type-safe accessors and mutators * for the model and its object. * + * <p> + * Usage:<br/> + * <code> + * public class MyComponent<T> extends AnotherComponent implements IGenericComponent<T, MyComponent<T>> { ... } + * </code> + * </p> + * * @param <T> * the type of the model object * @param <C>
