| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public JSObject | |
| public JSObject | |
| public int | |
| public void | insertAt(int
The index at which to insert the item. idx, JavascriptObject The item to be inserted. elem)Inserts the supplied element at the specified index in the array. |
| public JSObject | |
| public int | Returns: The length of the array after the addition.The Javascript object to be added to the array. obj)Adds the supplied element onto the end of the array, then returns the length of the array. |
| public void | removeAt(int
The index of the object to be removed. idx)Removes and discards the item at the specified index. |
| public void | setAt(int
The index at which the item should be set. idx, JavascriptObject The object to be set at the supplied index. obj)Sets the supplied object at the supplied index. |
| MVCArray | back to summary |
|---|---|
| public MVCArray() | |
| MVCArray | back to summary |
|---|---|
| public MVCArray(Object[] ary) | |
| MVCArray | back to summary |
|---|---|
| public MVCArray(JSObject obj)
References Deprecated
See corresponding docs for further information. | |
| clear | back to summary |
|---|---|
| public void clear() Removes all elements from the array. | |
| forEach | back to summary |
|---|---|
| public void forEach(String func) Iterates over the elements within the array, calling the supplied function for each member. The parameters to the callback function are: func(element, index) | |
| getArray | back to summary |
|---|---|
| public JSObject getArray()
References Deprecated
See corresponding docs for further information. Returns a JSObject representing the underlying array. Not entirely sure how useful this would be for people. | |
| getAt | back to summary |
|---|---|
| public JSObject getAt(int idx)
References Deprecated
See corresponding docs for further information. Returns the item at the specified index in the array.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Gets the length of the array. | |
| insertAt | back to summary |
|---|---|
| public void insertAt(int idx, JavascriptObject elem) Inserts the supplied element at the specified index in the array.
| |
| pop | back to summary |
|---|---|
| public JSObject pop()
References Deprecated
See corresponding docs for further information. Removes and returns the last element of the array | |
| push | back to summary |
|---|---|
| public int push(JavascriptObject obj) Adds the supplied element onto the end of the array, then returns the length of the array.
| |
| removeAt | back to summary |
|---|---|
| public void removeAt(int idx) Removes and discards the item at the specified index.
| |
| setAt | back to summary |
|---|---|
| public void setAt(int idx, JavascriptObject obj) Sets the supplied object at the supplied index.
| |