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

public interface IItemEditor<T extends ILightObject> extends IItemPanel<T>
Since:
1.0 Oct 24, 2008, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Gets data from the item object and set the view components with it
    Calls the persistent layer to save or update the current item.
    This method may be invoked by the ManagementPanel
    void
    Gets data from the view, and sets the item data with it

    Methods inherited from interface be.gaudry.model.crud.IItem

    setItem

    Methods inherited from interface be.gaudry.swing.crud.IItemPanel

    getItemName, getPanel
  • Method Details

    • saveOrUpdateItem

      T saveOrUpdateItem()
      Calls the persistent layer to save or update the current item.
      This method may be invoked by the ManagementPanel
      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