libyui  3.3.2
YTableHeader Class Reference

Helper class for YTable for table column properties: More...

#include <YTableHeader.h>

Public Member Functions

 YTableHeader ()
 Constructor.
 
virtual ~YTableHeader ()
 Destructor.
 
void addColumn (const std::string &header, YAlignmentType alignment=YAlignBegin)
 Add a column with the specified colum header text and alignment.
 
int columns () const
 Return the number of columns.
 
bool hasColumn (int column) const
 Return 'true' if this table header has a column no. More...
 
std::string header (int column) const
 Return the header text for the specified column.
 
YAlignmentType alignment (int column) const
 Return the alignment for the specified column.
 

Detailed Description

Helper class for YTable for table column properties:

  • number of columns
  • header for each column
  • alignment for each column

Definition at line 43 of file YTableHeader.h.

Member Function Documentation

◆ hasColumn()

bool YTableHeader::hasColumn ( int  column) const

Return 'true' if this table header has a column no.

'column' (counting from 0 on).

Definition at line 77 of file YTableHeader.cc.


The documentation for this class was generated from the following files: