// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/ClientFactory.java
// public interface ClientFactory {
//     EventBus getEventBus();
//     PlaceController getPlaceController();
//     AnalyticsView getAnalyticsView();
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/activities/events/DateSubmitEvent.java
// public class DateSubmitEvent extends GenericEvent {
// 
// 
//     private final String dateRange;
//     private final String account;
//     private final Date startDate;
//     private final Date endDate;
// 
//     public DateSubmitEvent(String dateRange, Date startDate, Date endDate, String account) {
//         this.dateRange = dateRange;
//         this.account = account;
//         this.startDate = startDate;
//         this.endDate = endDate;
//     }
// 
//     public String getDateRange() {
//         return this.dateRange;
//     }
// 
//     public String getAccount() {
//         return this.account;
//     }
// 
//     public Date getStartDate(){ return this.startDate;}
// 
//     public Date getEndDate(){ return this.endDate;}
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/resources/Resources.java
// public interface Resources extends ClientBundle {
// 	public static final Resources INSTANCE = GWT.create(Resources.class);
// 	
//     @Source("GlobalStyles.css")
//     public Styles css();
// 
//     @Source("WSDOTacronymWhite.png")
//     ImageResource tacronymWhiteLogoPNG();
// 
//     public interface Styles extends CssResource {
//         // CSS classes
// 
//         String loader();
// 
//         String logo();
// 
//         // Graph
//         String graphBlock();
//         String overflowHidden();
//     }
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/shared/Mention.java
// public class Mention extends JavaScriptObject {
// 	protected Mention() {}
// 	
// 	public final native String getText() /*-{ return this.text }-*/;
// 	public final native String getProfileImageUrl() /*-{ return this.profile_image_url }-*/;
// 	public final native String getToUserIdStr() /*-{ return this.to_user_id_str }-*/;
// 	public final native String getFromUser() /*-{ return this.from_user }-*/;
// 	public final native int getFromUserId() /*-{ return this.from_user_id }-*/;
// 	public final native int getToUserId() /*-{ return this.to_user_id }-*/;
// 	public final native String getGeo() /*-{ return this.geo }-*/;
// 	public final native double getId() /*-{ return this.id }-*/;
// 	public final native String getIsoLanguageCode() /*-{ return this.iso_language_code }-*/;
// 	public final native String getFromUserIdStr() /*-{ return this.from_user_id_str }-*/;
// 	public final native String getSource() /*-{ return this.source }-*/;
// 	public final native String getIdStr() /*-{ return this.id_str }-*/;
// 	public final native String getCreatedAt() /*-{ return this.created_at }-*/;
// 	public final native String getSentiment() /*-{ return this.sentiment }-*/;
// 	public final native Entities getEntities() /*-{ return this.entities }-*/;
// 	public final native JsArray<Mention> getMentions() /*-{ return this }-*/;
// 	public final native User getUser() /*-{ return this.user }-*/;
// 	public final native int getRetweet() /*-{ return this.retweet_count }-*/;
// 	public final native int getFavorited() /*-{ return this.favorite_count }-*/;
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/util/Consts.java
// public final class Consts {
// 
//     public static final String HOST_URL = "http://127.0.0.1:3001";
// 
//     public static final String DEFAULT_ACCOUNT = "wsdot";
// 
//     /**
//      * The caller references the constants using <tt>Consts.EMPTY_STRING</tt>,
//      * and so on. Thus, the caller should be prevented from constructing objects of
//      * this class, by declaring this private constructor.
//      */
//     private Consts() {
//         //this prevents even the native class from
//         //calling this ctor as well :
//         throw new AssertionError();
//     }
// 
// }


import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.jsonp.client.JsonpRequestBuilder;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.web.bindery.event.shared.binder.EventBinder;
import com.google.web.bindery.event.shared.binder.EventHandler;
import gov.wa.wsdot.apps.analytics.client.ClientFactory;
import gov.wa.wsdot.apps.analytics.client.activities.events.DateSubmitEvent;
import gov.wa.wsdot.apps.analytics.client.resources.Resources;
import gov.wa.wsdot.apps.analytics.shared.Mention;
import gov.wa.wsdot.apps.analytics.util.Consts;
import gwt.material.design.client.constants.IconType;
import gwt.material.design.client.ui.*;
import java.util.Date;

    @UiField
    static
    MaterialPreLoader loader;

    @UiField
    static
    MaterialCollection mostRetweet;

    @UiField
    static
    MaterialCollection mostLiked;
    @UiField
    static
    MaterialCollection leastRetweet;

    @UiField
    static
    MaterialCollection leastLiked;

    @UiField
    static
    MaterialLink retweetTab;

    @UiField
    static
    MaterialLink likeTab;

    final Resources res;

// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/ClientFactory.java
// public interface ClientFactory {
//     EventBus getEventBus();
//     PlaceController getPlaceController();
//     AnalyticsView getAnalyticsView();
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/activities/events/DateSubmitEvent.java
// public class DateSubmitEvent extends GenericEvent {
// 
// 
//     private final String dateRange;
//     private final String account;
//     private final Date startDate;
//     private final Date endDate;
// 
//     public DateSubmitEvent(String dateRange, Date startDate, Date endDate, String account) {
//         this.dateRange = dateRange;
//         this.account = account;
//         this.startDate = startDate;
//         this.endDate = endDate;
//     }
// 
//     public String getDateRange() {
//         return this.dateRange;
//     }
// 
//     public String getAccount() {
//         return this.account;
//     }
// 
//     public Date getStartDate(){ return this.startDate;}
// 
//     public Date getEndDate(){ return this.endDate;}
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/resources/Resources.java
// public interface Resources extends ClientBundle {
// 	public static final Resources INSTANCE = GWT.create(Resources.class);
// 	
//     @Source("GlobalStyles.css")
//     public Styles css();
// 
//     @Source("WSDOTacronymWhite.png")
//     ImageResource tacronymWhiteLogoPNG();
// 
//     public interface Styles extends CssResource {
//         // CSS classes
// 
//         String loader();
// 
//         String logo();
// 
//         // Graph
//         String graphBlock();
//         String overflowHidden();
//     }
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/shared/Mention.java
// public class Mention extends JavaScriptObject {
// 	protected Mention() {}
// 	
// 	public final native String getText() /*-{ return this.text }-*/;
// 	public final native String getProfileImageUrl() /*-{ return this.profile_image_url }-*/;
// 	public final native String getToUserIdStr() /*-{ return this.to_user_id_str }-*/;
// 	public final native String getFromUser() /*-{ return this.from_user }-*/;
// 	public final native int getFromUserId() /*-{ return this.from_user_id }-*/;
// 	public final native int getToUserId() /*-{ return this.to_user_id }-*/;
// 	public final native String getGeo() /*-{ return this.geo }-*/;
// 	public final native double getId() /*-{ return this.id }-*/;
// 	public final native String getIsoLanguageCode() /*-{ return this.iso_language_code }-*/;
// 	public final native String getFromUserIdStr() /*-{ return this.from_user_id_str }-*/;
// 	public final native String getSource() /*-{ return this.source }-*/;
// 	public final native String getIdStr() /*-{ return this.id_str }-*/;
// 	public final native String getCreatedAt() /*-{ return this.created_at }-*/;
// 	public final native String getSentiment() /*-{ return this.sentiment }-*/;
// 	public final native Entities getEntities() /*-{ return this.entities }-*/;
// 	public final native JsArray<Mention> getMentions() /*-{ return this }-*/;
// 	public final native User getUser() /*-{ return this.user }-*/;
// 	public final native int getRetweet() /*-{ return this.retweet_count }-*/;
// 	public final native int getFavorited() /*-{ return this.favorite_count }-*/;
// }
// 
// Path: src/main/java/gov/wa/wsdot/apps/analytics/util/Consts.java
// public final class Consts {
// 
//     public static final String HOST_URL = "http://127.0.0.1:3001";
// 
//     public static final String DEFAULT_ACCOUNT = "wsdot";
// 
//     /**
//      * The caller references the constants using <tt>Consts.EMPTY_STRING</tt>,
//      * and so on. Thus, the caller should be prevented from constructing objects of
//      * this class, by declaring this private constructor.
//      */
//     private Consts() {
//         //this prevents even the native class from
//         //calling this ctor as well :
//         throw new AssertionError();
//     }
// 
// }


// Path: src/main/java/gov/wa/wsdot/apps/analytics/client/activities/twitter/view/ranking/RankingView.java
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.jsonp.client.JsonpRequestBuilder;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.web.bindery.event.shared.binder.EventBinder;
import com.google.web.bindery.event.shared.binder.EventHandler;
import gov.wa.wsdot.apps.analytics.client.ClientFactory;
import gov.wa.wsdot.apps.analytics.client.activities.events.DateSubmitEvent;
import gov.wa.wsdot.apps.analytics.client.resources.Resources;
import gov.wa.wsdot.apps.analytics.shared.Mention;
import gov.wa.wsdot.apps.analytics.util.Consts;
import gwt.material.design.client.constants.IconType;
import gwt.material.design.client.ui.*;
import java.util.Date;


    @UiField
    static
    MaterialPreLoader loader;

    @UiField
    static
    MaterialCollection mostRetweet;

    @UiField
    static
    MaterialCollection mostLiked;
    @UiField
    static
    MaterialCollection leastRetweet;

    @UiField
    static
    MaterialCollection leastLiked;

    @UiField
    static
    MaterialLink retweetTab;

    @UiField
    static
    MaterialLink likeTab;

    final Resources res;

    public RankingView(ClientFactory clientFactory) {