impulse_reporting.core.page
Page
class Page()
Represents a page in a report, containing aggregations, header, and footer.
__init__
def __init__(page_number: int)
Initialize a Page object.
Arguments:
page_number(int): The page number for this page.
add_aggregation
def add_aggregation(aggregation: Aggregation)
Add an aggregation to the page and set its page number and report ID.
Arguments:
aggregation(Aggregation): The aggregation to add to the page.
Returns:
None:
set_page_number
def set_page_number(page_number: int)
Set the page number for this page and update all associated aggregations.
Arguments:
page_number(int): The new page number to set.
Returns:
None:
set_report_id
def set_report_id(report_id: int)
Set the report ID for this page and update all associated aggregations.
Arguments:
report_id(int): The report identifier to set.
Returns:
None:
get_page_number
def get_page_number() -> int
Get the page number of this page.
Returns:
int: The page number.
set_header
def set_header(header: PageHeader)
Set the header for this page.
Arguments:
header(PageHeader): The header to set for the page.
get_header
def get_header() -> PageHeader
Get the header of this page.
Returns:
PageHeader: The header of the page.
set_footer
def set_footer(footer: PageFooter)
Set the footer for this page.
Arguments:
footer(PageFooter): The footer to set for the page.
Returns:
None:
get_footer
def get_footer() -> PageFooter
Get the footer of this page.
Returns:
PageFooter: The footer of the page.