@Tag(value="l2t-paper-slider")
@HtmlImport(value="bower_components/l2t-paper-slider/l2t-paper-slider.html")
public class Carousel
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize
| Modifier and Type | Class and Description |
|---|---|
static class |
Carousel.SlideChangeEvent |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
addChangeListener(com.vaadin.flow.component.ComponentEventListener<Carousel.SlideChangeEvent> listener) |
String |
getHeight() |
int |
getSlideDuration() |
Slide[] |
getSlides() |
int |
getStartPosition() |
boolean |
isAutoProgress() |
boolean |
isDisableSwipe() |
boolean |
isHideNavigation() |
void |
moveNext()
Move to the next slide
|
void |
movePos(int slide)
Move to a specific slide
|
void |
movePrev()
Move to the previous slide
|
void |
setAutoProgress(boolean autoProgress) |
void |
setDisableSwipe(boolean disableSwipe) |
void |
setHeight(String height) |
void |
setHideNavigation(boolean hideNavigation) |
void |
setSlideDuration(int slideDuration) |
void |
setSlides(Slide[] slides) |
void |
setStartPosition(int startPosition) |
Carousel |
withAutoProgress() |
Carousel |
withoutNavigation() |
Carousel |
withoutSwipe() |
Carousel |
withSlideDuration(int slideDuration) |
Carousel |
withStartPosition(int startPosition) |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Carousel(Slide... paperSlides)
public Slide[] getSlides()
public void setSlides(Slide[] slides)
public boolean isAutoProgress()
public void setAutoProgress(boolean autoProgress)
public int getSlideDuration()
public void setSlideDuration(int slideDuration)
public int getStartPosition()
public void setStartPosition(int startPosition)
public boolean isDisableSwipe()
public void setDisableSwipe(boolean disableSwipe)
public boolean isHideNavigation()
public void setHideNavigation(boolean hideNavigation)
public Carousel withAutoProgress()
public Carousel withoutSwipe()
public Carousel withoutNavigation()
public Carousel withSlideDuration(int slideDuration)
public Carousel withStartPosition(int startPosition)
public void setHeight(String height)
setHeight in interface com.vaadin.flow.component.HasSizepublic String getHeight()
getHeight in interface com.vaadin.flow.component.HasSizepublic void moveNext()
public void movePrev()
public void movePos(int slide)
slide - public com.vaadin.flow.shared.Registration addChangeListener(com.vaadin.flow.component.ComponentEventListener<Carousel.SlideChangeEvent> listener)
Copyright © 2018–2019 Flowing Code. All rights reserved.