Revision: 844
          http://stripes.svn.sourceforge.net/stripes/?rev=844&view=rev
Author:   bengunter
Date:     2008-02-06 17:50:50 -0800 (Wed, 06 Feb 2008)

Log Message:
-----------
More STS-457. Both setEvent and setAnchor return this.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java

Modified: trunk/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java      
2008-02-06 14:11:08 UTC (rev 843)
+++ trunk/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java      
2008-02-07 01:50:50 UTC (rev 844)
@@ -172,8 +172,9 @@
      * 
      * @param event the event name
      */
-    public void setEvent(String event) {
+    public UrlBuilder setEvent(String event) {
         this.event = new Parameter(UrlBindingParameter.PARAMETER_NAME_EVENT, 
event);
+        return this;
     }
 
     /**
@@ -275,13 +276,14 @@
      *
      * @param anchor the anchor with or without the leading pound sign, or 
null to disable
      */
-    public void setAnchor(String anchor) {
+    public UrlBuilder setAnchor(String anchor) {
         if (anchor != null && anchor.startsWith("#") && anchor.length() > 1) {
             this.anchor = anchor.substring(1);
         }
         else {
             this.anchor = anchor;
         }
+        return this;
     }
 
     /**


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to