|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QFrame
com.trolltech.qt.gui.QAbstractScrollArea
com.trolltech.qt.gui.QAbstractItemView
com.trolltech.qt.gui.QTableView
com.sibvisions.rad.ui.qt.ext.QVxTableView
public class QVxTableView
The QVxTableView class provides a default model/view implementation of
a table view. A QTableView implements a table view that displays items
from a model. This class is used to provide standard tables that were
previously provided by the QTable class, but using the more flexible
approach provided by Qt's model/view architecture.
| Nested Class Summary | |
|---|---|
class |
QVxTableView.SelectionModel
The SelectionModel is an QItemSelectionModel to forward
selection changes to the databook. |
class |
QVxTableView.TableModel
The TableModel is an QAbstractTableModel for representing
the table header and data. |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QAbstractItemView |
|---|
QAbstractItemView.CursorAction, QAbstractItemView.DragDropMode, QAbstractItemView.DropIndicatorPosition, QAbstractItemView.EditTrigger, QAbstractItemView.EditTriggers, QAbstractItemView.ScrollHint, QAbstractItemView.ScrollMode, QAbstractItemView.SelectionBehavior, QAbstractItemView.SelectionMode, QAbstractItemView.State |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QFrame |
|---|
QFrame.Shadow, QFrame.Shape, QFrame.StyleMask |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
|---|
QWidget.RenderFlag, QWidget.RenderFlags |
| Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject |
|---|
QtJambiObject.QPrivateConstructor |
| Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
|---|
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1<A>, QSignalEmitter.PrivateSignal2<A,B>, QSignalEmitter.PrivateSignal3<A,B,C>, QSignalEmitter.PrivateSignal4<A,B,C,D>, QSignalEmitter.PrivateSignal5<A,B,C,D,E>, QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
| Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
|---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
| Field Summary | |
|---|---|
QSignalEmitter.Signal1<Integer> |
selected
the seletion change of the row. |
| Fields inherited from class com.trolltech.qt.gui.QAbstractItemView |
|---|
activated, clicked, doubleClicked, entered, pressed, viewportEntered |
| Fields inherited from class com.trolltech.qt.gui.QWidget |
|---|
customContextMenuRequested |
| Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
|---|
currentSender |
| Fields inherited from interface javax.rad.model.ui.ICellEditorListener |
|---|
ACTION_KEY, ENTER_KEY, ESCAPE_KEY, FOCUS_LOST, SHIFT_ENTER_KEY, SHIFT_TAB_KEY, TAB_KEY |
| Constructor Summary | |
|---|---|
QVxTableView()
Constructs a table view to represent the data. |
|
QVxTableView(QWidget pParent)
Constructs a table view with a parent to represent the data. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
protected void |
closeEditor(QWidget pEditor,
QAbstractItemDelegate.EndEditHint pHint)
|
void |
editingComplete(String pCompleteType)
Informs the ICellEditorListener that the editing is completed. |
void |
editingStarted()
Informs the ICellEditorListener that the editing has started. |
ICellEditorHandler<QWidget> |
getCellEditorHandler()
The current used CellEditor for editing. |
ICellFormatter |
getCellFormatter()
Gets the CellFormatter. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
TranslationMap |
getTranslation()
Gets the translation for this table. |
boolean |
isAutoSize()
Returns the current state of the autosize mode. |
boolean |
isMaximumSizeHintSet()
Determines if an user-defined maximum size is set. |
boolean |
isMinimumSizeHintSet()
Determines if an user-defined minimum size is set. |
boolean |
isSavingImmediate()
Tells whether the CellEditor should save immediate. |
boolean |
isShowSelection()
Gets if showing the selection or not. |
boolean |
isSizeHintSet()
Determines if an user-defined preferred size is set. |
boolean |
isSortOnHeaderEnabled()
Gets true, if it is possible sorting the data by clicking on the header. |
protected void |
keyPressEvent(QKeyEvent pEvent)
|
QSize |
maximumSizeHint()
Get's the maximum size hint. |
QSize |
minimumSizeHint()
|
protected void |
mouseDoubleClickEvent(QMouseEvent pEvent)
|
protected void |
mousePressEvent(QMouseEvent pEvent)
|
protected void |
mouseReleaseEvent(QMouseEvent pEvent)
Emits the selected signal when the mouse was released over a valid row. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
paintEvent(QPaintEvent pEvent)
|
protected void |
resizeEvent(QResizeEvent pEvent)
|
void |
run()
|
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow. |
protected void |
sectionClickedInternal(Integer pSection)
Handles sort-clickes on table header sections. |
protected void |
sectionDoubleClickedInternal(Integer pSection)
Handles sort-double-clickes on table header sections. |
protected void |
sectionMoved(Integer pLogicalIndex,
Integer pOldVisualIndex,
Integer pNewVisualIndex)
Changes the column order in the row definition of the databook. |
void |
setAutoSize(boolean pAutoSize)
Sets the auto size mode of the table header. |
protected void |
setCellEditorHandler(ICellEditorHandler pCellEditorHandler)
Sets the current used ICellEditorHandler for editing. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the CellFormatter. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control. |
void |
setMaximumSizeHint(QSize pSize)
Sets a user-defined maximum size. |
void |
setMinimumSizeHint(QSize pSize)
Sets a user-defined minimum size. |
protected void |
setSelection(QRect pRect,
QItemSelectionModel.SelectionFlags pFlags)
|
void |
setShowSelection(boolean pShowSelection)
Sets if showing the selection or not. |
void |
setSizeHint(QSize pSize)
Sets a user-defined preferred size. |
void |
setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
Set true, if it should possible sorting the data by clicking on the header. |
void |
setTranslation(TranslationMap pTranslation)
Sets the translation for this table. |
QSize |
sizeHint()
|
protected String |
translate(String pText)
Translates the pText with the mapped translations. |
| Methods inherited from class com.trolltech.qt.gui.QFrame |
|---|
changeEvent, drawFrame, frameRect, frameShadow, frameShape, frameStyle, frameWidth, lineWidth, midLineWidth, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth |
| Methods inherited from class com.trolltech.qt.core.QObject |
|---|
blockSignals, childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, toString, userProperty |
| Methods inherited from class com.trolltech.qt.QtJambiObject |
|---|
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr |
| Methods inherited from class com.trolltech.qt.QSignalEmitter |
|---|
disconnect, disconnect, signalSender |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.trolltech.qt.QtJambiInterface |
|---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
| Field Detail |
|---|
public final QSignalEmitter.Signal1<Integer> selected
| Constructor Detail |
|---|
public QVxTableView()
public QVxTableView(QWidget pParent)
pParent - the parent widget| Method Detail |
|---|
public void setSizeHint(QSize pSize)
setSizeHint in interface ISizableWidgetpSize - the sizeQWidget.sizeHint()public boolean isSizeHintSet()
isSizeHintSet in interface ISizableWidgettrue if an user-defined preferred size is setpublic void setMinimumSizeHint(QSize pSize)
setMinimumSizeHint in interface ISizableWidgetpSize - the sizeQWidget.minimumSizeHint()public boolean isMinimumSizeHintSet()
isMinimumSizeHintSet in interface ISizableWidgettrue if an user-defined minimum size is setpublic void setMaximumSizeHint(QSize pSize)
setMaximumSizeHint in interface ISizableWidgetpSize - the sizepublic boolean isMaximumSizeHintSet()
isMaximumSizeHintSet in interface ISizableWidgettrue if an user-defined maximum size is set
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public void cancelEditing()
DataBook.
cancelEditing in interface IControl
protected void closeEditor(QWidget pEditor,
QAbstractItemDelegate.EndEditHint pHint)
closeEditor in class QAbstractItemViewpublic void notifyRepaint()
notifyRepaint in interface IControlpublic boolean isSortOnHeaderEnabled()
public void setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
pSortOnHeaderEnabled - true, if it is possible sorting the data by clicking on the header.public void setTranslation(TranslationMap pTranslation)
setTranslation in interface IControlpTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface IControlpublic void editingStarted()
ICellEditorListener that the editing has started.
He has to Register the IControl on the IDataRow with registerEditingControl.
editingStarted in interface ICellEditorListenerpublic void editingComplete(String pCompleteType)
ICellEditorListener that the editing is completed.
He has to Unregister the IControl on the IDataRow with unregisterEditingControl.
editingComplete in interface ICellEditorListenerpCompleteType - the type of completion.public boolean isSavingImmediate()
isSavingImmediate in interface ICellEditorListenerpublic void run()
run in interface Runnablepublic void paintEvent(QPaintEvent pEvent)
paintEvent in class QTableView
protected void setSelection(QRect pRect,
QItemSelectionModel.SelectionFlags pFlags)
setSelection in class QTableViewprotected void mouseReleaseEvent(QMouseEvent pEvent)
mouseReleaseEvent in class QAbstractItemViewprotected void mousePressEvent(QMouseEvent pEvent)
mousePressEvent in class QAbstractItemViewprotected void mouseDoubleClickEvent(QMouseEvent pEvent)
mouseDoubleClickEvent in class QAbstractItemViewprotected void resizeEvent(QResizeEvent pEvent)
resizeEvent in class QAbstractItemViewprotected void keyPressEvent(QKeyEvent pEvent)
keyPressEvent in class QAbstractItemViewpublic QSize sizeHint()
sizeHint in class QAbstractScrollAreapublic QSize minimumSizeHint()
minimumSizeHint in class QAbstractScrollAreapublic QSize maximumSizeHint()
maximumSizeHint in interface ISizableWidgetpublic void setDataBook(IDataBook pDataBook)
pDataBook - the DataBookgetDataBook()public IDataBook getDataBook()
setDataBook(javax.rad.model.IDataBook)public ICellFormatter getCellFormatter()
getCellFormatter in interface ICellFormatterEditorListenersetCellFormatter(com.sibvisions.rad.ui.qt.ext.table.ICellFormatter)public void setCellFormatter(ICellFormatter pCellFormatter)
pCellFormatter - the CellFormattergetCellFormatter()public boolean isShowSelection()
public void setShowSelection(boolean pShowSelection)
pShowSelection - showing the selection or not.public void setAutoSize(boolean pAutoSize)
pAutoSize - true to enable the autosize mode, otherwise falsepublic boolean isAutoSize()
true when the autosize mode is enabled, otherwise falsepublic ICellEditorHandler<QWidget> getCellEditorHandler()
protected void setCellEditorHandler(ICellEditorHandler pCellEditorHandler)
pCellEditorHandler - the current used ICellEditorHandler for editing.protected void sectionDoubleClickedInternal(Integer pSection)
pSection - the clicked sectionprotected void sectionClickedInternal(Integer pSection)
pSection - the clicked section
protected void sectionMoved(Integer pLogicalIndex,
Integer pOldVisualIndex,
Integer pNewVisualIndex)
pLogicalIndex - the logical section indexpOldVisualIndex - the visual section index before movingpNewVisualIndex - the visual section index after movingprotected String translate(String pText)
pText with the mapped translations.
pText - the text to translate
pText based on the translation mapping or
pText if there is no translation availablesetTranslation(TranslationMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||