|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.ext.celleditor.QVxNumberCellEditor.CellEditorHandler
public static class QVxNumberCellEditor.CellEditorHandler
Sets the internal changed flag, and informs the CellEditorListener if editing is completed.
| Nested Class Summary | |
|---|---|
class |
QVxNumberCellEditor.CellEditorHandler.InternalSignalAndEventHandler
The InternalSignalAndEventHandler handles signals and events
from the the line edit. |
| Constructor Summary | |
|---|---|
QVxNumberCellEditor.CellEditorHandler(QVxNumberCellEditor 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 |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QVxNumberCellEditor.CellEditorHandler(QVxNumberCellEditor pCellEditor,
ICellFormatterEditorListener pCellEditorListener,
IDataRow pDataRow,
String pColumnName)
CellEditorHandler.
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 |
|---|
public ICellEditor getCellEditor()
ICellEditor that created this handler.
getCellEditor in interface ICellEditorHandler<QWidget>ICellEditor that created this handler.public QWidget getCellEditorComponent()
CellEditorComponent.
getCellEditorComponent in interface ICellEditorHandler<QWidget>CellEditorComponent.public ICellEditorListener getCellEditorListener()
CellEditorListener.
getCellEditorListener in interface ICellEditorHandler<QWidget>CellEditorListener.public String getColumnName()
IDataRow.
getColumnName in interface ICellEditorHandler<QWidget>IDataRow.public IDataRow getDataRow()
IDataRow that is edited.
getDataRow in interface ICellEditorHandler<QWidget>IDataRow that is edited.
public void saveEditing()
throws ModelException
DataBook.
saveEditing in interface ICellEditorHandler<QWidget>ModelException - if the value can not be stored.public void cancelEditing()
DataBook.
cancelEditing in interface ICellEditorHandler<QWidget>public void uninstallEditor()
uninstallEditor in interface ICellEditorHandler<QWidget>public void updateEditor()
updateEditor in interface ICellEditorHandler<QWidget>protected void fireEditingStarted()
ICellEditorListener.
It takes care, that the event occurs only one time.
protected void fireEditingComplete(String pCompleteType)
ICellEditorListener.
It takes care, that editing started will be called before,
if it is not called until jet.
pCompleteType - the editing complete type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||