The component provides the means needed to go through a set of elements using next/previous buttons or automatically switch between them with configurable duration.
See also :
The component provide the means to create an image slide with different types of image elements or components
See also :
public void Carousel()
public static Carousel create()
new instance
public Carousel next()
Same Carousel instance
public Carousel previous()
Same Carousel instance
public Carousel gotToSlide(Slide slide, SlideDirection direction)
Same Carousel instance
public Carousel gotToSlide(int index, SlideDirection direction)
Same Carousel instance
public Carousel appendChild(Slide slide)
public Carousel startAutoSlide(int slideDuration)
slideDuration
slideDuration
The duration to wait before moving the next slide
same instance
public Carousel stopAutoSlide()
same instance
public OListElement getIndicatorsElement()
public DivElement getSlidesElement()
public Carousel withSlidesElement(ChildHandler<Carousel, DivElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public Carousel withIndicatorsElement(ChildHandler<Carousel, OListElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public Carousel withPreviousElement(ChildHandler<Carousel, AnchorElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public Carousel withNextElement(ChildHandler<Carousel, AnchorElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public Carousel withPreviousIcon(ChildHandler<Carousel, MdiIcon> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public Carousel withNextIcon(ChildHandler<Carousel, MdiIcon> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public List<Slide> getSlides()
public Slide getActiveSlide()
public void Slide(String imageSrc)
imageSrc
The string image source that will be used as the value for the img tag src attribute.
public void Slide(HTMLImageElement image)
image
The HTMLImageElement element to be used for the slide
public void Slide(HTMLPictureElement pictureElement)
pictureElement
The HTMLPictureElement element to be used for the slide.
public void Slide(ImageElement image)
image
The ImageElement element to be used for the slide.
public void Slide(PictureElement pictureElement)
pictureElement
The PictureElement element to be used for the slide.
public static Slide create(String imageSrc)
imageSrc
The string image source that will be used as the value for the img tag src attribute.
new instance
public static Slide create(HTMLImageElement image)
image
The HTMLImageElement element to be used for the slide
new instance
public static Slide create(HTMLPictureElement pictureElement)
pictureElement
The HTMLPictureElement element to be used for the slide.
new instance
public static Slide create(ImageElement image)
image
The ImageElement element to be used for the slide.
new instance
public static Slide create(PictureElement pictureElement)
pictureElement
The PictureElement element to be used for the slide.
new instance
public static Slide create(Element element)
element
The HTMLElement element to be used for the slide.
new instance
public static Slide create(IsElement<? extends Element> element)
element
The IsElement element to be used for the slide.
new instance
public Slide activate()
same slide instance
public void setActive(boolean active)
active
a boolean, true to make the slide active, false make the slide inactive.
public boolean isActive()
a boolean, true if the slide is active, false if the slide is not active.
public DominoElement<HTMLLIElement> getIndicatorElement()
This slide indicator element attached to the carousel slides indicators.
public Slide setLabel(String text)
text
the slide title text.
same slide instance
public Slide setDescription(String text)
text
slide description text
same slide instance
public HeadingElement getSlideLabelElement()
public Slide withSlideLabelElement(ChildHandler<Slide, HeadingElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public ParagraphElement getSlideDescriptionElement()
public Slide withSlideDescriptionElement(ChildHandler<Slide, ParagraphElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public Slide withSlideCaptionElement(ChildHandler<Slide, DivElement> handler)
handler
The ChildHandler applying the customizations
same carousel instance
public DivElement getCaptionElement()
public DominoElement<Element> getWrappedElement()
The element wrapped by this slide.