Class ArrayImage
- java.lang.Object
- 
- org.pepstock.charba.client.commons.Array
- 
- org.pepstock.charba.client.commons.ArrayImage
 
 
- 
- All Implemented Interfaces:
- IsJSType
 
 @JsType(isNative=true, name="Array", namespace="<global>") public final class ArrayImage extends ArrayArray object which maps the java script object.
 A simple wrapper around a homogeneous native array of object (ImageElement) values.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArrayImagefromOrEmpty(List<Img> items)Creates a java script array of images starting from list of images.static ArrayImagefromOrEmpty(Img... items)This method creates new array instance with a variable number ofImageElementarguments.static ArrayImagefromOrNull(List<Img> items)Creates a java script array of images starting from list of images.static ArrayImagefromOrNull(Img... items)This method creates new array instance with a variable number ofImageElementarguments.Imgget(int index)Gets the value at a given index.
 
- 
- 
- 
Method Detail- 
fromOrNull@JsOverlay public static ArrayImage fromOrNull(Img... items) This method creates new array instance with a variable number ofImageElementarguments.- Parameters:
- items- ImageElement items to create new array
- Returns:
- new array instance of images or nullif argument isnullor length to 0
 
 - 
fromOrEmpty@JsOverlay public static ArrayImage fromOrEmpty(Img... items) This method creates new array instance with a variable number ofImageElementarguments.- Parameters:
- items- ImageElement items to create new array
- Returns:
- new array instance of images or an empty array if argument is nullor length to 0
 
 - 
fromOrNull@JsOverlay public static ArrayImage fromOrNull(List<Img> items) Creates a java script array of images starting from list of images.- Parameters:
- items- list of images to load in the new java script array.
- Returns:
- new array instance of images or nullif argument isnullor empty
 
 - 
fromOrEmpty@JsOverlay public static ArrayImage fromOrEmpty(List<Img> items) Creates a java script array of images starting from list of images.- Parameters:
- items- list of images to load in the new java script array.
- Returns:
- new array instance of images or an empty array if argument is nullor empty
 
 - 
get@JsOverlay public Img get(int index) Gets the value at a given index. If no value exists at the given index, a type-conversion error will occur in Development Mode and unpredictable behavior may occur in Production Mode. If the numeric value returned is non-integral, it will cause a warning in Development Mode, and may affect the results of mathematical expressions.- Parameters:
- index- the index to be retrieved
- Returns:
- the value at the given index
 
 
- 
 
-