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, updateApplicationData
public FormPreviewContextHolder(long modelId, String formExp, LspsAppConnector lspsConnector, LspsFormConnector formConnector, String userId) throws LspsException
modelId
- formExp
- lspsConnector
- formConnector
- userId
- LspsException
protected ExecutionContext createEvaluationContext() throws LspsException
LspsContextHolder
LspsContextHolder.reloadContent()
.createEvaluationContext
in class LspsContextHolder
LspsException
protected LspsScreen createScreen() throws LspsException
LspsContextHolder
LspsContextHolder.reloadContent()
.createScreen
in class LspsContextHolder
LspsException
protected RecordHolder submit() throws LspsException
LspsContextHolder
submit
in class LspsContextHolder
LspsException
public boolean isSaved()
LspsContextHolder
isSaved
in class LspsContextHolder
public boolean isReadOnly()
LspsContextHolder
isReadOnly
in class LspsContextHolder
public RecordHolder createSavedStateHolder()
LspsContextHolder
UISaveAction
when the save action is going to be executed.createSavedStateHolder
in class LspsContextHolder
public void save(UIScreenState uiState)
LspsContextHolder
save
in class LspsContextHolder
public String getTitle()
LspsContextHolder
getTitle
in class LspsContextHolder
public void addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService, List<Long> uploadedBinaryData)
LspsContextHolder
addSaveMetadataToUploadedBinaryData
in class LspsContextHolder
public Variant.ClosureVariant getSubmitNavigationDefinition()
LspsContextHolder
getSubmitNavigationDefinition
in class LspsContextHolder
{Set<Todo> : Navigation}
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.