GWidgetsTopLevel-class: A toplevel object for a gWidgetsWWW2 app stores page-specific...

Description Details Methods

Description

The toplevel object for gWidgetsWWW2 apps stores page specific information. As there can potentially be several gwindow instances on a page (using renderTo), however all share the same toplevel instance. This instance holds a reference to the evaluation environment, the request that generates the page, the objects populating the page, and a queue for holding JavaScript commands (produced by method calls, say).

Details

The sharing of this toplevel object amongs each component is the reason why the constructors require a specification of either a container or parent argument.

Methods

add_object(obj, id)

Add object to objects list

call_handler(id, signal, params, e_cookies)

lookup widget by id, notify any observer of this signal

call_post_proxy(id, param)

Run proxy, return JSON encoded object

call_proxy(id, param)

Run proxy, return JSON encoded object

call_transport(id, param)

Run transport

call_upload(id, param, post_data)

process a file upload, sets value via svalue if file exists

do_layout()

Update layout from toplevel

get_object_by_id(id)

Lookup object by its id

js_queue_flush()

Flush JavaScript queue

js_queue_push(x)

push command (string) to queue for JavaScript Commands


gWidgetsWWW2 documentation built on May 2, 2019, 6:10 p.m.