Class SchoolClassInfoPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
be.gaudry.swing.edu.school.schoolClass.SchoolClassInfoPanel
All Implemented Interfaces:
IItem<SchoolClass>, IItemPanel<SchoolClass>, ImageObserver, MenuContainer, Serializable, Accessible

public class SchoolClassInfoPanel extends JPanel implements IItemPanel<SchoolClass>
Since:
1.0 25 oct. 2008
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

    • SchoolClassInfoPanel

      public SchoolClassInfoPanel()
  • Method Details

    • main

      public static void main(String[] args)
      Auto-generated main method to display this JPanel inside a new JFrame.
    • setItem

      public void setItem(SchoolClass item)
      Description copied from interface: IItem
      Give an item to the view
      Specified by:
      setItem in interface IItem<SchoolClass>
    • getItemName

      public String getItemName()
      Specified by:
      getItemName in interface IItemPanel<SchoolClass>
      Returns:
      a user readable name (ie person, actor,...)
    • getPanel

      public JPanel getPanel()
      Description copied from interface: IItemPanel
      Mostly implemented like this :
      public JPanel getPanel(){
              return this;
       }
      because we cannot inherit from JPanel for an interface, but we must insert the implemented class in a container.
      Specified by:
      getPanel in interface IItemPanel<SchoolClass>
      Returns:
      the panel
    • setLoader

      public void setLoader(SchoolClassesLoader loader)