|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QTextTableCell
public class QTextTableCell
The QTextTableCell class represents the properties of a cell in a QTextTable. Table cells are pieces of document structure that belong to a table. The table orders cells into particular rows and columns; cells can also span multiple columns and rows.
Cells are usually created when a table is inserted into a document with QTextCursor::insertTable(), but they are also created and destroyed when a table is resized.
Cells contain information about their location in a table; you can obtain the row() and column() numbers of a cell, and its rowSpan() and columnSpan().
The format() of a cell describes the default character format of its contents. The firstCursorPosition() and lastCursorPosition() functions are used to obtain the extent of the cell in the document.
QTextTable, and QTextTableFormat.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
|---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
| Constructor Summary | |
|---|---|
QTextTableCell()
Constructs an invalid table cell. |
|
QTextTableCell(QTextTableCell o)
Copy constructor. |
|
| Method Summary | |
|---|---|
QTextFrame_iterator |
begin()
Returns a frame iterator pointing to the beginning of the table's cell. |
QTextTableCell |
clone()
This method is reimplemented for internal reasons |
int |
column()
Returns the number of the column in the table that contains this cell. |
int |
columnSpan()
Returns the number of columns this cell spans. |
QTextFrame_iterator |
end()
Returns a frame iterator pointing to the end of the table's cell. |
QTextCursor |
firstCursorPosition()
Returns the first valid cursor position in this cell. |
QTextCharFormat |
format()
Returns the cell's character format. |
static QTextTableCell |
fromNativePointer(QNativePointer nativePointer)
|
boolean |
isValid()
Returns true if this is a valid table cell; otherwise returns false. |
QTextCursor |
lastCursorPosition()
Returns the last valid cursor position in this cell. |
static QNativePointer |
nativePointerArray(QTextTableCell[] array)
|
int |
row()
Returns the number of the row in the table that contains this cell. |
int |
rowSpan()
Returns the number of rows this cell spans. |
void |
setFormat(QTextCharFormat format)
Sets the cell's character format to format. |
| Methods inherited from class com.trolltech.qt.QtJambiObject |
|---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
| Methods inherited from class com.trolltech.qt.QSignalEmitter |
|---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.trolltech.qt.QtJambiInterface |
|---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
| Constructor Detail |
|---|
public QTextTableCell()
isValid().
public QTextTableCell(QTextTableCell o)
QTextTableCell object based on the other cell.
| Method Detail |
|---|
public final QTextFrame_iterator begin()
end().
public final int column()
row().
public final int columnSpan()
rowSpan().
public final QTextFrame_iterator end()
begin().
public final QTextCursor firstCursorPosition()
lastCursorPosition().
public final QTextCharFormat format()
setFormat().
public final boolean isValid()
public final QTextCursor lastCursorPosition()
firstCursorPosition().
public final int row()
column().
public final int rowSpan()
columnSpan().
public final void setFormat(QTextCharFormat format)
QTextTableCell cell = table->cellAt(2, 3); QTextCharFormat format = cell.format(); format.setBackground(Qt::blue ); cell.setFormat(format);
Note that the cell's row or column span cannot be changed through this function. You have to use QTextTable::mergeCells and QTextTable::splitCell instead.
format().
public static QTextTableCell fromNativePointer(QNativePointer nativePointer)
public static QNativePointer nativePointerArray(QTextTableCell[] array)
public QTextTableCell clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||