Class AddStudioPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

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

  • Constructor Details

    • AddStudioPanel

      public AddStudioPanel()
      Constructs a new AddStudioPanel. 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 AddStudioPanel.
      Returns:
      The instance of ConnectJellyfinAPI used by the AddStudioPanel.
      Since:
      1.0
    • setLoadedData

      public void setLoadedData(ConnectJellyfinAPI lData)
      Retrieves the instance of ConnectJellyfinAPI used by the AddStudioPanel.
      Since:
      1.0
    • loadExistingStudio

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

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

      public void setjTextField1(JTextField jTextField1)
      Sets the jTextField1 property of this AddStudioPanel.
      Parameters:
      jTextField1 - A JTextField object that should be used as the new jTextField1 for this AddStudioPanel. This JTextField is typically used for user input in a GUI.
      Since:
      1.0
    • getjTextField2

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

      public void setjTextField2(JTextField jTextField2)
      Sets the jTextField2 property of this AddStudioPanel.
      Parameters:
      jTextField2 - A JTextField object that should be used as the new jTextField2 for this AddStudioPanel. This JTextField is typically used for user input in a GUI.
      Since:
      1.0