Echo
FreeClient
Class Hierarchy:
Direct Known Subclasses:
Echo.Arc.Client

FreeClient implementation. The init() and dispose() lifecycle methods must be called before the client is used, and when the client will no longer be used, respectively.

Constructor Summary
Public Echo.FreeClient()
Creates a new FreeClient.

Instance Field Summary
Internal _processUpdateRef
Method reference to _processUpdate()
Internal _doRenderRef
Method reference to _doRender()
Internal _resourcePaths
Resource package name to base URL mapping for resource paths.
Internal _renderPending
Flag indicating that a runnable has been enqueued to invoke _doRender().

Instance Method Summary
Public addResourcePath()
Associates a resource package name with a base URL.
Public dispose()
Disposes of the FreeClient.
Internal _doRender()
Performs rendering operations by invoking Echo.
Public getResourceUrl()
Public init()
Initializes the FreeClient.
Public loadStyleSheet()
Loads an XML style sheet into the client application from a URL.
Internal _processStyleSheet()
Event listener invoked when a StyleSheet fetched via loadStyleSheet() has been retrieved.
Internal _processUpdate()
Schedules doRender() to run in next execution context.

Methods inherited from class Echo.Client
getResourceUrl, verifyInput, dispose, configure, createInputRestriction, exec, fail, _forceIERedraw, _processApplicationFocus, _processKeyPress, processUpdates, registerRestrictionListener, removeInputRestriction, setWaitIndicator, _waitIndicatorActivate, _windowResizeListener

Constructor Detail
Echo.Client()
Creates a new FreeClient.
Parameters:
application (Echo.Application) - the application which the client will contain
domainElement (Element) - the HTML element in which the client will be rendered

Instance Method Detail
addResourcePath
Associates a resource package name with a base URL. Later inquiries to getResourceUrl() with the specified package name will return URLs with the specified baseUrl prepended to the resource name provided in the call to getResourceUrl().
Parameters:
packageName (String) - the resource package name
baseUrl (String) - the base URL to prepend to resources in the specified package

dispose
Disposes of the FreeClient. This method must be invoked when the client will no longer be used, in order to clean up resources.

_doRender
Performs rendering operations by invoking Echo.Render.processUpdates(). Invoked in separate execution context (scheduled).

getResourceUrl

init
Initializes the FreeClient. This method must be invoked before the client is initially used.

loadStyleSheet
Loads an XML style sheet into the client application from a URL.
Parameters:
url (String) - the URL from which the StyleSheet should be fetched.

_processStyleSheet
Event listener invoked when a StyleSheet fetched via loadStyleSheet() has been retrieved.
Parameters:
e - the HttpConnection response event

_processUpdate
Schedules doRender() to run in next execution context.