Add navigation notification to CMS View.
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 26 Nov 2020 11:18:03 +0000 (12:18 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 26 Nov 2020 11:18:03 +0000 (12:18 +0100)
org.argeo.cms.ui.rap/src/org/argeo/cms/web/CmsWebEntryPoint.java
org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java

index 4dd19caa2b5cb40be692dea2179e0b5414254f93..1566f4c45ed54cf543efc905958f7a7fedc81c89 100644 (file)
@@ -231,6 +231,11 @@ public class CmsWebEntryPoint implements EntryPoint, CmsView, BrowserNavigationL
                eventAdmin.sendEvent(new Event(topic, properties));
        }
 
+       @Override
+       public void stateChanged(String state, String title) {
+               browserNavigation.pushState(state, title);
+       }
+
        /*
         * EntryPoint IMPLEMENTATION
         */
index 8011dce59a9af024ef40ecb025c30cde7e80be31..d57f20bed897a626da6e4d584180b7a7f6471f9e 100644 (file)
@@ -60,6 +60,9 @@ public interface CmsView {
        default <T> T doAs(PrivilegedAction<T> action) {
                throw new UnsupportedOperationException();
        }
+       
+       default void stateChanged(String state, String title) {
+       }
 
        static CmsView getCmsView(Control parent) {
                // find parent shell