Class
caplin.layout.testing

LayoutStub

Implements caplin.layout.Layout.
A stub implementation of caplin.layout.Layout that is used in testing and workbenches.

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

Constructor Summary

Attributes Name and Description
caplin.layout.testing.LayoutStub(String name, Boolean isClosable, Boolean isWritable)

Method Summary

Attributes Name and Description
void getName()

void getProperty( propertyName)

void insertComponent( component)

void isClosable()

void isSaved()

void isWritable()

void setSaved(Boolean isSaved)

Sets the "saved" state of this layout.

Constructor Detail

caplin.layout.testing.LayoutStub(String name, Boolean isClosable, Boolean isWritable)

Parameters
String name (optional) Name of the layout.
Boolean isClosable Controls whether this layout can be closed or not (default is true).
Boolean isWritable Controls whether this layout can be saved or not (default is true).

Method Detail

void getName()

See
caplin.layout.Layout#getName

void getProperty( propertyName)

Parameters
propertyName
See
caplin.layout.Layout#getProperty

void insertComponent( component)

Parameters
component
See
caplin.layout.Layout#insertComponent

void isClosable()

See
caplin.layout.Layout#isClosable

void isSaved()

See
caplin.layout.Layout#isSaved

void isWritable()

See
caplin.layout.Layout#isWritable

void setSaved(Boolean isSaved)

Sets the "saved" state of this layout.

Parameters
Boolean isSaved Is the layout saved or not.