Package com.esprit.controllers.series
Class CategoriesClientController
java.lang.Object
com.esprit.controllers.series.CategoriesClientController
Is responsible for handling user interactions related to categories, such as
displaying category information and handling menu events. The controller uses
an `IServiceCategorieImpl` interface to retrieve category data from a
database and displays the information in a tile pane. Additionally, it
handles menu events for different types of content (series, episodes) and
displays them in separate stages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afficher()
Clears the children of a `tilepane`, retrieves a list of categories from an `IServiceCategorieImpl`, loops through the list and adds a `VBox` for each category, displaying its name and description.private void
Displays a message upon launching the application using FXML.(package private) void
Ocategories
(javafx.event.ActionEvent event) Loads a FXML file named "/ui//ui/CategorieClient.fxml", creates a scene with the root node, sets the scene on a stage, and displays the stage.(package private) void
Oepisode
(javafx.event.ActionEvent event) Loads an FXML file, creates a scene and stages it in a window.(package private) void
Oseries
(javafx.event.ActionEvent event) Loads a FXML file, creates a scene and stages it.
-
Field Details
-
listeV2
javafx.scene.control.ListView<Category> listeV2 -
prixF
javafx.scene.control.Label prixF -
id
int id -
tilepane
private javafx.scene.layout.TilePane tilepane
-
-
Constructor Details
-
CategoriesClientController
public CategoriesClientController()
-
-
Method Details
-
afficher
public void afficher()Clears the children of a `tilepane`, retrieves a list of categories from an `IServiceCategorieImpl`, loops through the list and adds a `VBox` for each category, displaying its name and description. -
initialize
private void initialize()Displays a message upon launching the application using FXML. -
Ocategories
Loads a FXML file named "/ui//ui/CategorieClient.fxml", creates a scene with the root node, sets the scene on a stage, and displays the stage.- Parameters:
event
- event that triggered the function, specifically the opening of a JavaFX application.- `event`: An `ActionEvent` object representing the user's action that triggered the function execution.
- Throws:
IOException
-
Oseries
Loads a FXML file, creates a scene and stages it.- Parameters:
event
- event that triggered the function execution, which in this case is a user action on the SeriesClient.fxml file.- `event`: An `ActionEvent` object representing the user action that triggered the function.
- Throws:
IOException
-
Oepisode
Loads an FXML file, creates a scene and stages it in a window.- Parameters:
event
- EventObject that triggered the execution of the `Oepisode()` method, providing information about the source of the event and its associated data.Event: `ActionEvent event`
Main properties:
- Source: The object that triggered the action (not shown) - Event type: The specific action that was triggered (e.g., "SELECT", "SAVE")
- Throws:
IOException
-