Caplin Trader 4.0.3

Class: module:caplin/layout/testing/LayoutStub

module:caplin/layout/testing/LayoutStub

Constructor

new module:caplin/layout/testing/LayoutStub(nameopt, isClosable, isWritable)

A stub implementation of module:caplin/layout/Layout that is used in testing and workbenches.

This class shouldn't be instantiated directly. To create a new layout use module:caplin/layout/testing/LayoutServiceStub#createLayout.

Parameters:
Name Type Attributes Description
name String <optional>
Name of the layout.
isClosable Boolean Controls whether this layout can be closed or not (default is true).
isWritable Boolean Controls whether this layout can be saved or not (default is true).
Implements:

Methods

getName()

Implements:
See:

getProperty()

Implements:
See:

insertComponent()

Implements:
See:

isClosable()

Implements:
See:

isSaved()

Implements:
See:

isWritable()

Implements:
See:

setName()

Implements:
See:
  • module:caplin.layout.Layout#setName

setSaved(isSaved)

Sets the "saved" state of this layout.
Parameters:
Name Type Description
isSaved Boolean Is the layout saved or not.