Package dev.zemco.codegame.presentation
Interface IViewProvider
- All Known Implementing Classes:
FxmlViewProvider
public interface IViewProvider
Manages the JavaFX views used by application for presentation.
These views are typically displayed as roots/children of
scenes.- Author:
- Erik Zemčík
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.ParentgetViewById(String viewId) Provides the root node of the requested view ready to be presented.
-
Method Details
-
getViewById
Provides the root node of the requested view ready to be presented. The view is identified by theviewIdparameter.- Parameters:
viewId- identification of the view- Returns:
- root node of the view
- Throws:
IllegalArgumentException- ifviewIdisnullor emptyUnknownViewException- if the view is not known by the provider
-