|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.JavaScriptObject com.google.gwt.core.client.JsArrayBoolean
public class JsArrayBoolean
A simple wrapper around a homogeneous native array of boolean values.
This class may not be directly instantiated, and can only be returned from a
native method. For example,
native JsArrayBoolean getNativeArray() /*-{
return [true, false, true];
}-* /;
Constructor Summary | |
---|---|
protected |
JsArrayBoolean()
|
Method Summary | |
---|---|
boolean |
get(int index)
Gets the value at a given index. |
java.lang.String |
join()
Convert each element of the array to a String and join them with a comma separator. |
java.lang.String |
join(java.lang.String separator)
Convert each element of the array to a String and join them with a comma separator. |
int |
length()
Gets the length of the array. |
void |
push(boolean value)
Pushes the given boolean onto the end of the array. |
void |
set(int index,
boolean value)
Sets the value value at a given index. |
void |
setLength(int newLength)
Reset the length of the array. |
boolean |
shift()
Shifts the first value off the array. |
void |
unshift(boolean value)
Shifts a value onto the beginning of the array. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected JsArrayBoolean()
Method Detail |
---|
public final boolean get(int index)
index
- the index to be retrieved
public final java.lang.String join()
public final java.lang.String join(java.lang.String separator)
public final int length()
public final void push(boolean value)
public final void set(int index, boolean value)
index
- the index to be setvalue
- the value to be storedpublic final void setLength(int newLength)
newLength
- the new length of the arraypublic final boolean shift()
public final void unshift(boolean value)
value
- the value to the stored
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |