Package com.mg105.interface_adapters
Interface Toggler
- All Known Implementing Classes:
SceneController
public interface Toggler
An interface for an object that can toggle the visibility of various user interface components.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
All the possible components that could theoretically be toggled. -
Method Summary
Modifier and TypeMethodDescription@NotNull Toggler.ToggleableComponent
Get the current visible component.void
toggle
(@NotNull Toggler.ToggleableComponent component) Toggle the component.
-
Method Details
-
toggle
Toggle the component. i.e. switch it between invisible and visible.- Parameters:
component
- the component to toggle.
-
getCurrentComponent
Get the current visible component.- Returns:
- the current visible component.
-