Class MainViewSupport

java.lang.Object
io.jmix.tabbedmode.sys.MainViewSupport

@Component("tabmod_MainViewSupport") public class MainViewSupport extends Object
Helper class for the main view.
  • Field Details

  • Constructor Details

  • Method Details

    • openDefaultView

      public void openDefaultView()
      Opens the default view configured in the application.

      This method retrieves the default view identifier from the UiProperties.getDefaultViewId() method. If the identifier is not defined or invalid, the method exits without performing further actions.

      If a valid view identifier is present and the corresponding view is registered, the method creates and configures the view. For DetailView, it also sets the entity to be edited.

      Finally, the view is opened in a new tab.

    • getEntityToEdit

      protected <E> E getEntityToEdit(String viewId)
    • getEntityClass

      protected Class<?> getEntityClass(ViewInfo viewInfo)