A table row. More...
#include <Wt/WTableRow>
Public Member Functions | |
WTable * | table () const |
Returns the table to which this row belongs. | |
WTableCell * | elementAt (int column) |
Access the row element at the given column. | |
int | rowNum () const |
Returns the row number of this row in the table. | |
void | setHeight (const WLength &height) |
Sets the row height. | |
WLength | height () const |
Returns the row height. | |
void | setStyleClass (const WString &style) |
Sets the CSS style class for this row. | |
const WString & | styleClass () const |
Returns the CSS style class for this row. | |
void | setHidden (bool how) |
Sets whether the row must be hidden. | |
bool | isHidden () const |
Returns whether the rows is hidden. | |
void | hide () |
Hides the row. | |
void | show () |
Shows the row. | |
void | setId (const std::string &id) |
Sets the CSS Id. | |
virtual const std::string | id () const |
Returns the (unique) identifier for this object. | |
![]() | |
WObject (WObject *parent=0) | |
Create a WObject with a given parent object. | |
virtual | ~WObject () |
Destructor. | |
void | setObjectName (const std::string &name) |
Sets an object name. | |
virtual std::string | objectName () const |
Returns the object name. | |
void | resetLearnedSlots () |
Resets learned stateless slot implementations. | |
template<class T > | |
void | resetLearnedSlot (void(T::*method)()) |
Resets a learned stateless slot implementation. | |
template<class T > | |
WStatelessSlot * | implementStateless (void(T::*method)()) |
Declares a slot to be stateless and learn client-side behaviour on first invocation. | |
template<class T > | |
WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
Declares a slot to be stateless and learn client-side behaviour in advance. | |
template<class T > | |
WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
Provides a JavaScript implementation for a method. | |
void | addChild (WObject *child) |
Adds a child object. | |
virtual void | removeChild (WObject *child) |
Removes a child object. | |
const std::vector< WObject * > & | children () const |
Returns the children. | |
WObject * | parent () const |
Returns the parent object. |
Additional Inherited Members | |
![]() | |
typedef void(WObject::* | Method )() |
Typedef for a WObject method without arguments. | |
![]() | |
virtual WStatelessSlot * | getStateless (Method method) |
On-demand stateless slot implementation. | |
![]() | |
static WObject * | sender () |
Returns the sender of the current slot call. |
A table row.
A WTableRow is returned by WTable::rowAt() and managing various properties of a single row in a table (it is however not a widget).
You cannot access table cells through the row. Instead, to access table cells, see WTable::elementAt().
A table row corresponds to the HTML <tr>
tag.
WTableCell * Wt::WTableRow::elementAt | ( | int | column | ) |
Access the row element at the given column.
Like WTable::elementAt(), if the column is beyond the current table dimensions, then the table is expanded automatically.
WLength Wt::WTableRow::height | ( | ) | const |
Returns the row height.
void Wt::WTableRow::hide | ( | ) |
Hides the row.
|
virtual |
Returns the (unique) identifier for this object.
For a WWidget, this corresponds to the id of the DOM element that represents the widget. This is not entirely unique, since a composite widget shares the same id as its implementation.
By default, the id is auto-generated, unless a custom id is set for a widget using WWidget::setId(). The auto-generated id is created by concatenating objectName() with a unique number.
Reimplemented from Wt::WObject.
bool Wt::WTableRow::isHidden | ( | ) | const |
Returns whether the rows is hidden.
int Wt::WTableRow::rowNum | ( | ) | const |
Returns the row number of this row in the table.
void Wt::WTableRow::setHeight | ( | const WLength & | height | ) |
void Wt::WTableRow::setHidden | ( | bool | how | ) |
void Wt::WTableRow::setId | ( | const std::string & | id | ) |
Sets the CSS Id.
Sets a custom Id. Note that the Id must be unique across the whole widget tree, can only be set right after construction and cannot be changed.
void Wt::WTableRow::setStyleClass | ( | const WString & | style | ) |
Sets the CSS style class for this row.
The style is inherited by all table cells in this row.
void Wt::WTableRow::show | ( | ) |
Shows the row.
const WString& Wt::WTableRow::styleClass | ( | ) | const |
Returns the CSS style class for this row.
WTable* Wt::WTableRow::table | ( | ) | const |
Returns the table to which this row belongs.