Class
caplin.presenter.component

PresenterComponentFactory

Allows instances of caplin.presenter.component.PresenterComponent to be constructed via XML snippets.

Constructor Summary

Attributes Name and Description
caplin.presenter.component.PresenterComponentFactory()

Method Summary

Attributes Name and Description
<static> caplin.presenter.component.PresenterComponent getViewerComponentFromXml(String sXml)

Allows instances of caplin.presenter.component.PresenterComponent to be constructed using XML.

Constructor Detail

caplin.presenter.component.PresenterComponentFactory()

Method Detail

<static> caplin.presenter.component.PresenterComponent getViewerComponentFromXml(String sXml)

Allows instances of caplin.presenter.component.PresenterComponent to be constructed using XML.

Returns a Caplin component (implementing caplin.component.Component) that contains an instance of the caplin.presenter.PresentationModel specified within the XML snippet, and bound to the HTML template specified within the XML snippet. For example:

<presenter templateId="fx_ticket" presentationModel="caplinb.fxticket.FxTicket"/>

Parameters
String sXml An XML representation of the presenter component, containing the template name and presentation model name to use.