javax.rad.model.ui
Interface IControl

All Known Subinterfaces:
IEditor, ITable, ITree
All Known Implementing Classes:
JVxEditor, JVxTable, JVxTree, QtEditor, QtTable, QVxEditor, QVxTableView, SwingEditor, SwingTable, SwingTree, UIEditor, UITable, UITree

public interface IControl

The IControl inform about changes in the IDataRow/IDataBook and GUI controls need to repaint the data part. It also inform the GUI controls, that the editing mode in the control should be save or cancel the last change.

See Also:
IDataRow, IDataBook

Method Summary
 void cancelEditing()
          Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook.
 TranslationMap getTranslation()
          Gets the possible translation mapping for this UIComponent.
 void notifyRepaint()
          The control need to check if the part is visible and then repaint the part.
 void saveEditing()
          Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow.
 void setTranslation(TranslationMap pTranslation)
          Sets the possible translations for this UIComponent.
 

Method Detail

notifyRepaint

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


saveEditing

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

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

cancelEditing

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


setTranslation

void setTranslation(TranslationMap pTranslation)
Sets the possible translations for this UIComponent.

Parameters:
pTranslation - the translation mapping

getTranslation

TranslationMap getTranslation()
Gets the possible translation mapping for this UIComponent.

Returns:
the translation mappint


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.