virtual void set(int row, int column, gcn::Widget *widget)
Inserts a widget into the table model.
int getRowHeight() const override
Determines the height for each row.
std::vector< int > mWidths
gcn::Widget * getElementAt(int row, int column) const override
Retrieves the widget stored at the specified location within the table.
~StaticTableModel() override
int getRows() const override
Determines the number of rows (lines) in the table.
virtual void resize()
Resizes the table model.
int getColumnWidth(int index) const override
Determines the width of each individual column.
virtual int getWidth() const
virtual int getHeight() const
virtual void fixRowHeight(int height)
Fixes the row height; this overrides dynamic height inference.
int getColumns() const override
Determines the number of columns in each row.
virtual void fixColumnWidth(int column, int width)
Fixes the column width for a given column; this overrides dynamic width inference.
std::vector< gcn::Widget * > mTableModel
virtual void modelUpdated(bool completed)=0
Must be invoked by the TableModel whenever a global change is about to occur or has occurred (e....
virtual ~TableModelListener()
A model for a regular table of widgets.
virtual int getRows() const =0
Determines the number of rows (lines) in the table.
void signalAfterUpdate()
Tells all listeners that the table has seen an update.
std::set< TableModelListener * > listeners
virtual int getRowHeight() const =0
Determines the height for each row.
void removeListener(TableModelListener *listener)
virtual int getColumns() const =0
Determines the number of columns in each row.
virtual gcn::Widget * getElementAt(int row, int column) const =0
Retrieves the widget stored at the specified location within the table.
virtual int getColumnWidth(int index) const =0
Determines the width of each individual column.
void installListener(TableModelListener *listener)
void signalBeforeUpdate()
Tells all listeners that the table is about to see an update.