com.sibvisions.rad.ui.qt.ext
Class QVxTableView

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QObject
                  extended by com.trolltech.qt.gui.QWidget
                      extended by com.trolltech.qt.gui.QFrame
                          extended by com.trolltech.qt.gui.QAbstractScrollArea
                              extended by com.trolltech.qt.gui.QAbstractItemView
                                  extended by com.trolltech.qt.gui.QTableView
                                      extended by com.sibvisions.rad.ui.qt.ext.QVxTableView
All Implemented Interfaces:
ICellFormatterEditorListener, ISizableWidget, QPaintDeviceInterface, QtJambiInterface, Runnable, ICellEditorListener, IControl

public class QVxTableView
extends QTableView
implements ISizableWidget, IControl, ICellFormatterEditorListener, Runnable

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.QTableView
clearSpans, columnAt, columnCountChanged, columnMoved, columnResized, columnSpan, columnViewportPosition, columnWidth, currentChanged, fromNativePointer, gridStyle, hideColumn, hideRow, horizontalHeader, horizontalOffset, horizontalScrollbarAction, indexAt, isColumnHidden, isCornerButtonEnabled, isIndexHidden, isRowHidden, isSortingEnabled, moveCursor, resizeColumnsToContents, resizeColumnToContents, resizeRowsToContents, resizeRowToContents, rowAt, rowCountChanged, rowHeight, rowMoved, rowResized, rowSpan, rowViewportPosition, scrollContentsBy, scrollTo, selectColumn, selectedIndexes, selectionChanged, selectRow, setColumnHidden, setColumnWidth, setCornerButtonEnabled, setGridStyle, setHorizontalHeader, setModel, setRootIndex, setRowHeight, setRowHidden, setSelectionModel, setShowGrid, setSortingEnabled, setSpan, setVerticalHeader, setWordWrap, showColumn, showGrid, showRow, sizeHintForColumn, sizeHintForRow, sortByColumn, timerEvent, updateGeometries, verticalHeader, verticalOffset, verticalScrollbarAction, viewOptions, visualRect, visualRegionForSelection, wordWrap
 
Methods inherited from class com.trolltech.qt.gui.QAbstractItemView
__qt_signalInitialization, alternatingRowColors, autoScrollMargin, clearSelection, closePersistentEditor, commitData, currentIndex, dataChanged, dirtyRegionOffset, doAutoScroll, doItemsLayout, dragDropMode, dragDropOverwriteMode, dragEnabled, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, dropIndicatorPosition, edit, edit, editorDestroyed, editTriggers, event, executeDelayedItemsLayout, focusInEvent, focusNextPrevChild, focusOutEvent, hasAutoScroll, horizontalScrollbarValueChanged, horizontalScrollMode, iconSize, indexWidget, inputMethodEvent, inputMethodQuery, itemDelegate, itemDelegate, itemDelegateForColumn, itemDelegateForRow, keyboardSearch, model, mouseMoveEvent, openPersistentEditor, reset, rootIndex, rowsAboutToBeRemoved, rowsInserted, scheduleDelayedItemsLayout, scrollDirtyRegion, scrollTo, scrollToBottom, scrollToTop, selectAll, selectionBehavior, selectionCommand, selectionCommand, selectionMode, selectionModel, setAlternatingRowColors, setAutoScroll, setAutoScrollMargin, setCurrentIndex, setDirtyRegion, setDragDropMode, setDragDropOverwriteMode, setDragEnabled, setDropIndicatorShown, setEditTriggers, setEditTriggers, setHorizontalScrollMode, setIconSize, setIndexWidget, setItemDelegate, setItemDelegateForColumn, setItemDelegateForRow, setSelectionBehavior, setSelectionMode, setState, setTabKeyNavigation, setTextElideMode, setVerticalScrollMode, showDropIndicator, sizeHintForIndex, startAutoScroll, startDrag, startDrag, state, stopAutoScroll, tabKeyNavigation, textElideMode, update, updateEditorData, updateEditorGeometries, verticalScrollbarValueChanged, verticalScrollMode, viewportEvent
 
