Class AppSettingsEntityView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.appsettingsflowui.view.appsettings.AppSettingsEntityView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, Serializable

@Route(value="app-settings", layout=DefaultMainViewParent.class) @ViewController("appSettings.view") @ViewDescriptor("app-settings-entity-view.xml") @DialogMode(width="50em", height="37.5em") public class AppSettingsEntityView extends StandardView
See Also:
  • Field Details

    • MAX_CAPTION_LENGTH

      protected static final int MAX_CAPTION_LENGTH
      See Also:
    • SELECT_APP_SETTINGS_ENTITY_QUERY

      protected static final String SELECT_APP_SETTINGS_ENTITY_QUERY
      See Also:
    • QUERY_PARAM_SETTINGS_CLASS

      protected static final String QUERY_PARAM_SETTINGS_CLASS
      See Also:
    • FORM_COLUMNS

      protected static final int FORM_COLUMNS
      See Also:
    • entitySelector

      @ViewComponent protected com.vaadin.flow.component.combobox.ComboBox<MetaClass> entitySelector
    • fieldsScroller

      @ViewComponent protected com.vaadin.flow.component.orderedlayout.Scroller fieldsScroller
    • buttonsPanel

      @ViewComponent protected com.vaadin.flow.component.orderedlayout.HorizontalLayout buttonsPanel
    • appSettings

      @Autowired protected AppSettings appSettings
    • entityStates

      @Autowired protected EntityStates entityStates
    • dataManager

      @Autowired protected UnconstrainedDataManager dataManager
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • accessManager

      @Autowired protected AccessManager accessManager
    • dataComponents

      @Autowired protected DataComponents dataComponents
    • viewValidation

      @Autowired protected ViewValidation viewValidation
    • messages

      @Autowired protected Messages messages
    • appSettingsTools

      @Autowired protected AppSettingsTools appSettingsTools
    • messageTools

      @Autowired protected MessageTools messageTools
    • notifications

      @Autowired protected Notifications notifications
    • uiComponentsGenerator

      @Autowired protected UiComponentsGenerator uiComponentsGenerator
    • uiComponents

      @Autowired protected UiComponents uiComponents
    • fetchPlans

      @Autowired protected FetchPlans fetchPlans
    • routeSupport

      @Autowired protected RouteSupport routeSupport
    • dataContext

      protected DataContext dataContext
    • currentMetaClass

      protected MetaClass currentMetaClass
    • prevMetaClass

      protected MetaClass prevMetaClass
    • isNewEntityModified

      protected boolean isNewEntityModified
    • isEntityChangePrevented

      protected boolean isEntityChangePrevented
    • entityToEdit

      protected Object entityToEdit
  • Constructor Details

    • AppSettingsEntityView

      public AppSettingsEntityView()
  • Method Details

    • onInit

      @Subscribe public void onInit(View.InitEvent event)
    • onEntitySelectorValueChange

      @Subscribe("entitySelector") protected void onEntitySelectorValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<MetaClass>,MetaClass> e)
    • beforeShow

      @Subscribe public void beforeShow(View.BeforeShowEvent event)
    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
      Overrides:
      beforeEnter in class View<ViewLayout>
    • onBeforeClose

      @Subscribe public void onBeforeClose(View.BeforeCloseEvent event)
    • preventUnsavedChanges

      protected void preventUnsavedChanges(View.BeforeCloseEvent event)
    • setSettingsClass

      public void setSettingsClass(String metaClassName)
    • initEntityPropertiesLayout

      protected void initEntityPropertiesLayout()
    • getEntitySelectorItems

      protected List<MetaClass> getEntitySelectorItems()
    • readPermitted

      protected boolean readPermitted(MetaClass metaClass)
    • showEntityPropertiesLayout

      protected void showEntityPropertiesLayout()
    • createFormLayout

      protected com.vaadin.flow.component.formlayout.FormLayout createFormLayout(InstanceContainer<?> container)
    • collectMetaProperties

      protected List<MetaProperty> collectMetaProperties(MetaClass metaClass, Object item)
    • isMany

      protected boolean isMany(MetaProperty metaProperty)
    • addPropertiesLayoutItem

      protected void addPropertiesLayoutItem(InstanceContainer<?> container, com.vaadin.flow.component.formlayout.FormLayout formLayout, MetaProperty metaProperty)
    • getPropertyCaption

      protected String getPropertyCaption(MetaClass metaClass, MetaProperty metaProperty)
    • initInstanceContainerWithDbEntity

      protected InstanceContainer initInstanceContainerWithDbEntity()
    • isApplicationSettingsEntity

      protected boolean isApplicationSettingsEntity(MetaClass metaClass)
    • onSave

      @Subscribe("saveAction") public void onSave(ActionPerformedEvent event)
    • hasUnsavedChanges

      protected boolean hasUnsavedChanges()
    • handleEntitySelectorValueChangeWithUnsavedChanges

      protected void handleEntitySelectorValueChangeWithUnsavedChanges()
    • saveChanges

      protected OperationResult saveChanges()
    • updateEntitySelectorValue

      protected OperationResult updateEntitySelectorValue(boolean preventEntitySelectorChange)
    • showSaveNotification

      protected void showSaveNotification()