Caplin Trader 5.1.0

Class: module:ct-layout/testing/LayoutStub

module:ct-layout/testing/LayoutStub(nameopt, isClosable, isWritable)

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

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

This class shouldn't be instantiated directly. To create a new layout use module:ct-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:

setSaved(isSaved)

Sets the "saved" state of this layout.

Parameters:
Name Type Description
isSaved Boolean

Is the layout saved or not.