de.hs_rm.cs.lecturenotes.client.module
Interface IForm<T>

Type Parameters:
T - Type of model
All Known Subinterfaces:
IModuleComposite<T>
All Known Implementing Classes:
AnnotationModuleComposite, EditSystemUsersDialogBox, ExerciseEditPanel, FilecardEditPanelComposite, FilecardPreviewComposite, FilecardPrintSelectionDialogBox, LectureDetailsPopupPanel, MediaLibraryDialogBox, NewLectureDialogBox, ParagraphVersionBrowserDialogBox, RegisterUserDialogBox, SetUserPasswordDialogBox, SlideEditPanel, SlideOnlineViewDialogBox, WhatsNewEntryComposite, WhatsNewModuleComposite

public interface IForm<T>

The IForm is made to have a common layout for presentation components like dialogs or panels.

Version:
$LastChangedRevision: 242 $
Author:
Enrico Homann

Method Summary
 T getFormModel()
          Will return the form model.
 void onUpdateModelFromView()
          Event callback meant to be called if an update of the model from the view components shall occur.
 void onUpdateViewFromModel()
          Event callback meant to be called if an update of the view components from the model shall occur.
 void setFormModel(T model)
          Sets the model.
 

Method Detail

setFormModel

void setFormModel(T model)
Sets the model.

Parameters:
model - T

getFormModel

T getFormModel()
Will return the form model.

Returns:
T

onUpdateViewFromModel

void onUpdateViewFromModel()
Event callback meant to be called if an update of the view components from the model shall occur.


onUpdateModelFromView

void onUpdateModelFromView()
Event callback meant to be called if an update of the model from the view components shall occur.