Modifier and Type | Method and Description |
---|---|
static ArrayImage |
fromOrEmpty(Img... items)
This method creates new array instance with a variable number of
ImageElement arguments. |
static ArrayImage |
fromOrEmpty(List<Img> items)
Creates a java script array of images starting from list of images.
|
static ArrayImage |
fromOrNull(Img... items)
This method creates new array instance with a variable number of
ImageElement arguments. |
static ArrayImage |
fromOrNull(List<Img> items)
Creates a java script array of images starting from list of images.
|
Img |
get(int index)
Gets the value at a given index.
|
@JsOverlay public static ArrayImage fromOrNull(Img... items)
ImageElement
arguments.items
- ImageElement items to create new arraynull
if argument is null
or length to 0@JsOverlay public static ArrayImage fromOrEmpty(Img... items)
ImageElement
arguments.items
- ImageElement items to create new arraynull
or length to 0@JsOverlay public static ArrayImage fromOrNull(List<Img> items)
items
- list of images to load in the new java script array.null
if argument is null
or empty@JsOverlay public static ArrayImage fromOrEmpty(List<Img> items)
items
- list of images to load in the new java script array.null
or empty@JsOverlay public Img get(int index)
index
- the index to be retrieved