Class s.r.b.t.AbstractTableBuilder:

Part of stoqlib.reporting.base.tables View In Hierarchy

Known subclasses: stoqlib.reporting.base.tables.DataTableBuilder, stoqlib.reporting.base.tables.GroupingTableBuilder, stoqlib.reporting.base.tables.NewObjectTableBuilder, stoqlib.reporting.base.tables.ReportTableBuilder

Abstract class for table creation
Method __init__ Creates a new AbstractTableBuilder object
Method create_table The table creation core
Method add_row Just add an extra row to the table
Method get_data Returns all the table lines plus the extra row, if any.
Method update_style Implement this method on subclass to define your own table styles.
def __init__(self, data, style=None, extra_row=None):
Creates a new AbstractTableBuilder object
ParametersdataThe table rows.
(type: list )
styleThe table style.
(type: TableStyle )
def create_table(self, *args, **kwargs):
The table creation core
def add_row(self, row_data):
Just add an extra row to the table
def get_data(self):
Returns all the table lines plus the extra row, if any.
def update_style(self):
Implement this method on subclass to define your own table styles.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.