Package io.jmix.flowui
Class ViewNavigators
java.lang.Object
io.jmix.flowui.ViewNavigators
Provides fluent interface for navigating to views.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DetailViewNavigationProcessorprotected ListViewNavigationProcessorprotected ViewNavigationProcessor
- 
Constructor SummaryConstructorsConstructorDescriptionViewNavigators(DetailViewNavigationProcessor detailViewNavigationProcessor, ListViewNavigationProcessor listViewNavigationProcessor, ViewNavigationProcessor viewNavigationProcessor) 
- 
Method SummaryModifier and TypeMethodDescription<E> DetailViewNavigator<E>detailView(EntityPickerComponent<E> picker) Creates a detail view navigator to edit an entity selected in the picker component.<E> DetailViewNavigator<E>detailView(ListDataComponent<E> listDataComponent) Creates a detail view navigator to edit an entity selected in the list component.<E> DetailViewNavigator<E>detailView(View<?> origin, Class<E> entityClass) Creates a detail view navigator for an entity class.<E> DetailViewNavigator<E>detailView(Class<E> entityClass) Deprecated, for removal: This API element is subject to removal in a future version.protected <E> Class<E>getBeanType(EntityPickerComponent<E> picker) protected <E> Class<E>getBeanType(ListDataComponent<E> listDataComponent) <E> ListViewNavigator<E>Creates a list view navigator for an entity class.<E> ListViewNavigator<E>Deprecated, for removal: This API element is subject to removal in a future version.uselistView(View, Class)instead<V extends View<?>>
 ViewClassNavigator<V>Creates a view navigator.Creates a view navigator.<V extends View<?>>
 ViewClassNavigator<V>Deprecated, for removal: This API element is subject to removal in a future version.useview(View, Class)insteadDeprecated, for removal: This API element is subject to removal in a future version.useview(View, String)instead
- 
Field Details
- 
Constructor Details
- 
Method Details- 
detailView@Deprecated(since="2.3", forRemoval=true) public <E> DetailViewNavigator<E> detailView(Class<E> entityClass) Deprecated, for removal: This API element is subject to removal in a future version.usedetailView(View, Class)insteadCreates a detail view navigator for an entity class.Example of navigating to a view for editing an entity: viewNavigators.detailView(Customer.class) .editEntity(customersTable.getSingleSelectedItem()) .withViewClass(CustomerDetailView.class) .navigate();Example of navigating to a view for creating a new entity instance: viewNavigators.detailView(Customer.class) .newEntity() .withViewClass(CustomerDetailView.class) .navigate();- Parameters:
- entityClass- edited entity class
 
- 
detailViewCreates a detail view navigator for an entity class.Example of navigating to a view for editing an entity: viewNavigators.detailView(this, Customer.class) .editEntity(customersTable.getSingleSelectedItem()) .withViewClass(CustomerDetailView.class) .navigate();Example of navigating to a view for creating a new entity instance: viewNavigators.detailView(this, Customer.class) .newEntity() .withViewClass(CustomerDetailView.class) .navigate();- Parameters:
- origin- calling view
- entityClass- edited entity class
 
- 
detailViewCreates a detail view navigator to edit an entity selected in the list component.- Parameters:
- listDataComponent- the component which provides a selected entity to edit
- See Also:
 
- 
detailViewCreates a detail view navigator to edit an entity selected in the picker component.- Parameters:
- picker- the component which provides an entity to edit
- See Also:
 
- 
listView@Deprecated(since="2.3", forRemoval=true) public <E> ListViewNavigator<E> listView(Class<E> entityClass) Deprecated, for removal: This API element is subject to removal in a future version.uselistView(View, Class)insteadCreates a list view navigator for an entity class.Example of navigating to a view for editing an entity and returning to the calling view: viewNavigators.listView(Customer.class) .withViewClass(CustomerListView.class) .withBackwardNavigation(true) .navigate();- Parameters:
- entityClass- edited entity class
 
- 
listViewCreates a list view navigator for an entity class.Example of navigating to a view for editing an entity and returning to the calling view: viewNavigators.listView(this, Customer.class) .withViewClass(CustomerListView.class) .withBackwardNavigation(true) .navigate();- Parameters:
- origin- calling view
- entityClass- edited entity class
 
- 
view@Deprecated(since="2.3", forRemoval=true) public <V extends View<?>> ViewClassNavigator<V> view(Class<V> viewClass) Deprecated, for removal: This API element is subject to removal in a future version.useview(View, Class)insteadCreates a view navigator.- Parameters:
- viewClass- class of the view to navigate to
 
- 
viewCreates a view navigator.- Parameters:
- origin- calling view
- viewClass- class of the view to navigate to
 
- 
viewDeprecated, for removal: This API element is subject to removal in a future version.useview(View, String)insteadCreates a view navigator.- Parameters:
- viewId- id of the view to navigate to (as set in the- ViewControllerannotation)
 
- 
viewCreates a view navigator.- Parameters:
- origin- calling view
- viewId- id of the view to navigate to (as set in the- ViewControllerannotation)
 
- 
getBeanType
- 
getBeanType
 
- 
detailView(View, Class)instead