Package io.jmix.tabbedmode.sys
Class MainViewSupport
java.lang.Object
io.jmix.tabbedmode.sys.MainViewSupport
Helper class for the main view.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Metadata
protected final TabbedModeProperties
protected final UiProperties
protected final ViewRegistry
protected final Views
-
Constructor Summary
ConstructorsConstructorDescriptionMainViewSupport
(Views views, UiProperties uiProperties, ViewRegistry viewRegistry, Metadata metadata, TabbedModeProperties tabbedModeProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
getEntityClass
(ViewInfo viewInfo) protected <E> E
getEntityToEdit
(String viewId) void
Opens the default view configured in the application.
-
Field Details
-
views
-
uiProperties
-
viewRegistry
-
metadata
-
tabbedModeProperties
-
-
Constructor Details
-
MainViewSupport
public MainViewSupport(Views views, UiProperties uiProperties, ViewRegistry viewRegistry, Metadata metadata, TabbedModeProperties tabbedModeProperties)
-
-
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
-
getEntityClass
-