Methods inherited from class com.trolltech.qt.gui.QAbstractScrollArea
addScrollBarWidget, addScrollBarWidget, contextMenuEvent, cornerWidget, horizontalScrollBar, horizontalScrollBarPolicy, maximumViewportSize, paintEngine, scrollBarWidgets, scrollBarWidgets, setCornerWidget, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setupViewport, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportMargins, verticalScrollBar, verticalScrollBarPolicy, viewport, wheelEvent
 
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.gui.QWidget
__qt_cast_to_QPaintDevice, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsRect, contextMenuPolicy, createWinId, cursor, depth, destroy, destroy, destroy, devType, effectiveWinId, ensurePolished, enterEvent, focusNextChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsProxyWidget, hasFocus, hasMouseTracking, height, heightForWidth, heightMM, hide, hideEvent, inputContext, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyReleaseEvent, languageChange, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseGrabber, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, numColors, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, raise, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resetInputContext, resize, resize, restoreGeometry, saveGeometry, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setHidden, setInputContext, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, underMouse, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, widthMM, window, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y
 
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

selected

public final QSignalEmitter.Signal1<Integer> selected
the seletion change of the row. (takes one Integer parameter).

Constructor Detail

QVxTableView

public QVxTableView()
Constructs a table view to represent the data.


QVxTableView

public QVxTableView(QWidget pParent)
Constructs a table view with a parent to represent the data.

Parameters:
pParent - the parent widget
Method Detail

setSizeHint

public void setSizeHint(QSize pSize)
Sets a user-defined preferred size.

Specified by:
setSizeHint in interface ISizableWidget
Parameters:
pSize - the size
See Also:
QWidget.sizeHint()

isSizeHintSet

public boolean isSizeHintSet()
Determines if an user-defined preferred size is set.

Specified by:
isSizeHintSet in interface ISizableWidget
Returns:
true if an user-defined preferred size is set

setMinimumSizeHint

public void setMinimumSizeHint(QSize pSize)
Sets a user-defined minimum size.

Specified by:
setMinimumSizeHint in interface ISizableWidget
Parameters:
pSize - the size
See Also:
QWidget.minimumSizeHint()

isMinimumSizeHintSet

public boolean isMinimumSizeHintSet()
Determines if an user-defined minimum size is set.

Specified by:
isMinimumSizeHintSet in interface ISizableWidget
Returns:
true if an user-defined minimum size is set

setMaximumSizeHint

public void setMaximumSizeHint(QSize pSize)
Sets a user-defined maximum size.

Specified by:
setMaximumSizeHint in interface ISizableWidget
Parameters:
pSize - the size

isMaximumSizeHintSet

public boolean isMaximumSizeHintSet()
Determines if an user-defined maximum size is set.

Specified by:
isMaximumSizeHintSet in interface ISizableWidget
Returns:
true if an user-defined maximum size is set

saveEditing

public void saveEditing()
                 throws ModelException
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow.

Specified by:
saveEditing in interface IControl
Throws:
ModelException - if the value can not be stored.

cancelEditing

public void cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook.

Specified by:
cancelEditing in interface IControl

closeEditor

protected void closeEditor(QWidget pEditor,
                           QAbstractItemDelegate.EndEditHint pHint)

Overrides:
closeEditor in class QAbstractItemView

notifyRepaint

public void notifyRepaint()
The control need to check if the part is visible and then repaint the part.

Specified by:
notifyRepaint in interface IControl

isSortOnHeaderEnabled

public boolean isSortOnHeaderEnabled()
Gets true, if it is possible sorting the data by clicking on the header.

Returns:
true, if it is possible sorting the data by clicking on the header.

setSortOnHeaderEnabled

public void setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
Set true, if it should possible sorting the data by clicking on the header.

Parameters:
pSortOnHeaderEnabled - true, if it is possible sorting the data by clicking on the header.

setTranslation

public void setTranslation(TranslationMap pTranslation)
Sets the translation for this table.

Specified by:
setTranslation in interface IControl
Parameters:
pTranslation - the translation mapping

getTranslation

public TranslationMap getTranslation()
Gets the translation for this table.

Specified by:
getTranslation in interface IControl
Returns:
the translation mapping

editingStarted

public void editingStarted()
Informs the ICellEditorListener that the editing has started. He has to Register the IControl on the IDataRow with registerEditingControl.

Specified by:
editingStarted in interface ICellEditorListener

editingComplete

public void editingComplete(String pCompleteType)
Informs the ICellEditorListener that the editing is completed. He has to Unregister the IControl on the IDataRow with unregisterEditingControl.

Specified by:
editingComplete in interface ICellEditorListener
Parameters:
pCompleteType - the type of completion.

isSavingImmediate

public boolean isSavingImmediate()
Tells whether the CellEditor should save immediate.

