public class LspsTodoHolder extends AbstractTodoHolder
LspsContextHolder
which displays and handles the lifecycle of
a LSPS to-do.PARAM_NAVIGATION, PARAM_UIDEFINITION, taskContextId, todo, todoId, todoServiceLocal
modelInstanceUtilsService, modelProviderService, sharedRecordTypeFactory
Constructor and Description |
---|
LspsTodoHolder(long todoId,
LspsAppConnector appConnector,
LspsFormConnector formConnector,
String userId,
boolean readOnly)
Creates context for the given to-do id.
|
Modifier and Type | Method and Description |
---|---|
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.
|
RecordHolder |
getHistoryEntry(ExecutionContext context,
Map<String,Object> defaultValues)
Returns the navigation history entry for this todo.
|
String |
getTitle()
Returns the title for the form content.
|
Todo |
getTodo()
Returns the displayed to-do.
|
boolean |
isSaved()
Returns true if the state of the GUI was already saved before opening.
|
protected TodoList |
submitTodo() |
protected void |
updateApplicationData(ModelInstance modelInstance)
Updates the data available to the model through the
getApplicationData() function. |
addSaveMetadataToUploadedBinaryData, createStackTrace, getSubmitNavigationDefinition, isReadOnly, isUsingEvalLevels, save, submit
collectGarbage, deactivate, getAppConnector, getExecutionContext, getExecutionContext, getFormConnector, getHandle, getModelInstance, getScreen, getValueHolder, getValueHolderInLevel, invalidate, isClosureWithQuery, isValid, minimalModelInstanceCopy, performPersist, persist, reactivate, reloadContent, submitContext
public LspsTodoHolder(long todoId, LspsAppConnector appConnector, LspsFormConnector formConnector, String userId, boolean readOnly) throws LspsException
todoId
- appConnector
- formConnector
- userId
- readOnly
- 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 TodoList submitTodo() throws LspsException
submitTodo
in class AbstractTodoHolder
LspsException
public boolean isSaved()
LspsContextHolder
isSaved
in class LspsContextHolder
public RecordHolder createSavedStateHolder()
LspsContextHolder
UISaveAction
when the save action is going to be executed.createSavedStateHolder
in class AbstractTodoHolder
public RecordHolder getHistoryEntry(ExecutionContext context, Map<String,Object> defaultValues)
getHistoryEntry
in class AbstractTodoHolder
context
- defaultValues
- public String getTitle()
LspsContextHolder
getTitle
in class AbstractTodoHolder
public Todo getTodo()
getTodo
in class AbstractTodoHolder
protected void updateApplicationData(ModelInstance modelInstance)
getApplicationData()
function.updateApplicationData
in class AbstractTodoHolder
modelInstance
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.