improved navigation
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 20 Jul 2014 17:59:52 +0000 (20:59 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 20 Jul 2014 17:59:52 +0000 (20:59 +0300)
src/main/java/eu/svjatoslav/commons/network/navigation/Navigation.java

index ba6e730..339db68 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Svjatoslav Commons - shared library of common functionality.
  * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 3 of the GNU Lesser General Public License
  * or later as published by the Free Software Foundation.
@@ -73,13 +73,16 @@ public class Navigation {
                return result.toString();
        }
 
-       public void setDefaultNavigationItem(
+       public NavigationItem setDefaultNavigationItem(
                        final NavigationItem defaultNavigationItem) {
                this.defaultNavigationItem = defaultNavigationItem;
+               return defaultNavigationItem;
        }
 
-       public void setRootNavigationItem(final NavigationItem rootNavigationItem) {
+       public NavigationItem setRootNavigationItem(
+                       final NavigationItem rootNavigationItem) {
                this.rootNavigationItem = rootNavigationItem;
+               return rootNavigationItem;
        }
 
 }