kexi

KexiDataTableView Class Reference

#include <kexidatatableview.h>

Inheritance diagram for KexiDataTableView:

KexiTableView KexiRecordNavigatorHandler KexiSharedActionClient KexiDataAwareObjectInterface List of all members.

Detailed Description

Database aware table widget.

Definition at line 38 of file kexidatatableview.h.


Public Member Functions

 KexiDataTableView (QWidget *parent, const char *name=0)
 KexiDataTableView (QWidget *parent, const char *name, KexiDB::Cursor *cursor)
 ~KexiDataTableView ()
bool setData (KexiDB::Cursor *cursor)
KexiDB::Cursorcursor ()
int recordCount ()

Protected Member Functions

void init ()

Constructor & Destructor Documentation

KexiDataTableView::KexiDataTableView ( QWidget *  parent,
const char *  name = 0 
)

creates a blank widget

Definition at line 36 of file kexidatatableview.cpp.

KexiDataTableView::KexiDataTableView ( QWidget *  parent,
const char *  name,
KexiDB::Cursor cursor 
)

Creates a table widget and fills it using data from cursor. Cursor will be opened (with open()) if it is not yet opened. Cursor must be defined on query schema, not raw statement (see Connection::prepareQuery() and Connection::executeQuery()), otherwise the table view remain not filled with data. Cursor cursor will not be owned by this object.

Definition at line 42 of file kexidatatableview.cpp.


Member Function Documentation

bool KexiDataTableView::setData ( KexiDB::Cursor cursor  ) 

Fills table view with data using cursor.

Returns:
true on success. Cursor cursor will not be owned by this object.

Definition at line 72 of file kexidatatableview.cpp.

KexiDB::Cursor* KexiDataTableView::cursor (  )  [inline]

Returns:
cursor used as data source for this table view, or NULL if no valid cursor is defined.

Definition at line 66 of file kexidatatableview.h.

int KexiDataTableView::recordCount (  )  [inline]

Returns:
the number of records in the data set, (if data set is present)

Note:
not all of the records have to be processed

Definition at line 72 of file kexidatatableview.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys