// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/widget/button/image/MenuImageButton.java
// public class MenuImageButton extends ImageButton {
// 
// 	public MenuImageButton() {
// 		super(LocalImageHolder.get().menu());
// 	}
// 
// }
// 
// 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.List;
import gov.wa.wsdot.apps.mgwt.client.widget.button.image.MenuImageButton;
import gov.wa.wsdot.apps.mgwt.shared.Topic;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.mgwt.dom.client.event.tap.TapEvent;
import com.googlecode.mgwt.ui.client.widget.list.celllist.BasicCell;
import com.googlecode.mgwt.ui.client.widget.list.celllist.CellList;
import com.googlecode.mgwt.ui.client.widget.list.celllist.CellSelectedEvent;
import com.googlecode.mgwt.ui.client.widget.panel.scroll.ScrollPanel;
	CellList<Topic> cellList;
	
	private Presenter presenter;

	public HomeViewGwtImpl() {
	    
        cellList = new CellList<Topic>(new BasicCell<Topic>() {

            @Override
            public String getDisplayString(Topic model) {
                return model.getName();
            }

            @Override
            public boolean canBeSelected(Topic model) {
                return true;
            }
        });
		
		initWidget(uiBinder.createAndBindUi(this));

	}

	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
	}

	@UiHandler("menuButton")
	protected void onMenuButtonPressed(TapEvent event) {
// Path: archetypes/mgwt-basic-swipemenu/src/main/java/gov/wa/wsdot/apps/mgwt/client/widget/button/image/MenuImageButton.java
// public class MenuImageButton extends ImageButton {
// 
// 	public MenuImageButton() {
// 		super(LocalImageHolder.get().menu());
// 	}
// 
// }
// 
// 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/home/HomeViewGwtImpl.java
import java.util.List;
import gov.wa.wsdot.apps.mgwt.client.widget.button.image.MenuImageButton;
import gov.wa.wsdot.apps.mgwt.shared.Topic;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.mgwt.dom.client.event.tap.TapEvent;
import com.googlecode.mgwt.ui.client.widget.list.celllist.BasicCell;
import com.googlecode.mgwt.ui.client.widget.list.celllist.CellList;
import com.googlecode.mgwt.ui.client.widget.list.celllist.CellSelectedEvent;
import com.googlecode.mgwt.ui.client.widget.panel.scroll.ScrollPanel;

	CellList<Topic> cellList;
	
	private Presenter presenter;

	public HomeViewGwtImpl() {
	    
        cellList = new CellList<Topic>(new BasicCell<Topic>() {

            @Override
            public String getDisplayString(Topic model) {
                return model.getName();
            }

            @Override
            public boolean canBeSelected(Topic model) {
                return true;
            }
        });
		
		initWidget(uiBinder.createAndBindUi(this));

	}

	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
	}

	@UiHandler("menuButton")
	protected void onMenuButtonPressed(TapEvent event) {
	    if (presenter != null) {