A B C E F G H I J K L N O P R S T V W 

A

acquireLock() - Method in class org.apidesign.html.json.spi.Proto
Before doing modification of the model properties, the generated code enters write lock by calling this method.
applyBindings() - Method in class org.apidesign.html.json.spi.Proto
Initializes the associated model in the current context.
applyBindings(Data) - Method in interface org.apidesign.html.json.spi.Technology
Applies given data to current context (usually an HTML page).

B

bind(PropertyBinding, Object, Data) - Method in interface org.apidesign.html.json.spi.Technology
Binds a property between the model and the data as used by the technology.
boolValue(Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Converts the value to boolean.

C

call(Object, Object) - Method in class org.apidesign.html.json.spi.FunctionBinding
Calls the function provided data associated with current element, as well as information about the event that triggered the event.
call(Model, int, Object, Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Invokes a Proto.Type.registerFunction(java.lang.String, int) registered function on given object.
canFailWebSocketTest() - Method in class org.apidesign.html.json.tck.KnockoutTCK
Some implementations cannot fully support web sockets and fail.
charValue(Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Converts the value to character.
cloneList(Collection<T>, BrwsrCtx, Collection<T>) - Method in class org.apidesign.html.json.spi.Proto
Copies content of one collection to another, re-assigning all its elements from their current context to the new ctx.
cloneTo(Model, BrwsrCtx) - Method in class org.apidesign.html.json.spi.Proto.Type
Re-binds the model object to new browser context.
close(WebSocket) - Method in interface org.apidesign.html.json.spi.WSTransfer
A request to close the socket.
composeURL(String) - Method in class org.apidesign.html.json.spi.JSONCall
 
copyJSON(BrwsrCtx, Object[], Class<T>, T[]) - Method in class org.apidesign.html.json.spi.Proto.Type
Converts and array of raw JSON objects into an array of typed Java classes.
createContext() - Method in class org.apidesign.html.json.tck.KnockoutTCK
Implement to create new context for the test.
createJSON(Map<String, Object>) - Method in class org.apidesign.html.json.tck.KnockoutTCK
Create a JSON object as seen by the technology
createList(String, int, String...) - Method in class org.apidesign.html.json.spi.Proto
Creates new JSON like observable list.
createProto(Object, BrwsrCtx) - Method in class org.apidesign.html.json.spi.Proto.Type
Creates new proto-object for given Model class bound to provided context.

E

executeScript(String, Object[]) - Method in class org.apidesign.html.json.tck.KnockoutTCK
Executes script in the context of current window
expose(FunctionBinding, Object, Data) - Method in interface org.apidesign.html.json.spi.Technology
 
extract(Object, String[], Object[]) - Method in class org.apidesign.html.json.spi.Proto
Takes an object representing JSON result and extract some of its properties.
extract(Object, String[], Object[]) - Method in interface org.apidesign.html.json.spi.Transfer
Called to inspect properties of an object (usually a JSON or JavaScript wrapper).
extractValue(Class<T>, Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Extracts value of specific type from given object.

F

FunctionBinding - Class in org.apidesign.html.json.spi
Describes a function provided by the Model and annotated by Function annotation.

G

getContext() - Method in class org.apidesign.html.json.spi.Proto
Browser context this proto object and its associated model are operating-in.
getFunctionName() - Method in class org.apidesign.html.json.spi.FunctionBinding
Returns name of the function.
getMessage() - Method in class org.apidesign.html.json.spi.JSONCall
 
getMethod() - Method in class org.apidesign.html.json.spi.JSONCall
 
getPropertyName() - Method in class org.apidesign.html.json.spi.PropertyBinding
Name of the property this binding represents.
getValue() - Method in class org.apidesign.html.json.spi.PropertyBinding
Obtains current value of the property this binding represents.
getValue(Model, int) - Method in class org.apidesign.html.json.spi.Proto.Type
Obtains and returns value of a registered property.

H

hashPlus(Object, int) - Method in class org.apidesign.html.json.spi.Proto.Type
Cumulative hash function.

I

initTo(Collection<?>, Object) - Method in class org.apidesign.html.json.spi.Proto
Initializes the provided collection with a content of the array.
isDoOutput() - Method in class org.apidesign.html.json.spi.JSONCall
Do we have some data to send?
isJSONP() - Method in class org.apidesign.html.json.spi.JSONCall
 
isReadOnly() - Method in class org.apidesign.html.json.spi.PropertyBinding
Is this property read only?
isSame(int, int) - Method in class org.apidesign.html.json.spi.Proto.Type
Compares two objects that can be converted to integers.
isSame(double, double) - Method in class org.apidesign.html.json.spi.Proto.Type
Compares two objects that can be converted to (floating point) numbers.
isSame(Object, Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Compares two objects for being the same - e.g. either == or equals.

J

JavaScriptTCK - Class in org.apidesign.html.json.tck
Subclass this class, implements is abstract methods (if any).
JavaScriptTCK() - Constructor for class org.apidesign.html.json.tck.JavaScriptTCK
 
JSONCall - Class in org.apidesign.html.json.spi
Description of a JSON call request that is supposed to be processed by Transfer.loadJSON(org.apidesign.html.json.spi.JSONCall) implementors.

K

KnockoutTCK - Class in org.apidesign.html.json.tck
Entry point for providers of different HTML binding technologies (like Knockout.js in JavaFX's WebView).
KnockoutTCK() - Constructor for class org.apidesign.html.json.tck.KnockoutTCK
 
KOTest - Annotation Type in org.apidesign.html.json.tck
Annotates method that is part of test compatibility kit and should be executed in appropriate environment.

L

loadJSON(int, String, String, String, Object) - Method in class org.apidesign.html.json.spi.Proto
Initializes asynchronous JSON connection to specified URL.
loadJSON(JSONCall) - Method in interface org.apidesign.html.json.spi.Transfer
Starts the JSON or JSONP query.

N

notifyError(Throwable) - Method in class org.apidesign.html.json.spi.JSONCall
 
notifySuccess(Object) - Method in class org.apidesign.html.json.spi.JSONCall
 
numberValue(Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Converts the value to number.

O

onChange(Model, int) - Method in class org.apidesign.html.json.spi.Proto.Type
Called when a registered property changes its value.
onMessage(Model, int, int, Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Called to report results of asynchronous over-the-wire communication.
open(String, JSONCall) - Method in interface org.apidesign.html.json.spi.WSTransfer
Initializes a web socket.
org.apidesign.html.json.spi - package org.apidesign.html.json.spi
Service Provider Interfaces for those who wish to integrate own technology with the HTML for Java API.
org.apidesign.html.json.tck - package org.apidesign.html.json.tck
Entry point to the test compatibility kit.

P

prepareURL(String, String, String[]) - Method in class org.apidesign.html.json.tck.KnockoutTCK
Creates a URL which later returns content with given mimeType and content.
PropertyBinding - Class in org.apidesign.html.json.spi
Describes a property when one is asked to bind it
Proto - Class in org.apidesign.html.json.spi
Object associated with one instance of a model generated by the Model annotation.
Proto.Type<Model> - Class in org.apidesign.html.json.spi
Functionality used by the code generated by annotation processor for the Model annotation.
Proto.Type(Class<Model>, Class<?>, int, int) - Constructor for class org.apidesign.html.json.spi.Proto.Type
Constructor for subclasses generated by the annotation processor associated with Model annotation.
protoFor(Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Finds out if there is an associated proto-object for given object.

R

read(Class<T>, Object) - Method in class org.apidesign.html.json.spi.Proto
Converts raw JSON data into a Java Model class.
read(BrwsrCtx, Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Reads raw JSON data and converts them to our model class.
registerFunction(String, int) - Method in class org.apidesign.html.json.spi.Proto.Type
Registers function of given name at given index.
registerProperty(String, int, boolean) - Method in class org.apidesign.html.json.spi.Proto.Type
Registers property for the type.
releaseLock() - Method in class org.apidesign.html.json.spi.Proto
When modifications are over, the model is switched into unlocked state by calling this method.
runInBrowser(Runnable) - Method in class org.apidesign.html.json.spi.Proto
Invokes the provided runnable in the context of the browser.
runSafe(Runnable) - Method in interface org.apidesign.html.json.spi.Technology
Run given runnable in a safe mode.

S

send(WebSocket, JSONCall) - Method in interface org.apidesign.html.json.spi.WSTransfer
Sends data to the server.
setValue(Object) - Method in class org.apidesign.html.json.spi.PropertyBinding
Changes value of the property.
setValue(Model, int, Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Sets value of a registered property to new value.
stringValue(Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Converts the value to string.

T

Technology<Data> - Interface in org.apidesign.html.json.spi
An implementation of a binding between model classes (see Model) and particular technology like knockout.js in a browser window, etc.
Technology.BatchInit<D> - Interface in org.apidesign.html.json.spi
For certain rendering technologies it may be more efficient to register property and function bindings for one instance of the model at once, rather then doing it incrementally via Technology.expose(org.apidesign.html.json.spi.FunctionBinding, java.lang.Object, java.lang.Object) and Technology.bind(org.apidesign.html.json.spi.PropertyBinding, java.lang.Object, java.lang.Object).
testClasses() - Static method in class org.apidesign.html.json.tck.JavaScriptTCK
Gives you list of classes included in the TCK.
testClasses() - Static method in class org.apidesign.html.json.tck.KnockoutTCK
Gives you list of classes included in the TCK.
toJSON(Object) - Method in class org.apidesign.html.json.spi.Proto.Type
Converts an object to its JSON value.
toJSON(InputStream) - Method in interface org.apidesign.html.json.spi.Transfer
Reads content of a stream and creates its JSON representation.
toModel(Class<T>, Object) - Method in class org.apidesign.html.json.spi.Proto
Converts raw JSON data into a Model class representation.
toModel(Class<M>, Object) - Method in interface org.apidesign.html.json.spi.Technology
Converts an element potentially representing a model into the model.
toNumber(Object, String) - Method in class org.apidesign.html.json.spi.Proto
Converts raw data (one of its properties) to a number representation.
toString(Object, String) - Method in class org.apidesign.html.json.spi.Proto
Converts raw data (one of its properties) to string representation.
Transfer - Interface in org.apidesign.html.json.spi
A service provider interface responsible for conversion of JSON objects to Java ones and vice-versa.

V

valueHasMutated(String) - Method in class org.apidesign.html.json.spi.Proto
Whenever model changes a property.
valueHasMutated(Data, String) - Method in interface org.apidesign.html.json.spi.Technology
Model for given data has changed its value.
verifyUnlocked() - Method in class org.apidesign.html.json.spi.Proto
Verifies the model is not locked otherwise throws an exception.

W

wrapArray(Object[]) - Method in interface org.apidesign.html.json.spi.Technology
Some technologies may require wrapping a Java array into a special object.
wrapModel(Object, PropertyBinding[], FunctionBinding[]) - Method in interface org.apidesign.html.json.spi.Technology.BatchInit
Wrap the given model into redering technology appropriate object D and expose given properties and functions on it.
wrapModel(Object) - Method in interface org.apidesign.html.json.spi.Technology
Creates an object to wrap the provided model object.
writeData(OutputStream) - Method in class org.apidesign.html.json.spi.JSONCall
 
wsOpen(int, String, Object) - Method in class org.apidesign.html.json.spi.Proto
Opens new WebSocket connection to the specified URL.
wsSend(Object, String, Object) - Method in class org.apidesign.html.json.spi.Proto
Sends a message to existing socket.
WSTransfer<WebSocket> - Interface in org.apidesign.html.json.spi
Interface for providers of WebSocket protocol.
A B C E F G H I J K L N O P R S T V W 

Copyright © 2014 NetBeans. All Rights Reserved.