Wt::WStandardItemModel Class Reference

A standard data model, which stores data in memory. More...

#include <WStandardItemModel>

Inheritance diagram for Wt::WStandardItemModel:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WStandardItemModel (int rows, int columns, WObject *parent=0)
 Create a standard item with given number of rows and columns.
virtual int columnCount () const
 Get the number of columns.
virtual int rowCount () const
 Get the number of rows.
virtual boost::any data (const WModelIndex &index) const
 Get the data value at a specific model index.
virtual boost::any headerData (int column) const
 Get the header value for a given column.
virtual WModelIndex index (int row, int column) const
 Get the index for the given row and column.
virtual bool insertColumns (int column, int count)
 Insert one or more columns.
virtual bool insertRows (int row, int count)
 Insert one or more rows.
virtual bool removeColumns (int column, int count)
 Remove columns.
virtual bool removeRows (int row, int count)
 Remove rows.
virtual bool setData (const WModelIndex &index, const boost::any &value)
 Set data at the given model index.
virtual bool setHeaderData (int column, const boost::any &value)
 Set header data for the given column.


Detailed Description

A standard data model, which stores data in memory.

Member Function Documentation

bool Wt::WStandardItemModel::insertColumns ( int  column,
int  count 
) [virtual]

Insert one or more columns.

Returns true if the operation was successful.

Reimplemented from Wt::WAbstractItemModel.

bool Wt::WStandardItemModel::insertRows ( int  row,
int  count 
) [virtual]

Insert one or more rows.

Returns true if the operation was successful.

Reimplemented from Wt::WAbstractItemModel.

bool Wt::WStandardItemModel::removeColumns ( int  column,
int  count 
) [virtual]

Remove columns.

Returns true if the operation was successful.

Reimplemented from Wt::WAbstractItemModel.

bool Wt::WStandardItemModel::removeRows ( int  row,
int  count 
) [virtual]

Remove rows.

Returns true if the operation was successful.

Reimplemented from Wt::WAbstractItemModel.

bool Wt::WStandardItemModel::setData ( const WModelIndex index,
const boost::any &  value 
) [virtual]

Set data at the given model index.

Returns true if the operation was successful.

Implements Wt::WAbstractItemModel.

bool Wt::WStandardItemModel::setHeaderData ( int  column,
const boost::any &  value 
) [virtual]

Set header data for the given column.

Returns true if the operation was successful.

Implements Wt::WAbstractItemModel.


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3