Package io.jmix.flowui.screen
Interface EditorScreen<E>
- Type Parameters:
E
- type of entity
- All Superinterfaces:
ChangeTracker
- All Known Implementing Classes:
StandardEditor
Interface for editor screen controllers.
-
Method Summary
Modifier and TypeMethodDescriptioncommit()
void
setEntityToEdit
(E entity) Sets entity instance to editor.Methods inherited from interface io.jmix.flowui.screen.ChangeTracker
hasUnsavedChanges
-
Method Details
-
commit
OperationResult commit() -
closeWithCommit
OperationResult closeWithCommit() -
closeWithDiscard
OperationResult closeWithDiscard() -
getEditedEntity
E getEditedEntity()- Returns:
- currently edited entity instance
-
setEntityToEdit
Sets entity instance to editor.- Parameters:
entity
- entity
-
getPessimisticLockStatus
PessimisticLockStatus getPessimisticLockStatus()- Returns:
- lock status of currently edited entity instance. Possible variants:
PessimisticLockStatus.NOT_SUPPORTED
- if the entity does not support pessimistic lock.PessimisticLockStatus.LOCKED
- if the entity instance is successfully locked.PessimisticLockStatus.FAILED
- if the entity instance has been locked when the screen is opened.
- See Also:
-