public final class FXContext extends Object implements Technology<netscape.javascript.JSObject>, Transfer, ContextProvider
Context API
to access the functionality.
Registers ContextProvider, so ServiceLoader can find it.
| Constructor and Description |
|---|
FXContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyBindings(netscape.javascript.JSObject data) |
void |
bind(PropertyBinding b,
Object model,
netscape.javascript.JSObject data) |
void |
expose(FunctionBinding fb,
Object model,
netscape.javascript.JSObject d) |
void |
extract(Object obj,
String[] props,
Object[] values) |
Context |
findContext(Class<?> requestor) |
void |
loadJSON(JSONCall call) |
<M> M |
toModel(Class<M> modelClass,
Object data) |
void |
valueHasMutated(netscape.javascript.JSObject data,
String propertyName) |
Object |
wrapArray(Object[] arr) |
netscape.javascript.JSObject |
wrapModel(Object model) |
public Context findContext(Class<?> requestor)
findContext in interface ContextProviderpublic netscape.javascript.JSObject wrapModel(Object model)
wrapModel in interface Technology<netscape.javascript.JSObject>public void bind(PropertyBinding b, Object model, netscape.javascript.JSObject data)
bind in interface Technology<netscape.javascript.JSObject>public void valueHasMutated(netscape.javascript.JSObject data,
String propertyName)
valueHasMutated in interface Technology<netscape.javascript.JSObject>public void expose(FunctionBinding fb, Object model, netscape.javascript.JSObject d)
expose in interface Technology<netscape.javascript.JSObject>public void applyBindings(netscape.javascript.JSObject data)
applyBindings in interface Technology<netscape.javascript.JSObject>public Object wrapArray(Object[] arr)
wrapArray in interface Technology<netscape.javascript.JSObject>public <M> M toModel(Class<M> modelClass, Object data)
toModel in interface Technology<netscape.javascript.JSObject>Copyright © 2013 API Design. All Rights Reserved.