click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r922823 - /click/trunk/click/framework/src/org/apache/click/control/PageLink.java
Date Sun, 14 Mar 2010 12:15:33 GMT
Author: medgar
Date: Sun Mar 14 12:15:33 2010
New Revision: 922823

URL: http://svn.apache.org/viewvc?rev=922823&view=rev
Log:
CLK-606

Modified:
    click/trunk/click/framework/src/org/apache/click/control/PageLink.java

Modified: click/trunk/click/framework/src/org/apache/click/control/PageLink.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/PageLink.java?rev=922823&r1=922822&r2=922823&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/PageLink.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/PageLink.java Sun Mar 14 12:15:33
2010
@@ -20,8 +20,8 @@ package org.apache.click.control;
 
 import org.apache.click.ActionListener;
 import org.apache.click.Context;
+import org.apache.click.Page;
 import org.apache.click.util.HtmlStringBuffer;
-
 import org.apache.commons.lang.StringUtils;
 
 /**
@@ -50,7 +50,7 @@ public class PageLink extends AbstractLi
     // ----------------------------------------------------- Instance Variables
 
     /** The target page class. */
-    protected Class pageClass;
+    protected Class<? extends Page> pageClass;
 
     // ----------------------------------------------------------- Constructors
 
@@ -71,7 +71,7 @@ public class PageLink extends AbstractLi
      * @param targetPage the target page class
      * @throws IllegalArgumentException if the name is null
      */
-    public PageLink(String name, Class targetPage) {
+    public PageLink(String name, Class<? extends Page> targetPage) {
         setName(name);
         if (targetPage == null) {
             throw new IllegalArgumentException("Null targetPage parameter");
@@ -87,7 +87,7 @@ public class PageLink extends AbstractLi
      * @param targetPage the target page class
      * @throws IllegalArgumentException if the name is null
      */
-    public PageLink(String name, String label, Class targetPage) {
+    public PageLink(String name, String label, Class<? extends Page> targetPage) {
         setName(name);
         setLabel(label);
         if (targetPage == null) {
@@ -102,7 +102,7 @@ public class PageLink extends AbstractLi
      * @param targetPage the target page class
      * @throws IllegalArgumentException if the name is null
      */
-    public PageLink(Class targetPage) {
+    public PageLink(Class<? extends Page> targetPage) {
         if (targetPage == null) {
             throw new IllegalArgumentException("Null targetPage parameter");
         }
@@ -180,7 +180,7 @@ public class PageLink extends AbstractLi
      *
      * @return the target Page class
      */
-    public Class getPageClass() {
+    public Class<? extends Page> getPageClass() {
         return pageClass;
     }
 
@@ -190,7 +190,7 @@ public class PageLink extends AbstractLi
      *
      * @param targetPage the target Page class
      */
-    public void setPageClass(Class targetPage) {
+    public void setPageClass(Class<? extends Page> targetPage) {
         pageClass = targetPage;
     }
 



Mime
View raw message