javax.rad.model.ui
Interface ICellEditorHandler<C>

Type Parameters:
C - Placeholder for the library dependent component type.
All Known Implementing Classes:
JVxDateCellEditor.CellEditorHandler, JVxLinkedCellEditor.CellEditorHandler, JVxNumberCellEditor.CellEditorHandler, JVxTextCellEditor.CellEditorHandler

public interface ICellEditorHandler<C>

The ICellEditorHandler holds the physical editor component, handles correct all events, and stores or restores the values.


Method Summary
 void cancelEditing()
          Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook.
 ICellEditor getCellEditor()
          Returns the ICellEditor that created this handler.
 C 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).
 

Method Detail

uninstallEditor

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...).


updateEditor

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


getCellEditor

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

Returns:
the ICellEditor that created this handler.

getCellEditorListener

ICellEditorListener getCellEditorListener()
Returns the CellEditorListener.

Returns:
the CellEditorListener.

getDataRow

IDataRow getDataRow()
Returns the IDataRow that is edited.

Returns:
the IDataRow that is edited.

getColumnName

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

Returns:
the column name that is edited in the IDataRow.

getCellEditorComponent

C getCellEditorComponent()
Returns the library dependent CellEditorComponent.

Returns:
the library dependent CellEditorComponent.

saveEditing

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

Throws:
ModelException - if the value can not be stored.

cancelEditing

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

Throws:
ModelException - if the value can not be restored.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.