Package io.jmix.flowui.view
Interface DetailView<E>
- Type Parameters:
- E- type of entity
- All Superinterfaces:
- ChangeTracker
- All Known Implementing Classes:
- EntityAttributeResourcePolicyModelDetailView,- EntityInspectorDetailView,- EntityResourcePolicyModelDetailView,- GraphQLResourcePolicyModelDetailView,- JobModelDetailView,- MenuResourcePolicyModelDetailView,- ResourcePolicyModelDetailView,- ResourceRoleModelDetailView,- RowLevelPolicyModelDetailView,- RowLevelRoleModelDetailView,- SpecificResourcePolicyModelDetailView,- StandardDetailView,- TenantDetailView,- TriggerModelDetailView,- ViewResourcePolicyModelDetailView
Interface of views that display an entity instance and can save changes made by the user.
- 
Method SummaryModifier and TypeMethodDescriptionDiscards changes and closes the view.Saves changes and closes the view.save()Saves changes.voidsetEntityToEdit(E entity) Sets entity instance to the view.Methods inherited from interface io.jmix.flowui.view.ChangeTrackerhasUnsavedChanges
- 
Method Details- 
saveOperationResult save()Saves changes.
- 
closeWithSaveOperationResult closeWithSave()Saves changes and closes the view.
- 
closeWithDiscardOperationResult closeWithDiscard()Discards changes and closes the view.
- 
getEditedEntityE getEditedEntity()- Returns:
- currently edited entity instance
- Throws:
- IllegalStateException- if the edited entity isn't initialized yet, for example in- View.InitEvent
 
- 
setEntityToEditSets entity instance to the view.- Parameters:
- entity- entity to edit
 
- 
getPessimisticLockStatusPessimisticLockStatus getPessimisticLockStatus()- Returns:
- lock status of the 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 view is opened.
 
- See Also:
 
 
-