You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/06/16 01:32:20 UTC

svn commit: r955087 - /myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java

Author: lu4242
Date: Tue Jun 15 23:32:20 2010
New Revision: 955087

URL: http://svn.apache.org/viewvc?rev=955087&view=rev
Log:
TOMAHAWK-769 Datascroller - context sensitive previous, next links and TOMAHAWK-1426 Next and Previous facets

Modified:
    myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java

Modified: myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java?rev=955087&r1=955086&r2=955087&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java (original)
+++ myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java Tue Jun 15 23:32:20 2010
@@ -961,6 +961,38 @@ public abstract class AbstractHtmlDataSc
     @JSFProperty(defaultValue="false")
     public abstract boolean isImmediate();
 
+    /**
+     * If the dataScroller is on the first page (index is at 1), links for
+     * first, prev and fastprev are disabled. Default is false.
+     * 
+     */
+    @JSFProperty(defaultValue="false")
+    public abstract boolean isDisableFacetLinksIfFirstPage();
+
+    /**
+     * If the dataScroller is on the last page (index is at pagecount), links for
+     * last, next and fastnext are disabled. Default is false.
+     * 
+     */
+    @JSFProperty(defaultValue="false")
+    public abstract boolean isDisableFacetLinksIfLastPage();
+
+    /**
+     * If the dataScroller is on the first page (index is at 1), links for
+     * first, prev and fastprev are rendered. Default is true.
+     * 
+     */
+    @JSFProperty(defaultValue="true")
+    public abstract boolean isRenderFacetLinksIfFirstPage();
+
+    /**
+     * If the dataScroller is on the last page (index is at pagecount), links for
+     * last, next and fastnext are rendered. Default is true.
+     * 
+     */
+    @JSFProperty(defaultValue="true")
+    public abstract boolean isRenderFacetLinksIfLastPage();
+
     enum PropertyKeys
     {
         actionListenerSet