abstract static class Stage.StateChunker extends Object
Constructor and Description |
---|
Stage.StateChunker() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
appendJSON(StringBuilder b)
Appends to
b a persistent form of the state consisting of one or
more JSON name/value pairs, each terminated by a comma (,). |
(package private) static void |
appendJSON(StringBuilder b,
String name,
String value)
Appends to
b a single JSON name/value pair in which the value is
a string, but only if the value is non-null. |
(package private) abstract void |
exposeJS()
Exposes the initialization callback methods as
global JavaScript functions.
|
(package private) void |
init() |
(package private) abstract void |
restore(TheatrePageJS state)
Reads the state that was previously written and restores it to the stage.
|
Stage.StateChunker()
final void init()
abstract void exposeJS()
abstract void appendJSON(StringBuilder b)
b
a persistent form of the state consisting of one or
more JSON name/value pairs, each terminated by a comma (,).restore(TheatrePageJS)
static void appendJSON(StringBuilder b, String name, String value)
b
a single JSON name/value pair in which the value is
a string, but only if the value is non-null.abstract void restore(TheatrePageJS state)
appendJSON(StringBuilder)