Class PaginationControl

  • All Implemented Interfaces:
    Observer, VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer
    Direct Known Subclasses:
    ForumMessageListPaginationControl

    public class PaginationControl
    extends DataBoundControl<TabularSource<?>>
    Renders the current selected page and possible pages that the use can navigate to.

    Example use:
    
     <control:lum_pagination id="pagination"/>
     
    xml data available for xsl rendering:
    
     <control id="pagination" sourceId="default" type="lum_pagination">
     	<strings>
    		<string id="STR_PREVIOUS_BLOCK">Previous block of pages</string>
    		<string id="STR_NEXT_BLOCK">Next block of pages</string>
    		<string id="STR_NEXT_PAGE">Next page</string>
    		<string id="STR_PAGE">Page</string>
    		<string id="STR_FIRST_PAGE">First page</string>
    		<string id="STR_PAGES">Pages</string>
    		<string id="STR_LAST_PAGE">Last page</string>
    		<string id="STR_OF">of</string>
    		<string id="STR_PREVIOUS_PAGE">Previous page</string>
     	</strings>
     	<data>
     		<numPages>3</numPages>
     		<previousPage href="javascript:function f1(){ var y = null; var x = document.forms['Form_8A488A03117086C7011170BF8F8C040D'].elements['pagination'];if(x.type == undefined) y = x[0]; else y = x; y.value='1';LumisPortal.onSubmitForm('Form_8A488A03117086C7011170BF8F8C040D','8A488A03117086C7011170BF8F8C040D');}f1();" hrefQSParameter="main.jsp?lumPageId=8A488A03117086C7011170BF8F50040C&pagination=1">1</previousPage>
     		<page href="javascript:function f1(){ var y = null; var x = document.forms['Form_8A488A03117086C7011170BF8F8C040D'].elements['pagination'];if(x.type == undefined) y = x[0]; else y = x; y.value='1';LumisPortal.onSubmitForm('Form_8A488A03117086C7011170BF8F8C040D','8A488A03117086C7011170BF8F8C040D');}f1();" hrefQSParameter="main.jsp?lumPageId=8A488A03117086C7011170BF8F50040C&pagination=1">1</page>
     		<page currentPage="true" href="javascript:function f1(){ var y = null; var x = document.forms['Form_8A488A03117086C7011170BF8F8C040D'].elements['pagination'];if(x.type == undefined) y = x[0]; else y = x; y.value='4';LumisPortal.onSubmitForm('Form_8A488A03117086C7011170BF8F8C040D','8A488A03117086C7011170BF8F8C040D');}f1();" hrefQSParameter="main.jsp?lumPageId=8A488A03117086C7011170BF8F50040C&pagination=4">2</page>
     		<page href="javascript:function f1(){ var y = null; var x = document.forms['Form_8A488A03117086C7011170BF8F8C040D'].elements['pagination'];if(x.type == undefined) y = x[0]; else y = x; y.value='7';LumisPortal.onSubmitForm('Form_8A488A03117086C7011170BF8F8C040D','8A488A03117086C7011170BF8F8C040D');}f1();" hrefQSParameter="main.jsp?lumPageId=8A488A03117086C7011170BF8F50040C&pagination=7">3</page>
     		<nextPage href="javascript:function f1(){ var y = null; var x = document.forms['Form_8A488A03117086C7011170BF8F8C040D'].elements['pagination'];if(x.type == undefined) y = x[0]; else y = x; y.value='7';LumisPortal.onSubmitForm('Form_8A488A03117086C7011170BF8F8C040D','8A488A03117086C7011170BF8F8C040D');}f1();" hrefQSParameter="main.jsp?lumPageId=8A488A03117086C7011170BF8F50040C&pagination=7">3</nextPage>
     	</data>
     </control>
     
    Since:
    4.0.0
    Version:
    $Revision: 23035 $ $Date: 2019-08-05 16:55:10 -0300 (Mon, 05 Aug 2019) $