Package com.lariflix.jemm.forms
Class AddStudioWindow
java.lang.Object
com.lariflix.jemm.forms.AddStudioWindow
This class represents a window for adding studios in the application.
It provides the necessary interface and methods to handle user interactions for adding new studios.
- Since:
- 1.0
- Author:
- Cesar Bianchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDisplays the dialog to the user to define a new studio and returns the new studio defined by the user.
-
Constructor Details
-
AddStudioWindow
Constructs a new AddStudioWindow. This constructor initializes the components of the window, sets the instance of ConnectJellyfinAPI to be used by the AddStudioWindow, and creates a new dialog. If the dialog has not been created yet, it creates a new dialog with the title "JEMM - Add Studio", sets its size to 1050x600, adds the panel to the dialog, packs the dialog, and centers the dialog on the screen.- Parameters:
lData
- The instance of ConnectJellyfinAPI to be used.- Since:
- 1.0
-
-
Method Details
-
showDialog
Displays the dialog to the user to define a new studio and returns the new studio defined by the user. This method makes the dialog visible, retrieves the id and name of the new studio from the text fields, and creates a new JellyfinStudioItem with the retrieved id and name.- Returns:
- The new JellyfinStudioItem defined by the user.
- Since:
- 1.0
-