Specified by:
isSavingImmediate in interface ICellEditorListener
Returns:
whether the CellEditor should save immediate.

run

public void run()

Specified by:
run in interface Runnable

paintEvent

public void paintEvent(QPaintEvent pEvent)

Overrides:
paintEvent in class QTableView

setSelection

protected void setSelection(QRect pRect,
                            QItemSelectionModel.SelectionFlags pFlags)

Overrides:
setSelection in class QTableView

mouseReleaseEvent

protected void mouseReleaseEvent(QMouseEvent pEvent)
Emits the selected signal when the mouse was released over a valid row.

Overrides:
mouseReleaseEvent in class QAbstractItemView

mousePressEvent

protected void mousePressEvent(QMouseEvent pEvent)

Overrides:
mousePressEvent in class QAbstractItemView

mouseDoubleClickEvent

protected void mouseDoubleClickEvent(QMouseEvent pEvent)

Overrides:
mouseDoubleClickEvent in class QAbstractItemView

resizeEvent

protected void resizeEvent(QResizeEvent pEvent)

Overrides:
resizeEvent in class QAbstractItemView

keyPressEvent

protected void keyPressEvent(QKeyEvent pEvent)

Overrides:
keyPressEvent in class QAbstractItemView

sizeHint

public QSize sizeHint()

Overrides:
sizeHint in class QAbstractScrollArea

minimumSizeHint

public QSize minimumSizeHint()

Overrides:
minimumSizeHint in class QAbstractScrollArea

maximumSizeHint

public QSize maximumSizeHint()
Get's the maximum size hint.

Specified by:
maximumSizeHint in interface ISizableWidget
Returns:
the maximum size hint.

setDataBook

public void setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control.

Parameters:
pDataBook - the DataBook
See Also:
getDataBook()

getDataBook

public IDataBook getDataBook()
Returns the DataBook displayed by this control.

Returns:
the DataBook.
See Also:
setDataBook(javax.rad.model.IDataBook)

getCellFormatter

public ICellFormatter getCellFormatter()
Gets the CellFormatter.

Specified by:
getCellFormatter in interface ICellFormatterEditorListener
Returns:
the CellFormatter.
See Also:
setCellFormatter(com.sibvisions.rad.ui.qt.ext.table.ICellFormatter)

setCellFormatter

public void setCellFormatter(ICellFormatter pCellFormatter)
Sets the CellFormatter.

Parameters:
pCellFormatter - the CellFormatter
See Also:
getCellFormatter()

isShowSelection

public boolean isShowSelection()
Gets if showing the selection or not.

Returns:
showing the selection or not.

setShowSelection

public void setShowSelection(boolean pShowSelection)
Sets if showing the selection or not.

Parameters:
pShowSelection - showing the selection or not.

setAutoSize

public void setAutoSize(boolean pAutoSize)
Sets the auto size mode of the table header.

Parameters:
pAutoSize - true to enable the autosize mode, otherwise false

isAutoSize

public boolean isAutoSize()
Returns the current state of the autosize mode.

Returns:
true when the autosize mode is enabled, otherwise false

getCellEditorHandler

public ICellEditorHandler<QWidget> getCellEditorHandler()
The current used CellEditor for editing.

Returns:
The current used CellEditor for editing.

setCellEditorHandler

protected void setCellEditorHandler(ICellEditorHandler pCellEditorHandler)
Sets the current used ICellEditorHandler for editing. This functionality is internal. It is necessary, because the underlaying JTable calls, the functions for start editing.

Parameters:
pCellEditorHandler - the current used ICellEditorHandler for editing.

sectionDoubleClickedInternal

protected void sectionDoubleClickedInternal(Integer pSection)
Handles sort-double-clickes on table header sections.

Parameters:
pSection - the clicked section

sectionClickedInternal

protected void sectionClickedInternal(Integer pSection)
Handles sort-clickes on table header sections.

Parameters:
pSection - the clicked section

sectionMoved

protected void sectionMoved(Integer pLogicalIndex,
                            Integer pOldVisualIndex,
                            Integer pNewVisualIndex)
Changes the column order in the row definition of the databook.

Parameters:
pLogicalIndex - the logical section index
pOldVisualIndex - the visual section index before moving
pNewVisualIndex - the visual section index after moving

translate

protected String translate(String pText)
Translates the pText with the mapped translations.

Parameters:
pText - the text to translate
Returns:
the translation for pText based on the translation mapping or pText if there is no translation available
See Also:
setTranslation(TranslationMap)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.