@Component @Scope(value="prototype") @Order(value=970) public class ScreenNavigationHandler extends java.lang.Object implements NavigationHandler
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.AccessManager |
accessManager |
protected io.jmix.core.DataManager |
dataManager |
protected io.jmix.core.FetchPlanRepository |
fetchPlanRepository |
protected static int |
MAX_SUB_ROUTES |
protected io.jmix.core.Metadata |
metadata |
protected io.jmix.core.MetadataTools |
metadataTools |
protected WindowConfig |
windowConfig |
Constructor and Description |
---|
ScreenNavigationHandler() |
Modifier and Type | Method and Description |
---|---|
protected Screen |
createEditor(WindowInfo windowInfo,
java.lang.String screenRoute,
NavigationState requestedState,
AppUI ui) |
protected java.util.Map<java.lang.String,java.lang.Object> |
createEditorScreenOptions(WindowInfo windowInfo,
NavigationState requestedState,
AppUI ui) |
protected Screen |
createScreen(NavigationState requestedState,
java.lang.String screenRoute,
WindowInfo windowInfo,
AppUI ui) |
protected Screen |
doCreateEditor(WindowInfo windowInfo,
AppUI ui,
OpenMode openMode,
java.util.Map<java.lang.String,java.lang.Object> options) |
boolean |
doHandle(NavigationState requestedState,
AppUI ui)
Performs navigation corresponding the given
requestedState . |
protected NavigationState |
getNestedScreenState(java.lang.String screenRoute,
NavigationState requestedState) |
protected OpenMode |
getScreenOpenMode(java.lang.String requestedRoute,
java.lang.String screenRoute,
AppUI ui) |
protected void |
handle404(java.lang.String route,
AppUI ui) |
protected boolean |
isEditor(WindowInfo windowInfo) |
protected boolean |
isScreenChanged(NavigationState requestedState,
AppUI ui) |
protected boolean |
navigate(NavigationState requestedState,
AppUI ui,
java.util.List<io.jmix.core.common.datastruct.Pair<java.lang.String,WindowInfo>> routeWindowInfos) |
protected void |
openScreen(NavigationState requestedState,
java.lang.String screenRoute,
WindowInfo windowInfo,
AppUI ui) |
protected boolean |
skipSubRoute(NavigationState requestedState,
int subRouteIdx,
NavigationState currentState,
java.lang.String screenRoute) |
protected static final int MAX_SUB_ROUTES
@Autowired protected WindowConfig windowConfig
@Autowired protected io.jmix.core.DataManager dataManager
@Autowired protected io.jmix.core.Metadata metadata
@Autowired protected io.jmix.core.FetchPlanRepository fetchPlanRepository
@Autowired protected io.jmix.core.MetadataTools metadataTools
@Autowired protected io.jmix.core.AccessManager accessManager
public boolean doHandle(NavigationState requestedState, AppUI ui)
NavigationHandler
requestedState
.doHandle
in interface NavigationHandler
requestedState
- requested state represented by NavigationState
instanceui
- current UIrequestedState
is fully handled by the handler or false if requestedState
should
be passed through handlers chainprotected boolean navigate(NavigationState requestedState, AppUI ui, java.util.List<io.jmix.core.common.datastruct.Pair<java.lang.String,WindowInfo>> routeWindowInfos)
protected void handle404(java.lang.String route, AppUI ui)
protected boolean isScreenChanged(NavigationState requestedState, AppUI ui)
protected boolean skipSubRoute(NavigationState requestedState, int subRouteIdx, NavigationState currentState, java.lang.String screenRoute)
protected void openScreen(NavigationState requestedState, java.lang.String screenRoute, WindowInfo windowInfo, AppUI ui)
protected NavigationState getNestedScreenState(java.lang.String screenRoute, NavigationState requestedState)
protected Screen createScreen(NavigationState requestedState, java.lang.String screenRoute, WindowInfo windowInfo, AppUI ui)
protected Screen createEditor(WindowInfo windowInfo, java.lang.String screenRoute, NavigationState requestedState, AppUI ui)
protected Screen doCreateEditor(WindowInfo windowInfo, AppUI ui, OpenMode openMode, java.util.Map<java.lang.String,java.lang.Object> options)
protected OpenMode getScreenOpenMode(java.lang.String requestedRoute, java.lang.String screenRoute, AppUI ui)
@Nullable protected java.util.Map<java.lang.String,java.lang.Object> createEditorScreenOptions(WindowInfo windowInfo, NavigationState requestedState, AppUI ui)
protected boolean isEditor(WindowInfo windowInfo)