// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/ClientFactory.java
// public interface ClientFactory {
// 
// 	public HomeView getHomeView();
// 	public EventBus getEventBus();
// 	public PlaceController getPlaceController();
// 	public SwipeMenu getSwipeMenu();
// 	
// 	/**
// 	 * @return
// 	 */
// 	public AboutView getAboutView();
// 	public SampleView getSampleView();
//         public MenuView getMenuView();
// }
// 
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/activities/about/AboutPlace.java
// public class AboutPlace extends Place {
// 	
// 	public static class AboutPlaceTokenizer implements
// 			PlaceTokenizer<AboutPlace> {
// 
// 		@Override
// 		public AboutPlace getPlace(String token) {
// 			return new AboutPlace();
// 		}
// 
// 		@Override
// 		public String getToken(AboutPlace place) {
// 			return "";
// 		}
// 
// 	}
// }
// 
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/shared/Topic.java
// public class Topic implements Serializable {
// 
// 	private static final long serialVersionUID = -134211444131752658L;
// 	private String name;
// 
// 	public Topic() {
// 	}
// 
// 	public Topic(String name) {
// 		this.name = name;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// }


import java.util.ArrayList;
import java.util.List;
import gov.wa.wsdot.apps.mgwt.client.ClientFactory;
import gov.wa.wsdot.apps.mgwt.client.activities.about.AboutPlace;
import gov.wa.wsdot.apps.mgwt.shared.Topic;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.web.bindery.event.shared.EventBus;
import com.googlecode.mgwt.mvp.client.MGWTAbstractActivity;
	@Override
	public void onStop() {
		view.setPresenter(null);
	}

	@Override
	public void onItemSelected(int index) {
		if (index == 0) {
		    clientFactory.getSwipeMenu().close(false);
			//clientFactory.getPlaceController().goTo(new MenuItemOnePlace());
			return;
		}
		if (index == 1) {
		    clientFactory.getSwipeMenu().close(false);
            //clientFactory.getPlaceController().goTo(new MenuItemTwoPlace());
		    return;
		}
		if (index == 2) {
		    clientFactory.getSwipeMenu().close(false);
			//clientFactory.getPlaceController().goTo(new MenuItemThreePlace());
			return;
		}		
	}
	
    @Override
    public void onAboutButtonPressed() {
        clientFactory.getSwipeMenu().close(false);
        clientFactory.getPlaceController().goTo(new AboutPlace());
    }
	
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/ClientFactory.java
// public interface ClientFactory {
// 
// 	public HomeView getHomeView();
// 	public EventBus getEventBus();
// 	public PlaceController getPlaceController();
// 	public SwipeMenu getSwipeMenu();
// 	
// 	/**
// 	 * @return
// 	 */
// 	public AboutView getAboutView();
// 	public SampleView getSampleView();
//         public MenuView getMenuView();
// }
// 
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/activities/about/AboutPlace.java
// public class AboutPlace extends Place {
// 	
// 	public static class AboutPlaceTokenizer implements
// 			PlaceTokenizer<AboutPlace> {
// 
// 		@Override
// 		public AboutPlace getPlace(String token) {
// 			return new AboutPlace();
// 		}
// 
// 		@Override
// 		public String getToken(AboutPlace place) {
// 			return "";
// 		}
// 
// 	}
// }
// 
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/shared/Topic.java
// public class Topic implements Serializable {
// 
// 	private static final long serialVersionUID = -134211444131752658L;
// 	private String name;
// 
// 	public Topic() {
// 	}
// 
// 	public Topic(String name) {
// 		this.name = name;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// }


// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/activities/MenuActivity.java
import java.util.ArrayList;
import java.util.List;
import gov.wa.wsdot.apps.mgwt.client.ClientFactory;
import gov.wa.wsdot.apps.mgwt.client.activities.about.AboutPlace;
import gov.wa.wsdot.apps.mgwt.shared.Topic;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.web.bindery.event.shared.EventBus;
import com.googlecode.mgwt.mvp.client.MGWTAbstractActivity;

	@Override
	public void onStop() {
		view.setPresenter(null);
	}

	@Override
	public void onItemSelected(int index) {
		if (index == 0) {
		    clientFactory.getSwipeMenu().close(false);
			//clientFactory.getPlaceController().goTo(new MenuItemOnePlace());
			return;
		}
		if (index == 1) {
		    clientFactory.getSwipeMenu().close(false);
            //clientFactory.getPlaceController().goTo(new MenuItemTwoPlace());
		    return;
		}
		if (index == 2) {
		    clientFactory.getSwipeMenu().close(false);
			//clientFactory.getPlaceController().goTo(new MenuItemThreePlace());
			return;
		}		
	}
	
    @Override
    public void onAboutButtonPressed() {
        clientFactory.getSwipeMenu().close(false);
        clientFactory.getPlaceController().goTo(new AboutPlace());
    }
	
	private List<Topic> createTopicsList() {