Package | Description |
---|---|
org.pepstock.charba.client.commons |
Core classes to manage the inter-operations with java script code.
|
Modifier and Type | Method and Description |
---|---|
static ArrayString |
ArrayString.from(IsColor... items)
Creates a java script array of strings starting from array of colors.
|
static ArrayString |
ArrayString.from(Key... items)
Creates a java script array of strings starting from array of keys.
|
static ArrayString |
ArrayString.from(List<String> items)
Creates a java script array of strings starting from list of strings.
|
static ArrayString |
ArrayString.from(String... items)
This method creates new array instance with a variable number of
string arguments. |
static ArrayString |
ArrayString.fromOrNull(IsColor... items)
Creates a java script array of strings starting from array of colors.
|
static ArrayString |
ArrayString.fromOrNull(Key... items)
Creates a java script array of strings starting from array of keys.
|
static ArrayString |
ArrayString.fromOrNull(List<String> items)
Creates a java script array of strings starting from list of strings.
|
static ArrayString |
ArrayString.fromOrNull(String... items)
This method creates new array instance with a variable number of
string arguments. |
protected ArrayString |
NativeObjectContainer.getValueOrArray(Key key,
Key defaultValue)
Returns a value (array) into embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a key. |
protected ArrayString |
NativeObjectContainer.getValueOrArray(Key key,
String defaultValue)
Returns a value (array) into embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a string. |
Modifier and Type | Method and Description |
---|---|
static ArrayStringList |
ArrayListHelper.list(ArrayString values)
Creates a array list of strings by a java script array of strings.
|
static <E extends Key> |
ArrayListHelper.list(Class<E> clazz,
ArrayString array)
Creates a array list of enumeration values by an java script array of strings.
|
static List<String> |
ArrayListHelper.unmodifiableList(ArrayString values)
Creates a array list of strings by a java script array of strings.
|
static <E extends Key> |
ArrayListHelper.unmodifiableList(Class<E> clazz,
ArrayString array)
Creates an unmodifiable array list of enumeration values by an java script array of strings.
|