// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/event/ActionEvent.java
// public class ActionEvent extends Event<ActionEvent.Handler> {
// 
// 	public interface Handler {
// 		void onAction(ActionEvent event);
// 	}
// 
// 	private static final Type<ActionEvent.Handler> TYPE = new Type<ActionEvent.Handler>();
// 
// 	public static void fire(EventBus eventBus, String sourceName) {
// 		eventBus.fireEventFromSource(new ActionEvent(), sourceName);
// 	}
// 
// 	public static HandlerRegistration register(EventBus eventBus,
// 			String sourceName, Handler handler) {
// 		
// 		return eventBus.addHandlerToSource(TYPE, sourceName, handler);
// 	}
// 
// 	@Override
// 	public Type<Handler> getAssociatedType() {
// 		return TYPE;
// 	}
// 
// 	@Override
// 	protected void dispatch(ActionEvent.Handler handler) {
// 		handler.onAction(this);
// 	}
// 
// 	protected ActionEvent() {
// 	}
// 	
// }
// 
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/event/ActionNames.java
// public interface ActionNames {
// 	public static final String BACK = "back";
// 	public static final String ANIMATION_END = "ae";
// }


import gov.wa.wsdot.apps.mgwt.client.event.ActionEvent;
import gov.wa.wsdot.apps.mgwt.client.event.ActionNames;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.History;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import com.googlecode.mgwt.dom.client.event.mouse.HandlerRegistrationCollection;
import com.googlecode.mgwt.mvp.client.history.HistoryHandler;
import com.googlecode.mgwt.mvp.client.history.HistoryObserver;
package gov.wa.wsdot.apps.mgwt.client;



public class AppHistoryObserver implements HistoryObserver {

	@Override
	public void onPlaceChange(Place place, HistoryHandler handler) {
	}

	@Override
	public void onHistoryChanged(Place place, HistoryHandler handler) {
	}

	@Override
	public void onAppStarted(Place place, HistoryHandler historyHandler) {
		onPhoneNav(place, historyHandler);
	}

	@Override
	public HandlerRegistration bind(EventBus eventBus, final HistoryHandler historyHandler) {
		
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/event/ActionEvent.java
// public class ActionEvent extends Event<ActionEvent.Handler> {
// 
// 	public interface Handler {
// 		void onAction(ActionEvent event);
// 	}
// 
// 	private static final Type<ActionEvent.Handler> TYPE = new Type<ActionEvent.Handler>();
// 
// 	public static void fire(EventBus eventBus, String sourceName) {
// 		eventBus.fireEventFromSource(new ActionEvent(), sourceName);
// 	}
// 
// 	public static HandlerRegistration register(EventBus eventBus,
// 			String sourceName, Handler handler) {
// 		
// 		return eventBus.addHandlerToSource(TYPE, sourceName, handler);
// 	}
// 
// 	@Override
// 	public Type<Handler> getAssociatedType() {
// 		return TYPE;
// 	}
// 
// 	@Override
// 	protected void dispatch(ActionEvent.Handler handler) {
// 		handler.onAction(this);
// 	}
// 
// 	protected ActionEvent() {
// 	}
// 	
// }
// 
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/event/ActionNames.java
// public interface ActionNames {
// 	public static final String BACK = "back";
// 	public static final String ANIMATION_END = "ae";
// }


// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/AppHistoryObserver.java
import gov.wa.wsdot.apps.mgwt.client.event.ActionEvent;
import gov.wa.wsdot.apps.mgwt.client.event.ActionNames;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.History;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import com.googlecode.mgwt.dom.client.event.mouse.HandlerRegistrationCollection;
import com.googlecode.mgwt.mvp.client.history.HistoryHandler;
import com.googlecode.mgwt.mvp.client.history.HistoryObserver;

package gov.wa.wsdot.apps.mgwt.client;



public class AppHistoryObserver implements HistoryObserver {

	@Override
	public void onPlaceChange(Place place, HistoryHandler handler) {
	}

	@Override
	public void onHistoryChanged(Place place, HistoryHandler handler) {
	}

	@Override
	public void onAppStarted(Place place, HistoryHandler historyHandler) {
		onPhoneNav(place, historyHandler);
	}

	@Override
	public HandlerRegistration bind(EventBus eventBus, final HistoryHandler historyHandler) {
		
		HandlerRegistration backButtonRegistration = ActionEvent.register(