This class shouldn't be instantiated directly. It is available trough the service registry under the
caplin.layout-service
alias when you are running the "dev" scenario (workbench and tests).
Attributes | Name and Description |
---|---|
|
caplin.layout.testing.LayoutServiceStub()
|
Attributes | Name and Description |
---|---|
<static>
|
caplin.layout.testing.LayoutServiceStub.EVENT_NAMES
A map of "requested" events that will get triggered when user code interacts with the
|
Attributes | Name and Description |
---|---|
|
void
close( layout)
Triggers a |
|
caplin.layout.testing.LayoutStub
createLayout(String name, Boolean isClosable, isWritable)
Creates a new caplin.layout.testing.LayoutStub. |
|
caplin.layout.testing.LayoutTemplateStub
createLayoutTemplate(String name)
Creates a new caplin.layout.testing.LayoutTemplateStub. |
|
void
dispose( layout)
Triggers a |
|
void
doClose( layout)
Perform the actual closing of the layout. |
|
void
doDispose( layout)
Perform the actual deleting of the layout. |
|
void
doOpen( layout)
Perform the actual opening of the layout. |
|
void
doOpenNew( template)
Perform the actual openening of a new layout. |
|
void
doSave( layout)
Perform the actual save of the layout. |
|
void
doSaveAs( layout, name)
Perform the actual save as of the layout. |
|
void
doSelect( layout)
Perform the actual selection of the layout. |
|
void
getAvailable()
|
|
void
getOpen()
|
|
void
getSelected()
|
|
void
getTemplates()
|
|
void
open( layout)
Triggers a |
|
void
openNew( template)
Triggers a |
|
void
save( layout)
Triggers a |
|
void
saveAs( layout, name)
Triggers a |
|
void
select( layout)
Triggers a |
|
void
startEventProxy()
Starts the event proxy which automatically responds to any "-requested" events and calls the corresponding "do" method on the stub layout service. |
|
void
stopEventProxy()
Stops the event proxy. |
►
caplin.layout.testing.LayoutServiceStub()
►
<static>
caplin.layout.testing.LayoutServiceStub.EVENT_NAMES
A map of "requested" events that will get triggered when user code interacts with the
caplin.layout-service
service.
Contains the following events:
Triggered when caplin.layout.LayoutService#open is called.
caplin.layout.Layout | layout | The layout to be opened. |
caplin.layout.LayoutTemplate | template | The layout template to be opened. |
caplin.layout.Layout | layout | The layout to be selected. |
caplin.layout.Layout | layout | The layout to be closed. |
caplin.layout.Layout | layout | The layout to be saved. |
caplin.layout.Layout | layout | The layout to be saved. |
String | name | The name to be given to the new layout. |
caplin.layout.Layout | layout | The layout to be disposed. |
►
void
close( layout)
Triggers a REQUESTED.CLOSE
event.
layout |
►
caplin.layout.testing.LayoutStub
createLayout(String name, Boolean isClosable, isWritable)
Creates a new caplin.layout.testing.LayoutStub.
String | name | (optional) Name of the new layout. |
Boolean | isClosable | (optional) Can the newly created layout be closed or not. |
isWritable |
►
caplin.layout.testing.LayoutTemplateStub
createLayoutTemplate(String name)
Creates a new caplin.layout.testing.LayoutTemplateStub.
String | name | (optional) Name of the new template. |
►
void
dispose( layout)
Triggers a REQUESTED.DISPOSE
event.
layout |
►
void
doClose( layout)
Perform the actual closing of the layout.
layout |
►
void
doDispose( layout)
Perform the actual deleting of the layout.
layout |
►
void
doOpen( layout)
Perform the actual opening of the layout.
layout |
►
void
doOpenNew( template)
Perform the actual openening of a new layout.
template |
►
void
doSave( layout)
Perform the actual save of the layout.
layout |
►
void
doSaveAs( layout, name)
Perform the actual save as of the layout.
layout | ||
name |
►
void
doSelect( layout)
Perform the actual selection of the layout.
layout |
►
void
getAvailable()
►
void
getOpen()
►
void
getSelected()
►
void
getTemplates()
►
void
open( layout)
Triggers a REQUESTED.OPEN
event.
layout |
►
void
openNew( template)
Triggers a REQUESTED.OPEN_NEW
event.
template |
►
void
save( layout)
Triggers a REQUESTED.SAVE
event.
layout |
►
void
saveAs( layout, name)
Triggers a REQUESTED.SAVE_AS
event.
layout | ||
name |
►
void
select( layout)
Triggers a REQUESTED.SELECT
event.
layout |
►
void
startEventProxy()
Starts the event proxy which automatically responds to any "-requested" events and calls the corresponding "do" method on the stub layout service.
►
void
stopEventProxy()
Stops the event proxy.