Class Carousel
java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.carousel.Carousel
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasSize,HasTheme,Serializable
@Tag("fc-l2t-paper-slider")
@NpmPackage(value="@polymer/iron-a11y-keys-behavior",
version="3.0.1")
@JsModule("./paper-slider/fc-l2t-paper-slider.js")
public class Carousel
extends Component
implements HasSize, HasTheme
A component that displays a slideshow of slides. By default the slides will be displayed with
navigation buttons, autoplay and swipe enabled. You can configure the slideshow by adding custom
parameters, such as duration of transition, start position, maximum height and disabling swipe.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSlide[]intbooleanbooleanbooleanvoidmoveNext()Move to the next slidevoidmovePos(int slide) Move to a specific slidevoidmovePrev()Move to the previous slidevoidsetAutoProgress(boolean autoProgress) voidsetDisableSwipe(boolean disableSwipe) voidvoidsetHideNavigation(boolean hideNavigation) voidsetSlideDuration(int slideDuration) voidvoidsetStartPosition(int startPosition) withSlideDuration(int slideDuration) withStartPosition(int startPosition) Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
Constructor Details
-
Carousel
-
-
Method Details
-
getSlides
-
setSlides
-
isAutoProgress
public boolean isAutoProgress() -
setAutoProgress
public void setAutoProgress(boolean autoProgress) -
getSlideDuration
public int getSlideDuration() -
setSlideDuration
public void setSlideDuration(int slideDuration) -
getStartPosition
public int getStartPosition() -
setStartPosition
public void setStartPosition(int startPosition) -
isDisableSwipe
public boolean isDisableSwipe() -
setDisableSwipe
public void setDisableSwipe(boolean disableSwipe) -
withAutoProgress
-
withoutSwipe
-
withSlideDuration
-
withStartPosition
-
setHeight
-
getHeight
-
moveNext
public void moveNext()Move to the next slide -
movePrev
public void movePrev()Move to the previous slide -
movePos
public void movePos(int slide) Move to a specific slide- Parameters:
slide-
-
addChangeListener
-