--Ignore Navigation for specific screens
1 post
• Page 1 of 1
--Ignore Navigation for specific screens
This article is outdated - please use our new system at
https://doc.sibvisions.com
It's super easy to enable standard Browser navigation for an application. Simply set the application parameter
- Code: Select all
Application.navigation
to true.
If navigation is enabled, it's possible to use the browser buttons, Back and Forward, to navigate between your screens. But sometimes, you don't want navigation for specific screens, e.g. open a screen as modal "popup". The modal popup is just a detail of another screen and not a real navigation target.
It's possible to disable navigation for screens. You have different options:
- Implement the interface com.sibvisions.apps.vaadin.IIgnoreNavigation in your work-screen class
(best option for base work-screen classes) - Add the annotation com.sibvisions.apps.vaadin.IgnoreNavigation to your work-screen class
(good for specific work-screen classes) - Set the parameter #IGNORENAVIGATION, e.g.(good for on-demand work-screens)HashMap<String, Object> mpParams = new HashMap<String, Object>();
mpParams.put("#IGNORENAVIGATION", Boolean.TRUE);
getApplication().openWorkScreen(StatusWorkScreen.class.getName(), Modality.Modal, mpParams);
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1