Class PeriodInfoPanel

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

public class PeriodInfoPanel extends JPanel implements IItemPanel<Period>
Since:
1.0 1 nov. 2008
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

    • PeriodInfoPanel

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

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

      public void setLoader(PeriodsLoader loader)