Author image Zakariyya Mughal
and 4 contributors

NAME

Renard::Curie::Model::View::Role::Pageable - Role for view models that are paged

VERSION

version 0.005

ATTRIBUTES

page_number

A PageNumber for the current page being drawn.

METHODS

set_current_page_to_first

  method set_current_page_to_first()

Sets the page number to the first page of the document.

set_current_page_to_last

  method set_current_page_to_last()

Sets the current page to the last page of the document.

can_move_to_previous_page

  method can_move_to_previous_page() :ReturnType(Bool)

Predicate to check if we can decrement the current page number.

can_move_to_next_page

  method can_move_to_next_page() :ReturnType(Bool)

Predicate to check if we can increment the current page number.

set_current_page_forward

  method set_current_page_forward()

Increments the current page number if possible.

set_current_page_back

  method set_current_page_back()

Decrements the current page number if possible.

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Project Renard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.