Package be.gaudry.swing.crud
Interface IItemEditor<T extends ILightObject>
- Type Parameters:
T
-
- All Superinterfaces:
IItem<T>
,IItemPanel<T>
- All Known Implementing Classes:
ExaminationPanel
,PeriodEditPanel
,PersonEditPanel
,PersonEidSimpleDataEditPanel
,PersonSimpleDataEditPanel
,SchoolClassEditPanel
,SchoolEditPanel
,StudentEditPanel
,TeacherEditPanel
,YearEditPanel
- Since:
- 1.0 Oct 24, 2008, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets data from the item object and set the view components with itCalls the persistent layer to save or update the currentitem.
This method may be invoked by theManagementPanel
void
Gets data from the view, and sets the item data with itMethods inherited from interface be.gaudry.swing.crud.IItemPanel
getItemName, getPanel
-
Method Details
-
saveOrUpdateItem
T saveOrUpdateItem()Calls the persistent layer to save or update the currentitem.
This method may be invoked by theManagementPanel
- Returns:
saved item (the persistent layer will probably set the id if a new item is saved)
-
view2data
void view2data()Gets data from the view, and sets the item data with it -
data2view
void data2view()Gets data from the item object and set the view components with it
-