Class Index | File Index

Classes


Namespace metawidget

Metawidget for pure JavaScript environments.
Defined in: metawidget.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
metawidget.buildNestedMetawidget(attributes, config)
Returns a nested version of this same Metawidget, using the given attributes.
<static>  
metawidget.buildWidgets(inspectionResult)
<static>  
metawidget.clearWidgets()
Clear all child elements from the Metawidget element.
<static>  
metawidget.getElement()
Returns the element this Metawidget is attached to.
<static>  
metawidget.getWidgetProcessor(testInstanceOf)
<static>  
metawidget.inspect(toInspect, type, names)
Useful for WidgetBuilders to perform nested inspections (eg.
<static>  
metawidget.Metawidget(element, config)
Pure JavaScript Metawidget.
<static>  
metawidget.reconfigure(config)
<static>  
metawidget.save()
Save the contents of the Metawidget using a SimpleBindingProcessor.
<static>  
metawidget.setLayout(layout)
Namespace Detail
metawidget

Author: Richard Kennard.
Method Detail
<static> metawidget.buildNestedMetawidget(attributes, config)
Returns a nested version of this same Metawidget, using the given attributes.

Subclasses should override this method to use their preferred widget creation methodology.

Parameters:
attributes
config

<static> metawidget.buildWidgets(inspectionResult)
Parameters:
inspectionResult

<static> metawidget.clearWidgets()
Clear all child elements from the Metawidget element.

This implementation uses plain JavaScript removeChild, which has known problems (on some browsers) leaking event handlers. This is not a problem for plain Metawidget, as it doesn't use event handlers. However clients that introduce custom widgetprocessors that use event handlers may wish to adopt a more robust technology for tracking/clearing event handlers (such as JQuery.empty)


<static> metawidget.getElement()
Returns the element this Metawidget is attached to.

<static> metawidget.getWidgetProcessor(testInstanceOf)
Parameters:
testInstanceOf

<static> metawidget.inspect(toInspect, type, names)
Useful for WidgetBuilders to perform nested inspections (eg. for Collections).
Parameters:
toInspect
type
names

<static> {metawidget.Metawidget} metawidget.Metawidget(element, config)
Pure JavaScript Metawidget.
Parameters:
element
the element to populate with UI components matching the properties of the domain object
config
optional configuration object (see metawidget.Pipeline.configure)
Returns:
{metawidget.Metawidget}

<static> metawidget.reconfigure(config)
Parameters:
config

<static> metawidget.save()
Save the contents of the Metawidget using a SimpleBindingProcessor.

This is a convenience method. To access other Metawidget APIs, clients can use the 'getWidgetProcessor' method

Returns:
true if the 'toInspect' was updated (i.e. is dirty)

<static> metawidget.setLayout(layout)
Parameters:
layout

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Dec 14 2015 20:12:11 GMT-0500 (EST)