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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAll the possible components that could theoretically be toggled. -
Method Summary
Modifier and TypeMethodDescription@NotNull Toggler.ToggleableComponentGet the current visible component.voidtoggle(@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.
-