Class SchoolInfoPanel

All Implemented Interfaces:
IItem<School>, IItemPanel<School>, ImageObserver, MenuContainer, Serializable, Accessible

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

    • SchoolInfoPanel

      public SchoolInfoPanel()
  • 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(School item)
      Description copied from interface: IItem
      Give an item to the view
      Specified by:
      setItem in interface IItem<School>
    • getItemName

      public String getItemName()
      Specified by:
      getItemName in interface IItemPanel<School>
      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<School>
      Returns:
      the panel