diff dwt/browser/LocationEvent.d @ 288:4ee8c4237614

old branches... commit by mistake
author John Reimer<terminal.node@gmail.com>
date Tue, 05 Aug 2008 18:00:50 -0700
parents 44258e0b6687
children eec6ddb07873
line wrap: on
line diff
--- a/dwt/browser/LocationEvent.d	Tue Aug 05 10:12:22 2008 -0700
+++ b/dwt/browser/LocationEvent.d	Tue Aug 05 18:00:50 2008 -0700
@@ -7,6 +7,8 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ * Port to the D programming language:
+ *      John Reimer <terminal.node@gmail.com>
  *******************************************************************************/
 module dwt.browser.LocationEvent;
 
@@ -25,7 +27,7 @@
  * 
  * @since 3.0
  */
-public class LocationEvent extends TypedEvent {
+public class LocationEvent : TypedEvent {
     /** current location */
     public String location;
     
@@ -53,12 +55,8 @@
  *
  * @return a string representation of the event
  */
-public String toString() {
-    String string = super.toString ();
-    return string.substring (0, string.length() - 1) // remove trailing '}'
-        + " location=" + location
-        + " top=" + top
-        + " doit=" + doit
-        + "}";
+public override String toString() {
+    return Format( "{} {location = {}, top = {}, doit = {}}", 
+        super.toString[1 .. $-2], location, top, doit );  
 }
 }