|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<T>
public class MVCObject<T extends JavaScriptObject>
Base class implementing KVO.
See MVCObject API Doc
Constructor Summary | |
---|---|
protected |
MVCObject()
Base class implementing KVO. |
Method Summary | ||
---|---|---|
void |
bindTo(String key,
MVCObject<T> target)
Binds a View to a Model. |
|
void |
bindTo(String key,
MVCObject<T> target,
String targetKey)
Binds a View to a Model. |
|
void |
bindTo(String key,
MVCObject<T> target,
String targetKey,
boolean noNotify)
Binds a View to a Model. |
|
void |
changed(String key)
Generic handler for state changes. |
|
static
|
createInstanceOfMVCObject()
(Main purpose is for internal use only) create instance of MVCObject (inherited class) |
|
T |
get(String key)
Gets a value. |
|
void |
notify(String key)
Notify all observers of a change on this property. |
|
void |
set(String key,
T value)
Sets a value. |
|
void |
setValues(HashMap<String,String> values)
Sets a collection of key-value pairs. |
|
void |
unbind(String key)
Removes a binding. |
|
void |
unbindAll()
Removes all bindings. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, 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 MVCObject()
Method Detail |
---|
public static final <T extends JavaScriptObject> MVCObject<T> createInstanceOfMVCObject()
public final void bindTo(String key, MVCObject<T> target)
key
- target
- public final void bindTo(String key, MVCObject<T> target, String targetKey)
key
- target
- targetKey
- public final void bindTo(String key, MVCObject<T> target, String targetKey, boolean noNotify)
key
- target
- targetKey
- noNotify
- public final void changed(String key)
key
- public final T get(String key)
key
- public final void notify(String key)
key
- public final void set(String key, T value)
key
- value
- public final void setValues(HashMap<String,String> values)
values
- public final void unbind(String key)
key
- public final void unbindAll()
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |