Class PersonInfoPanel

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

public class PersonInfoPanel extends JPanel implements IItemPanel<PersonExt>
See Also:
Serialized Form
  • Constructor Details

    • PersonInfoPanel

      public PersonInfoPanel()
  • Method Details

    • setItem

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

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

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