com.google.gwt.maps.jsio.client
Interface JSWrapper<T extends JSWrapper<T>>

Type Parameters:
T - A self-referential generic type
All Known Subinterfaces:
GeocoderImpl.Response, GeocoderImpl.ResponseStatus
All Known Implementing Classes:
EventImpl, JSListWrapper, JSStringListWrapper

public interface JSWrapper<T extends JSWrapper<T>>

Automatically generates Java/JavaScript interface linkages.

See Also:
JSIO reference

Method Summary
 Extractor<T> getExtractor()
          Used by JSList.
 com.google.gwt.core.client.JavaScriptObject getJavaScriptObject()
          Return the JavaScriptObject that is backing the wrapper.
 T setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject obj)
          Set the JavaScriptObject to be wrapped by the generated class.
 void setJSONData(java.lang.String data)
          Convenience setter for wrapping JSON data.
 

Method Detail

getExtractor

Extractor<T> getExtractor()
Used by JSList.


getJavaScriptObject

com.google.gwt.core.client.JavaScriptObject getJavaScriptObject()
Return the JavaScriptObject that is backing the wrapper.


setJavaScriptObject

T setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject obj)
                                           throws MultipleWrapperException
Set the JavaScriptObject to be wrapped by the generated class.

Returns:
the instance of the JSWrapper.
Throws:
MultipleWrapperException - if obj is already the target of another JSWrapper.

setJSONData

void setJSONData(java.lang.String data)
                 throws JSONWrapperException
Convenience setter for wrapping JSON data. The data will be parsed and wrapped by the instance of the JSWrapper

Throws:
JSONWrapperException