package org.zanata.webtrans.client.history;

import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;

/**
 * JRE-safe class that wraps GWT's {@link com.google.gwt.user.client.History} class, allowing non-GWT testing of code that uses gwt's History mechanism.
 * 
 * @author David Mason, damason@redhat.com
 * 
 */
public interface History
{
   public HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> handler);

   public void back();

   public void fireCurrentHistoryState();

   public void forward();

   public String getToken();

   public void newItem(String historyToken);

   public void newItem(String historyToken, boolean issueEvent);
}

@@ -404,264 +404,745 @@
 %0A   
-public HandlerRegistration addValueChangeHandler(ValueChangeHandler%3CString%3E handler);%0A%0A   public void back();%0A%0A   public void fireCurrentHistoryState();%0A%0A   public void forward();%0A%0A   public String getToken();%0A%0A   public void newItem(String historyToken);%0A
+/** @see com.google.gwt.user.client.History#addValueChangeHandler(ValueChangeHandler) */%0A   public HandlerRegistration addValueChangeHandler(ValueChangeHandler%3CString%3E handler);%0A   /** @see com.google.gwt.user.client.History#back() */%0A   public void back();%0A   /** @see com.google.gwt.user.client.History#fireCurrentHistoryState() */%0A   public void fireCurrentHistoryState();%0A   /** @see com.google.gwt.user.client.History#forward() */%0A   public void forward();%0A   /** @see com.google.gwt.user.client.History#getToken() */%0A   public String getToken();%0A   /** @see com.google.gwt.user.client.History#newItem(String) */%0A   public void newItem(String historyToken);%0A   /** @see com.google.gwt.user.client.History#newItem(String, boolean) */
 %0A   

Add links to GWT History javadocs