Class DynamicViewHandlerContext
java.lang.Object
io.jmix.dynmodelflowui.impl.behavior.DynamicViewHandlerContext
Root object of handler expressions. Exposes only curated facades and the view's entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DynamicViewComponentsprotected final DynamicViewDialogsprotected @Nullable Objectprotected final EntityStatesprotected DynamicViewEventprotected final DynamicViewNavigationprotected final DynamicViewNotificationsprotected final DynamicViewServicesprotected final DynamicViewState -
Constructor Summary
ConstructorsConstructorDescriptionDynamicViewHandlerContext(Supplier<@Nullable Object> entitySupplier, EntityStates entityStates, @Nullable DynamicViewComponents components, @Nullable DynamicViewNotifications notifications, @Nullable DynamicViewDialogs dialogs, @Nullable DynamicViewNavigation navigation, DynamicViewServices services, DynamicViewState state) -
Method Summary
Modifier and TypeMethodDescription@Nullable DynamicViewComponents@Nullable DynamicViewDialogs@Nullable ObjectgetEvent()@Nullable DynamicViewNavigation@Nullable DynamicViewNotificationsgetState()booleanisNew()Returns whether the view's current entity is a new, not-yet-persisted instance (seeEntityStates.isNew(Object)).
-
Field Details
-
entitySupplier
-
entityStates
-
components
-
notifications
-
dialogs
-
services
-
state
-
event
-
entityOverride
-
-
Constructor Details
-
Method Details
-
getEntity
-
isNew
public boolean isNew()Returns whether the view's current entity is a new, not-yet-persisted instance (seeEntityStates.isNew(Object)). Returnsfalsewhen there is no entity.- Returns:
trueif the entity is new
-
getComponents
-
getNotifications
-
getDialogs
-
getServices
-
getState
-
getEvent
-