Wt::WTableColumn Class Reference

A column in a WTable. More...

#include <Wt/WTableColumn>

Inheritance diagram for Wt::WTableColumn:

Inheritance graph
[legend]

List of all members.

Public Member Functions

WTable * table () const
 The table to which this column belongs.
int columnNum () const
 The column number of this column in the table.
void setWidth (const WLength &width)
 Set the column width.
WLength width () const
 Get the column width.
void setStyleClass (const WString &style)
 Set the CSS style class for this column.
const WString & styleClass () const
 Get the CSS style class for this column.


Detailed Description

A column in a WTable.

A table column is not a widget -- it only has a logistic function, for managing various properties of a single column in a table.

You cannot access table cells through the column. Instead, to access table cells, see WTable::elementAt().

See also:
WTable, WTableRow

Member Function Documentation

WTable* Wt::WTableColumn::table (  )  const [inline]

The table to which this column belongs.

See also:
WTable::rowAt()

int Wt::WTableColumn::columnNum (  )  const

The column number of this column in the table.

See also:
WTable::rowAt()

void Wt::WTableColumn::setWidth ( const WLength &  width  ) 

Set the column width.

The default column width is 'auto' (WLength()).

See also:
width(), WWidget::resize()

WLength Wt::WTableColumn::width (  )  const

Get the column width.

See also:
setWidth(const WLength&)

void Wt::WTableColumn::setStyleClass ( const WString &  style  ) 

Set the CSS style class for this column.

The style is inherited by all table cells in this column.

See also:
styleClass(), WWidget::setStyleClass(const WString& style)

const WString& Wt::WTableColumn::styleClass (  )  const [inline]

Get the CSS style class for this column.

See also:
styleClass(), WWidget::styleClass()


Generated on Fri Apr 24 16:26:00 2009 for Wt by doxygen 1.5.6