com.sibvisions.rad.ui.qt.ext.celleditor
Class QVxLinkedCellEditor.CellEditorHandler

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.QComboBox
                          extended by com.sibvisions.rad.ui.qt.ext.QVxComboBase
                              extended by com.sibvisions.rad.ui.qt.ext.celleditor.QVxLinkedCellEditor.CellEditorHandler
All Implemented Interfaces:
ISizableWidget, QPaintDeviceInterface, QtJambiInterface, ICellEditorHandler<QWidget>
Enclosing class:
QVxLinkedCellEditor

public static class QVxLinkedCellEditor.CellEditorHandler
extends QVxComboBase
implements ICellEditorHandler<QWidget>

Sets the internal changed Flag, and informs the CellEditorListener if editing is completed.


Nested Class Summary
 class QVxLinkedCellEditor.CellEditorHandler.InternalSignalAndEventHandler
          The InternalSignalAndEventHandler handles signals and events from the the combobase and the referenced table.
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QComboBox
QComboBox.InsertPolicy, QComboBox.SizeAdjustPolicy
 
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
 
Fields inherited from class com.trolltech.qt.gui.QComboBox
activated, activatedIndex, currentIndexChanged, currentStringChanged, editTextChanged, highlighted, highlightedIndex
 
Fields inherited from class com.trolltech.qt.gui.QWidget
customContextMenuRequested
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QVxLinkedCellEditor.CellEditorHandler(QVxLinkedCellEditor pCellEditor, ICellFormatterEditorListener pCellEditorListener, IDataRow pDataRow, String pColumnName)
          Constructs a new instance of CellEditorHandler.
 
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 fireEditingComplete(String pCompleteType)
          Delegates the event to the ICellEditorListener.
protected  void fireEditingStarted()
          Delegates the event to the ICellEditorListener.
 ICellEditor getCellEditor()
          Returns the ICellEditor that created this handler.
 QWidget getCellEditorComponent()
          Returns the library dependent CellEditorComponent.
 ICellEditorListener getCellEditorListener()
          Returns the CellEditorListener.
 String getColumnName()
          Returns the column name that is edited in the IDataRow.
 IDataRow getDataRow()
          Returns the IDataRow that is edited.
 void saveEditing()
          Saves the changes made from the CellEditorComponent DataBook.
 void showPopup()
          Triggers that the popup will become visible.
 void uninstallEditor()
          Informs the handler, that the editor is or will be discarded.
 void updateEditor()
          Informs the handler, that it should possibly get new information from the ICellEditorListener (for e.g. a new TranslationMap).
 
Methods inherited from class com.sibvisions.rad.ui.qt.ext.QVxComboBase
isMaximumSizeHintSet, isMinimumSizeHintSet, isPopupVisible, isReadOnly, isSizeHintSet, keyPressEvent, maximumSizeHint, minimumSizeHint, mousePressEvent, setMaximumSizeHint, setMinimumSizeHint, setPopupSize, setPopupWidget, setReadOnly, setSizeHint, setText, sizeHint, text
 
Methods inherited from class com.trolltech.qt.gui.QComboBox
__qt_signalInitialization, addItem, addItem, addItem, addItem, addItems, changeEvent, clear, clearEditText, completer, contextMenuEvent, count, currentIndex, currentText, duplicatesEnabled, event, findData, findData, findData, findData, findText, findText, findText, focusInEvent, focusOutEvent, fromNativePointer, hasFrame, hideEvent, hidePopup, iconSize, initStyleOption, inputMethodEvent, inputMethodQuery, insertItem, insertItem, insertItem, insertItem, insertItems, insertPolicy, insertSeparator, isEditable, itemData, itemData, itemDelegate, itemIcon, itemText, keyReleaseEvent, lineEdit, maxCount, maxVisibleItems, minimumContentsLength, model, modelColumn, mouseReleaseEvent, paintEvent, removeItem, resizeEvent, rootModelIndex, setCompleter, setCurrentIndex, setDuplicatesEnabled, setEditable, setEditText, setFrame, setIconSize, setInsertPolicy, setItemData, setItemData, setItemDelegate, setItemIcon, setItemText, setLineEdit, setMaxCount, setMaxVisibleItems, setMinimumContentsLength, setModel, setModelColumn, setRootModelIndex, setSizeAdjustPolicy, setValidator, setView, showEvent, sizeAdjustPolicy, validator, view, wheelEvent
 
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, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, focusNextChild, focusNextPrevChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsProxyWidget, hasFocus, hasMouseTracking, height, heightForWidth, heightMM, hide, inputContext, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, languageChange, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, numColors, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintEngine, 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, 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, timerEvent, 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
 

Constructor Detail

QVxLinkedCellEditor.CellEditorHandler

public QVxLinkedCellEditor.CellEditorHandler(QVxLinkedCellEditor pCellEditor,
                                             ICellFormatterEditorListener pCellEditorListener,
                                             IDataRow pDataRow,
                                             String pColumnName)
Constructs a new instance of CellEditorHandler.

Parameters:
pCellEditor - the CellEditor that created this handler.
pCellEditorListener - CellEditorListener to inform, if editing is started or completed.
pDataRow - the data row that is edited.
pColumnName - the column name of the edited column.
Method Detail

getCellEditor

public ICellEditor getCellEditor()
Returns the ICellEditor that created this handler.

Specified by:
getCellEditor in interface ICellEditorHandler<QWidget>
Returns:
the ICellEditor that created this handler.

getCellEditorComponent

public QWidget getCellEditorComponent()
Returns the library dependent CellEditorComponent.

Specified by:
getCellEditorComponent in interface ICellEditorHandler<QWidget>
Returns:
the library dependent CellEditorComponent.

getCellEditorListener

public ICellEditorListener getCellEditorListener()
Returns the CellEditorListener.

Specified by:
getCellEditorListener in interface ICellEditorHandler<QWidget>
Returns:
the CellEditorListener.

getColumnName

public String getColumnName()
Returns the column name that is edited in the IDataRow.

Specified by:
getColumnName in interface ICellEditorHandler<QWidget>
Returns:
the column name that is edited in the IDataRow.

getDataRow

public IDataRow getDataRow()
Returns the IDataRow that is edited.

Specified by:
getDataRow in interface ICellEditorHandler<QWidget>
Returns:
the IDataRow that is edited.

uninstallEditor

public void uninstallEditor()
Informs the handler, that the editor is or will be discarded. This is the place for removing all listeners and disabling events coming after this call (Focus Event is a funny example...).

Specified by:
uninstallEditor in interface ICellEditorHandler<QWidget>

updateEditor

public void updateEditor()
Informs the handler, that it should possibly get new information from the ICellEditorListener (for e.g. a new TranslationMap).

Specified by:
updateEditor in interface ICellEditorHandler<QWidget>

saveEditing

public void saveEditing()
                 throws ModelException
Saves the changes made from the CellEditorComponent DataBook.

Specified by:
saveEditing in interface ICellEditorHandler<QWidget>
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 ICellEditorHandler<QWidget>

showPopup

public void showPopup()
Triggers that the popup will become visible.

Overrides:
showPopup in class QVxComboBase

fireEditingStarted

protected void fireEditingStarted()
Delegates the event to the ICellEditorListener.


fireEditingComplete

protected void fireEditingComplete(String pCompleteType)
Delegates the event to the ICellEditorListener.

Parameters:
pCompleteType - the editing complete type.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.