View Annotations
This section describes annotations that can be added to a view controller to provide additional settings.
TabbedModeViewProperties
The @TabbedModeViewProperties
annotation defines parameters of a view specific for the Tabbed Application Mode. It provides the following properties:
-
closeable
- whether a view can be closed by standard operations like a tab close button, close tab actions,io.jmix.tabbedmode.Views.OpenedViews
andio.jmix.tabbedmode.Views.ViewStack
methods. This means that a view can only be closed by invoking the close() method of the view. -
forceDialog
- if set totrue
, the view is always opened in a dialog window, regardless of the initial setting ofViewOpenMode
.
MultipleOpen
The @MultipleOpen
annotation indicates that the view can be opened from the main menu multiple times. By default, when a user clicks a main menu item, the framework checks if the view of the same class and id is already opened on top of the work area tab. If such view is found, it is closed and the new instance of the view is opened in a new tab. When the @MultipleOpen
annotation is present, no checks are performed and a new instance of the screen is simply opened in a new tab.