Class PersonBasicInfoPanel

All Implemented Interfaces:
IItem<Person>, IItemPanel<Person>, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class PersonBasicInfoPanel extends JPanel implements IItemPanel<Person>, PropertyChangeListener
See Also:
Serialized Form
  • Constructor Details

    • PersonBasicInfoPanel

      public PersonBasicInfoPanel()
  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getItemName

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

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

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

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • setLanguage

      protected void setLanguage()