public class FormPreviewContextHolder extends LspsContextHolder
LspsContextHolder which displays and handles the lifecycle of
LSPS form preview.modelInstanceUtilsService, modelProviderService, sharedRecordTypeFactory| Constructor and Description |
|---|
FormPreviewContextHolder(long modelId,
String formExp,
LspsAppConnector lspsConnector,
LspsFormConnector formConnector,
String userId)
Creates context for the given model id and form expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService,
List<Long> uploadedBinaryData)
Adds metadata to the binary data uploaded in this holder.
|
protected ExecutionContext |
createEvaluationContext()
Creates the evaluation context.
|
RecordHolder |
createSavedStateHolder()
Returns a representation of the saved state in the model.
|
protected LspsScreen |
createScreen()
Creates the user interface.
|
Variant.ClosureVariant |
getSubmitNavigationDefinition()
Gets the navigation definition from the document/todo definition.
|
String |
getTitle()
Returns the title for the form content.
|
boolean |
isReadOnly()
Returns true if the GUI should be opened in read-only mode.
|
boolean |
isSaved()
Returns true if the state of the GUI was already saved before opening.
|
void |
save(UIScreenState uiState)
Saves the changes done within the context.
|
protected RecordHolder |
submit()
Submits the changes done within the context and closes the context.
|
collectGarbage, deactivate, getAppConnector, getExecutionContext, getExecutionContext, getFormConnector, getHandle, getModelInstance, getScreen, getValueHolder, getValueHolderInLevel, invalidate, isClosureWithQuery, isValid, minimalModelInstanceCopy, performPersist, persist, reactivate, reloadContent, submitContext, updateApplicationDatapublic FormPreviewContextHolder(long modelId,
String formExp,
LspsAppConnector lspsConnector,
LspsFormConnector formConnector,
String userId)
throws LspsException
modelId - formExp - lspsConnector - formConnector - userId - LspsExceptionprotected ExecutionContext createEvaluationContext() throws LspsException
LspsContextHolderLspsContextHolder.reloadContent().createEvaluationContext in class LspsContextHolderLspsExceptionprotected LspsScreen createScreen() throws LspsException
LspsContextHolderLspsContextHolder.reloadContent().createScreen in class LspsContextHolderLspsExceptionprotected RecordHolder submit() throws LspsException
LspsContextHoldersubmit in class LspsContextHolderLspsExceptionpublic boolean isSaved()
LspsContextHolderisSaved in class LspsContextHolderpublic boolean isReadOnly()
LspsContextHolderisReadOnly in class LspsContextHolderpublic RecordHolder createSavedStateHolder()
LspsContextHolderUISaveAction when the save action is going to be executed.createSavedStateHolder in class LspsContextHolderpublic void save(UIScreenState uiState)
LspsContextHoldersave in class LspsContextHolderpublic String getTitle()
LspsContextHoldergetTitle in class LspsContextHolderpublic void addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService, List<Long> uploadedBinaryData)
LspsContextHolderaddSaveMetadataToUploadedBinaryData in class LspsContextHolderpublic Variant.ClosureVariant getSubmitNavigationDefinition()
LspsContextHoldergetSubmitNavigationDefinition in class LspsContextHolder{Set<Todo> : Navigation}Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.