Package | Description |
---|---|
net.java.html |
Representation of the
browser context . |
net.java.html.json | |
org.netbeans.html.context.spi |
Service provider classes to build
BrwsrCtx
instances. |
org.netbeans.html.json.spi |
Service Provider Interfaces for those who wish to integrate own
technology with the HTML for Java API.
|
org.netbeans.html.json.tck |
Entry point to the
test compatibility kit.
|
Modifier and Type | Field and Description |
---|---|
static BrwsrCtx |
BrwsrCtx.EMPTY
Dummy context without binding to any real browser or technology.
|
Modifier and Type | Method and Description |
---|---|
static BrwsrCtx |
BrwsrCtx.findDefault(Class<?> requestor)
Seeks for the default context that is associated with the requesting
class.
|
Modifier and Type | Method and Description |
---|---|
static <Model> Model |
Models.bind(Model model,
BrwsrCtx context)
Binds given model to another context.
|
static <M> M |
Models.fromRaw(BrwsrCtx ctx,
Class<M> model,
Object jsonObject)
Converts an existing, raw, JSON object into a
model class . |
static <M> M |
Models.parse(BrwsrCtx c,
Class<M> model,
InputStream is)
Generic method to parse content of a model class from a stream.
|
static <M> void |
Models.parse(BrwsrCtx c,
Class<M> model,
InputStream is,
Collection<? super M> collectTo)
Generic method to parse stream, that can possibly contain array
of specified objects.
|
Modifier and Type | Method and Description |
---|---|
BrwsrCtx |
Contexts.Builder.build()
Generates context based on values previously inserted into
this builder.
|
Modifier and Type | Method and Description |
---|---|
static <Tech> Tech |
Contexts.find(BrwsrCtx context,
Class<Tech> technology)
Seeks for the specified technology in the provided context.
|
Modifier and Type | Method and Description |
---|---|
BrwsrCtx |
Proto.getContext()
Browser context this proto object and its associated model
are operating-in.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
Proto.cloneList(Collection<T> to,
BrwsrCtx ctx,
Collection<T> from)
Copies content of one collection to another, re-assigning all its
elements from their current context to the new
ctx . |
protected abstract Model |
Proto.Type.cloneTo(Model model,
BrwsrCtx ctx)
Re-binds the model object to new browser context.
|
<T> void |
Proto.Type.copyJSON(BrwsrCtx context,
Object[] src,
Class<T> destType,
T[] dest)
Converts and array of raw JSON objects into an array of typed
Java
Model classes. |
Proto |
Proto.Type.createProto(Object obj,
BrwsrCtx context)
Creates new proto-object for given
Model class bound to
provided context. |
protected abstract Model |
Proto.Type.read(BrwsrCtx c,
Object json)
Reads raw JSON data and converts them to our model class.
|
Modifier and Type | Method and Description |
---|---|
abstract BrwsrCtx |
KnockoutTCK.createContext()
Implement to create new context for the test.
|
Copyright © 2018 NetBeans. All rights reserved.