#include <Table.h>
Inheritance diagram for Table:
Public Methods | |
void | initTable () |
initialises the table pointer. More... | |
Table (UInt32 table_resource, UInt32 up, UInt32 down) | |
initialises the table. More... | |
virtual | ~Table () |
destructor: by default it hides the scroll arrows. More... | |
void | setRowsUnusable (UInt16 start) |
set part of the table rows to unusable. More... | |
void | unhighlight () |
unhilights the curent selection. More... | |
Boolean | pageUp () |
scroll a page up (if possible). More... | |
Boolean | pageDown () |
scroll a page down (if possible). More... | |
void | hideScrollArrows () |
hide the scroll arrows. More... | |
void | showScrollArrows () |
displays scroll arrows for the table (if needed). More... | |
virtual void | initColumns ()=0 |
initialises the columns. More... | |
virtual void | loadData ()=0 |
loads date into the table. More... | |
virtual Boolean | recordIsValid (UInt16 id)=0 |
this function should be used to check whether a record belongs in this table or not. More... | |
Public Attributes | |
UInt16 | top_visible_item |
the id of the top visible item. More... | |
UInt16 | rows |
the max no of rows that can be displayed at once in this table. More... | |
UInt16 | total_items |
no of elements that could be loaded in the table. More... | |
Protected Attributes | |
TablePtr | _table |
pointer to the table managed by the object. More... | |
UInt32 | _table_resource |
resource for the table. More... | |
UInt32 | _up_arrow |
resource for the up arrow. More... | |
UInt32 | _down_arrow |
resource for the down arrow. More... | |
FormPtr | _form |
pointer to the form hosting the table. More... |
Definition at line 30 of file Table.h.
|
initialises the table.
|
|
destructor: by default it hides the scroll arrows.
|
|
hide the scroll arrows.
|
|
initialises the columns.
Implemented in AccountsTable. |
|
initialises the table pointer. this code is not in the constructor because delayed initialisation might be desired (after the form was initialised) When finished this function calls the loadData method in orded to populate the table. |
|
loads date into the table.
Implemented in AccountsTable. |
|
scroll a page down (if possible).
|
|
scroll a page up (if possible).
|
|
this function should be used to check whether a record belongs in this table or not.
Implemented in AccountsTable. |
|
set part of the table rows to unusable.
|
|
displays scroll arrows for the table (if needed).
|
|
unhilights the curent selection.
|
|
resource for the down arrow.
|
|
pointer to the form hosting the table.
|
|
pointer to the table managed by the object.
|
|
resource for the table.
|
|
resource for the up arrow.
|
|
the max no of rows that can be displayed at once in this table.
|
|
the id of the top visible item.
|
|
no of elements that could be loaded in the table.
|