Package space.maxus.flare.ui.compose
Interface Slideshow
- All Superinterfaces:
Composable,ComposableLike,Configurable<Slideshow>,Disable
A slideshow is a periodically changing component.
See more in Flare docs: Slideshow
See more in Flare docs: Slideshow
-
Nested Class Summary
Nested classes/interfaces inherited from interface space.maxus.flare.ui.compose.Configurable
Configurable.Configurator<S> -
Method Summary
Modifier and TypeMethodDescriptionintReturns the period between the slides switchingReturns all possible slides on this slideshowReturns the reactive state of the currently selected item providerstatic @NotNull Slideshowof(List<ItemProvider> items, int period) Constructs a new slideshow out of a list of itemsstatic @NotNull Slideshowof(List<ItemProvider> items, int period, boolean disabled) Constructs a new slideshow out of a list of itemsMethods inherited from interface space.maxus.flare.ui.Composable
asComposable, bind, click, context, contextOrNull, destroy, drag, injectRoot, inside, into, leftClick, markDirty, renderAt, restore, rightClick, root, shiftFrom, shiftInto, viewerMethods inherited from interface space.maxus.flare.ui.compose.Configurable
configure, configureTypedMethods inherited from interface space.maxus.flare.ui.compose.Disable
disabledState, isDisabled, isNotDisabled, setDisabled
-
Method Details
-
of
Constructs a new slideshow out of a list of items- Parameters:
items- Items to be usedperiod- Period between switching in ticks- Returns:
- A new slideshow
-
of
Constructs a new slideshow out of a list of items- Parameters:
items- Items to be usedperiod- Period between switching in ticksdisabled- Whether the slideshow should be disabled- Returns:
- A new slideshow
-
getSlides
List<ItemProvider> getSlides()Returns all possible slides on this slideshow- Returns:
- All possible slides on this slideshow
-
itemState
ReactiveState<ItemProvider> itemState()Returns the reactive state of the currently selected item provider- Returns:
- The reactive state of the currently selected item provider
-
getPeriod
int getPeriod()Returns the period between the slides switching- Returns:
- The period between the slides switching
-