libyui
|
#include <YTableHeader.h>
Public Member Functions | |
YTableHeader () | |
virtual | ~YTableHeader () |
void | addColumn (const string &header, YAlignmentType alignment=YAlignBegin) |
int | columns () const |
bool | hasColumn (int column) const |
string | header (int column) const |
YAlignmentType | alignment (int column) const |
Helper class for YTable for table column properties:
YTableHeader::YTableHeader | ( | ) |
Constructor.
YTableHeader::~YTableHeader | ( | ) | [virtual] |
Destructor.
void YTableHeader::addColumn | ( | const string & | header, |
YAlignmentType | alignment = YAlignBegin |
||
) |
Add a column with the specified colum header text and alignment.
YAlignmentType YTableHeader::alignment | ( | int | column | ) | const |
Return the alignment for the specified column.
int YTableHeader::columns | ( | ) | const |
Return the number of columns.
bool YTableHeader::hasColumn | ( | int | column | ) | const |
Return 'true' if this table header has a column no. 'column' (counting from 0 on).
string YTableHeader::header | ( | int | column | ) | const |
Return the header text for the specified column.