Class AddPeoplePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class AddPeoplePanel extends JPanel
This class represents a panel for adding people in the application. It extends javax.swing.JPanel and provides the necessary interface and methods to handle user interactions for adding new people.
Since:
1.0
Author:
Cesar Bianchi
See Also:
  • Constructor Details

    • AddPeoplePanel

      public AddPeoplePanel()
      Constructs a new AddPeoplePanel. This constructor initializes the components of the panel.
      Since:
      1.0
  • Method Details

    • getLoadedData

      public static ConnectJellyfinAPI getLoadedData()
      Retrieves the instance of ConnectJellyfinAPI used by the AddPeoplePanel.
      Returns:
      The instance of ConnectJellyfinAPI used by the AddPeoplePanel.
      Since:
      1.0
    • setLoadedData

      public void setLoadedData(ConnectJellyfinAPI lData)
      Sets the instance of ConnectJellyfinAPI to be used by the AddPeoplePanel and loads the existing people.
      Parameters:
      lData - The instance of ConnectJellyfinAPI to be used.
      Since:
      1.0
    • loadExistingPeople

      public void loadExistingPeople()
      Loads the existing people from the Jellyfin server and displays them in the table. This method requests the existing people from the Jellyfin server, clears the table, and adds the existing people to the table. Each row in the table represents a person and contains the id and name of the person. After adding the existing people to the table, it resizes the table width columns.
      Since:
      1.0
    • getjComboBox1

      public JComboBox<String> getjComboBox1()
      Retrieves the jComboBox1 property of this AddPeoplePanel.
      Returns:
      A JComboBox object representing the jComboBox1 of this AddPeoplePanel. This JComboBox is typically used for user input in a GUI, and contains String objects.
      Since:
      1.0
    • setjComboBox1

      public void setjComboBox1(JComboBox<String> jComboBox1)
      Sets the jComboBox1 property of this AddPeoplePanel.
      Parameters:
      jComboBox1 - A JComboBox object that should be used as the new jComboBox1 for this AddPeoplePanel. This JComboBox is typically used for user input in a GUI, and should contain String objects.
      Since:
      1.0
    • getjTextField1

      public JTextField getjTextField1()
      Retrieves the jTextField1 property of this AddPeoplePanel.
      Returns:
      A JTextField object representing the jTextField1 of this AddPeoplePanel. This JTextField is typically used for user input in a GUI.
      Since:
      1.0
    • setjTextField1

      public void setjTextField1(JTextField jTextField1)
      Retrieves the jTextField2 property of this AddPeoplePanel.
      Since:
      1.0
    • getjTextField2

      public JTextField getjTextField2()
      Retrieves the jTextField2 property of this AddPeoplePanel.
      Returns:
      A JTextField object representing the jTextField2 of this AddPeoplePanel. This JTextField is typically used for user input in a GUI.
      Since:
      1.0
    • setjTextField2

      public void setjTextField2(JTextField jTextField2)
      Retrieves the jTextField3 property of this AddPeoplePanel.
      Since:
      1.0
    • getjTextField3

      public JTextField getjTextField3()
      Retrieves the jTextField3 property of this AddPeoplePanel.
      Returns:
      A JTextField object representing the jTextField3 of this AddPeoplePanel. This JTextField is typically used for user input in a GUI.
      Since:
      1.0
    • setjTextField3

      public void setjTextField3(JTextField jTextField3)
      Displays the About JEMM dialog. This method creates a new AboutJemmPanel and displays it in a modal JDialog. If the dialog has already been created, this method does nothing.
      Since:
      1.0