Caplin Trader 4.8.0

Interface: module:caplin/component/frame/FrameManager

module:caplin/component/frame/FrameManager

The FrameManager interface allows module:caplin/component/Component instances to be viewed within the application. While the end-developer may wish to write or configure their own Component instances, it is the frame managers responsibility to create the implementations of module:caplin/component/frame/PanelFrame and module:caplin/component/frame/DialogFrame that these components must be placed within, before they can be viewed and interacted with by the user on screen.

Methods

addPanelToLayout(oComponent, sCaption, oFrameCreationListener)

Display a component as part of the main page or application.
Parameters:
Name Type Description
oComponent module:caplin/component/Component The component to be added.
sCaption String The caption for the new panel.
oFrameCreationListener module:caplin/component/frame/FrameCreationListener A listener that will be provided with a reference to the module:caplin/component/frame/DialogFrame that will wrap this component.

openDialog(oComponent, sCaption, nWidth, nHeight, oFrameCreationListener)

Display a component within a floating dialog on screen.
Parameters:
Name Type Description
oComponent module:caplin/component/Component The component to be displayed.
sCaption String The caption for the floating dialog window.
nWidth int The initial width of the dialog.
nHeight int The initial height of the dialog.
oFrameCreationListener module:caplin/component/frame/FrameCreationListener A listener that will be provided with a reference to the module:caplin/component/frame/DialogFrame that will wrap this component.