@Component(value="cuba_ScreenNavigator")
@Scope(value="prototype")
public class ScreenNavigator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DataManager |
dataManager |
protected Metadata |
metadata |
static java.lang.String |
NAME |
protected UrlChangeHandler |
owner |
protected Security |
security |
protected AppUI |
ui |
protected WindowConfig |
windowConfig |
Modifier | Constructor and Description |
---|---|
protected |
ScreenNavigator()
INTERNAL
|
|
ScreenNavigator(UrlChangeHandler owner,
AppUI ui) |
Modifier and Type | Method and Description |
---|---|
protected Screen |
createEditor(WindowInfo windowInfo,
java.lang.String screenRoute,
NavigationState requestedState) |
protected java.util.Map<java.lang.String,java.lang.Object> |
createEditorScreenOptions(WindowInfo windowInfo,
NavigationState requestedState) |
protected Screen |
createScreen(NavigationState requestedState,
java.lang.String screenRoute,
WindowInfo windowInfo) |
protected boolean |
currentRootNavigated(NavigationState requestedState) |
protected java.lang.Class<? extends Entity> |
extractEntityClass(WindowInfo windowInfo) |
protected java.lang.Class<? extends Entity> |
extractEntityTypeByClass(java.lang.Class controllerClass) |
protected java.lang.Class<? extends Entity> |
extractEntityTypeByInterface(java.lang.Class controllerClass) |
protected OpenMode |
getScreenOpenMode(java.lang.String requestedRoute,
java.lang.String screenRoute) |
protected void |
handle404(java.lang.String route) |
protected boolean |
handleCurrentRootNavigation(NavigationState requestedState) |
protected boolean |
handleParamsChange(NavigationState requestedState) |
protected boolean |
handleRootChange(NavigationState requestedState) |
protected boolean |
handleScreenChange(NavigationState requestedState) |
void |
handleScreenNavigation(NavigationState requestedState) |
protected boolean |
isAbstractEditor(java.lang.Class controllerClass) |
protected boolean |
isEditor(WindowInfo windowInfo) |
protected boolean |
isLegacyScreen(java.lang.Class<? extends FrameOwner> controllerClass) |
protected boolean |
isNotPermittedToNavigate(NavigationState requestedState,
WindowInfo windowInfo) |
protected boolean |
isRootRoute(WindowInfo windowInfo) |
protected boolean |
isStandardEditor(java.lang.Class controllerClass) |
protected void |
openScreen(NavigationState requestedState,
java.lang.String screenRoute,
WindowInfo windowInfo) |
protected boolean |
paramsChanged(NavigationState requestedState) |
protected boolean |
rootChanged(NavigationState requestedState) |
protected boolean |
screenChanged(NavigationState requestedState) |
protected boolean |
skipNavigation(NavigationState requestedState,
int i,
NavigationState currentState,
java.lang.String[] currentRouteParts,
java.lang.String screenRoute) |
public static final java.lang.String NAME
protected UrlChangeHandler owner
protected AppUI ui
@Inject protected WindowConfig windowConfig
@Inject protected Metadata metadata
@Inject protected DataManager dataManager
@Inject protected Security security
public ScreenNavigator(UrlChangeHandler owner, AppUI ui)
protected ScreenNavigator()
public void handleScreenNavigation(NavigationState requestedState)
protected boolean handleCurrentRootNavigation(NavigationState requestedState)
protected boolean currentRootNavigated(NavigationState requestedState)
protected boolean handleRootChange(NavigationState requestedState)
protected boolean rootChanged(NavigationState requestedState)
protected boolean handleScreenChange(NavigationState requestedState)
protected boolean skipNavigation(NavigationState requestedState, int i, NavigationState currentState, java.lang.String[] currentRouteParts, java.lang.String screenRoute)
protected boolean screenChanged(NavigationState requestedState)
protected void openScreen(NavigationState requestedState, java.lang.String screenRoute, WindowInfo windowInfo)
protected boolean isNotPermittedToNavigate(NavigationState requestedState, WindowInfo windowInfo)
protected Screen createScreen(NavigationState requestedState, java.lang.String screenRoute, WindowInfo windowInfo)
protected OpenMode getScreenOpenMode(java.lang.String requestedRoute, java.lang.String screenRoute)
protected Screen createEditor(WindowInfo windowInfo, java.lang.String screenRoute, NavigationState requestedState)
@Nullable protected java.util.Map<java.lang.String,java.lang.Object> createEditorScreenOptions(WindowInfo windowInfo, NavigationState requestedState)
@Nullable protected java.lang.Class<? extends Entity> extractEntityClass(WindowInfo windowInfo)
@Nullable protected java.lang.Class<? extends Entity> extractEntityTypeByInterface(java.lang.Class controllerClass)
@Nullable protected java.lang.Class<? extends Entity> extractEntityTypeByClass(java.lang.Class controllerClass)
protected boolean handleParamsChange(NavigationState requestedState)
protected void handle404(java.lang.String route)
protected boolean paramsChanged(NavigationState requestedState)
protected boolean isEditor(WindowInfo windowInfo)
protected boolean isAbstractEditor(java.lang.Class controllerClass)
protected boolean isStandardEditor(java.lang.Class controllerClass)
protected boolean isLegacyScreen(java.lang.Class<? extends FrameOwner> controllerClass)
protected boolean isRootRoute(WindowInfo windowInfo)