Example usage for com.google.gwt.user.client Window enableScrolling

List of usage examples for com.google.gwt.user.client Window enableScrolling

Introduction

In this page you can find the example usage for com.google.gwt.user.client Window enableScrolling.

Prototype

public static void enableScrolling(boolean enable) 

Source Link

Usage

From source file:org.ednovo.gooru.client.mvp.home.GooruGuideInfoVc.java

License:Open Source License

/**
 * Update user view flag , which is used to find out the first signin of the user 
 * @param clickEvent instance of {@link ClickEvent}
 *//*from   w  w w  .j a v  a  2s.  c  o  m*/
@UiHandler("guideSlideHomeBtnUc")
public void slideToHomePopUp(ClickEvent clickEvent) {
    this.hide();
    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
    AppClientFactory.getInjector().getUserService().updateUserViewFlag(
            AppClientFactory.getLoggedInUser().getGooruUId(), 2, new SimpleAsyncCallback<UserDo>() {
                @Override
                public void onSuccess(UserDo newUser) {
                    UserDo user = AppClientFactory.getLoggedInUser();
                    user.setViewFlag(newUser.getViewFlag());
                    AppClientFactory.setLoggedInUser(user);
                }
            });
}

From source file:org.ednovo.gooru.client.mvp.home.HeaderUc.java

License:Open Source License

/**
 * Class constructor , set logged in user , gooru classic view link
 *//*  w  ww .j  a v a 2 s. c o m*/
public HeaderUc() {
    this.res = GooruCBundle.INSTANCE;
    res.css().ensureInjected();
    autokeySuggestOracle = new AppMultiWordSuggestOracle(true);
    setEditSearchTxtBox(new AppSuggestBox(autokeySuggestOracle) {

        @Override
        public HandlerRegistration addClickHandler(ClickHandler handler) {
            return null;
        }

        @Override
        public void keyAction(String text) {
            MixpanelUtil.Search_autocomplete_select();
            autokeySuggestOracle.clear();

            autoSuggestKeywordDo.setQuery(text);
            searchData = getEditSearchTxtBox().getText();
            autoSuggestKeywordDo.setType("resource");
            if (text != null && text.trim().length() > 0) {
                requestAutoSuggestKeyword(autoSuggestKeywordDo);
            } else {
                getEditSearchTxtBox().hideSuggestionList();
            }

        }

    });
    getEditSearchTxtBox().addSelectionHandler(this);
    getEditSearchTxtBox().setPopupStyleName("shelfEditSearchTextBox");
    initWidget(uiBinder.createAndBindUi(this));

    headerMainPanel.getElement().setAttribute("id", "headerMainPanel");

    logoutPanelVc = new LogoutPanelVc();

    saveSharePanel = new SaveSharePanel() {

        @Override
        @UiHandler("closeButton")
        public void closeButton(ClickEvent clickEvent) {
            isGooruGuidePanelOpen = false;
            Window.enableScrolling(true);
            hide();
        }
    };

    mainDotsPanel.setVisible(false);
    logoutPanelVc.setStyleName(GooruCBundle.INSTANCE.css().logoutPanel());
    editSearchInputFloPanel.setVisible(false);
    LoginLinkContainer.setVisible(false);
    loggedInfoLbl.setVisible(false);
    logoutDownArrowLbl.setVisible(false);

    /*
     * classCodeTxtBox.setText("");
     * classCodeTxtBox.getElement().setAttribute("maxlength", "10");
     * classCodeTxtBox.getElement().setId("txtClassCode");
     */

    StudyLbl.addClickHandler(new studyClickHandler());
    /*   getEditSearchTxtBox().addKeyUpHandler(new SearchKeyUpHandler());*/
    getEditSearchTxtBox().addKeyDownHandler(new SearchKeyDownHandler());
    editSearchInputFloPanel.setVisible(false);
    // gooruGuideImgLbl.setStyleName(GooruCBundle.INSTANCE.css().gooruGuideImg());
    this.switchToClassicView();
    headerSearchBarVerPanel.setCellVerticalAlignment(headerSearchBarFloPanel,
            HasVerticalAlignment.ALIGN_MIDDLE);

    noneMenu = new Label();

    discoverLink.getParent().getElement().setId("LinkheaderElement1");
    organizeLink.getParent().getElement().setId("LinkheaderElement2");
    teachLink.getParent().getElement().setId("LinkheaderElement3");
    studyLink.getParent().getElement().setId("LinkheaderElement4");
    loggedInfoLbl.getParent().getElement().setId("LinkheaderElement5");

    discoverLink.getParent().setStyleName(GooruCBundle.INSTANCE.css().menu());

    noneMenu = new Label();

    activateOnlyDiscover();

    discoverLinkContainer.addClickHandler(new OnClickDiscoverEventHandler());

    organizeLinkContainer.addClickHandler(new OnClickOrganizeEventHandler());

    teachLinkContainer.addClickHandler(new OnClickTeachEventHandler());

    studyLinkContainer.addClickHandler(new studyClickHandler());

    // gooruClassicViewLbl.setText(MessageProperties.GL0094);
    getEditSearchTxtBox().getElement().setId("txtEditSearch");
    editSearchBtn.getElement().setId("btnEditSearch");
    editSearchBtn.setText(GL0176);
    confirmEmailText.getElement().setAttribute("style", "float: left;");
    confirmEmailText.setText(GL1248);
    resendEmailAncr.getElement().setAttribute("style", "float: left;padding-left:5px;");
    resendEmailAncr.setText(GL1249 + GL_GRR_COMMA);
    thanksLbl.getElement().setAttribute("style", "padding-left:5px;");
    thanksLbl.setText(GL0498 + GL_SPL_EXCLAMATION);
    getEditSearchTxtBox().getElement().setAttribute("placeholder", GL0177);
    lblBeta.setText(GL0178);
    discoverLink.setText(GL0179);
    organizeLink.setText(GL0180);
    teachLink.setText(GL0181);
    studyLink.setText(GL0182);
    loggedInfoLbl.setText(GL0183);
    // classCodeTxtBox.setPlaceholder(MessageProperties.GL0184);
    StudyLbl.setText(GL0185);
    StudyLbl.getElement().setId("btnStudy");
    registerLinkLbl.setText(GL0186);
    loginLink.setText(GL0187);
    loginLink.getElement().setId("lblLogin");
    registerLinkLbl.getElement().setId("lblRegister");
    discoverLinkContainer.addMouseOverHandler(new DiscoverMouseOver());
    discoverLinkContainer.addMouseOutHandler(new DiscoverMouseOut());
    ClickHandler eve1 = new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            if (!isSettingIcon) {
                isOpenSettingDropDown = true;
            } else {
                isSettingIcon = false;
            }
            if (!isStudyNow && studyNowToolTip != null) {
                isClassCodePopupOpen = true;
                studyNowToolTip.hide();
                studyNowToolTip.getClassCodeTxtBox().setText("");
            } else {
                isStudyNow = false;
            }
            /*if(!isDiscover && discoverToolTip != null){
               isOpenDiscoverTooltp=true;
               discoverToolTip.hide();
            }else{
               isDiscover=false;
            }*/
        }
    };
    acctActivationPl.setVisible(false);
    resendEmailAncr.addClickHandler(new ResendEmailConfirmation());

    // goToClasicGooruPanel.setVisible(false);
    // goToClasicInnerPanel.getElement().setAttribute("id",
    // "goToClasicInnerPanel");
    // goToClasicGooruPanel.getElement().getStyle().setVisibility(Visibility.HIDDEN);
    if (!AppClientFactory.isAnonymous()) {
        if (AppClientFactory.getLoggedInUser().getConfirmStatus() == 0) {
            acctActivationPl.setVisible(true);
        }
    } else {
        acctActivationPl.setVisible(false);
    }

    ClickHandler dotsClick = new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            getEditSearchTxtBox().setText("");
        }
    };
    mainDotsPanel.addDomHandler(dotsClick, ClickEvent.getType());

    AppClientFactory.getEventBus().addHandler(SetHeaderEvent.TYPE, setHeader);
    AppClientFactory.getEventBus().addHandler(SetHeaderZIndexEvent.TYPE, setZindex);
    AppClientFactory.getEventBus().addHandler(ClearClasspageListEvent.TYPE, clearHandler);
    AppClientFactory.getEventBus().addHandler(OpenClasspageListEvent.TYPE, openClasspageListHandler);
    AppClientFactory.getEventBus().addHandler(ConfirmStatusPopupEvent.TYPE, confirmUser);

    AppClientFactory.getEventBus().addHandler(DeleteClasspageListEvent.TYPE, deleteHandler);

    RootPanel.get().addDomHandler(eve1, ClickEvent.getType());

    /*
     * if((AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens
     * .SHELF))||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(
     * PlaceTokens
     * .STUDY)||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase
     * (PlaceTokens
     * .TEACH)))||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase
     * (PlaceTokens
     * .SETTINGS))||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase
     * (PlaceTokens.PROFILE_PAGE))){ editSearchTxtBox.setText(""); }
     */
    discoverLinkUrl = null;
}

From source file:org.ednovo.gooru.client.mvp.home.HeaderUc.java

License:Open Source License

/**
 * View sign out popup//from w  w w . j  a  va 2 s.co m
 * 
 * @param clickEvent
 *            instance of {@link ClickEvent}
 */
@UiHandler("LoginLinkContainer")
public void signoutPanel(ClickEvent clickEvent) {

    /*
     * int left = logoutDownArrowLbl.getAbsoluteLeft() - 85; int top =
     * logoutDownArrowLbl.getAbsoluteTop() + 13; showLogoutPopup(left, top);
     */
    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(99, true));
    Element e = null;
    if ((e = clickEvent.getRelativeElement()) != null) {
        if (e.getInnerHTML() != null && e.getInnerHTML().contains("gwt-Label"))
            MixpanelUtil.Click_Discover_LandingPage();
    }
    manageDotsMenuSelection(loggedInfoLbl);
    Map<String, String> params = new HashMap<String, String>();
    params.put("id", userDo.getGooruUId());
    params.put("user", userDo.getUsername());
    MixpanelUtil.Click_On_UserName();
    AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.PROFILE_PAGE, params);

}

From source file:org.ednovo.gooru.client.mvp.home.HeaderUc.java

License:Open Source License

/**
 * Search resource by entered keyword/*from   ww  w . j  a va  2s.  co  m*/
 * 
 * @param clickEvent
 *            instance of {@link ClickEvent}
 */
@UiHandler("editSearchBtn")
public void OnSearchClick(ClickEvent clickEvent) {
    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
    if (getEditSearchTxtBox().getText() != null && getEditSearchTxtBox().getText().length() > 0) {
        savePlaceRequest();
        MixpanelUtil.Perform_Search(getEditSearchTxtBox().getText().trim().toLowerCase(), "HeaderUc");
        Map<String, String> params = new HashMap<String, String>();
        params = updateParams(params);
        if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.COLLECTION_SEARCH)) {
            AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.COLLECTION_SEARCH, params);
        } else {
            String queryVal = params.get("query");
            //queryVal = queryVal.replaceAll("%5C1", "&");
            Map<String, String> map = params;
            map.put("query", queryVal);
            AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.RESOURCE_SEARCH, map);
        }
        AppClientFactory.fireEvent(new HomeEvent(HeaderTabType.NONE));
        getEditSearchTxtBox().hideSuggestionList();
    }

    if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.SHELF)) {
        MixpanelUtil.mixpanelEvent("Perform_Search_FromOrganize");
    } else if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.STUDY)) {
        MixpanelUtil.mixpanelEvent("Perform_Search_FromStudy");
    } else if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.SETTINGS)) {
        MixpanelUtil.mixpanelEvent("Perform_Search_FromSettings");
    } else if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.PROFILE_PAGE)) {
        MixpanelUtil.mixpanelEvent("Perform_Search_FromProfile");
    } else if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.EDIT_CLASSPAGE)) {
        MixpanelUtil.mixpanelEvent("Perform_Search_FromTeach");
    } else if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.HOME)) {
        MixpanelUtil.mixpanelEvent("Perform_Search_FromLandingPage");
        if (AppClientFactory.isAnonymous()) {
            MixpanelUtil.mixpanelEvent("Perform_Search_FromLandingPage_Loggedout");
        } else {
            MixpanelUtil.mixpanelEvent("Perform_Search_FromLandingPage_Loggedin");
        }
        if (AppClientFactory.getPlaceManager().getRequestParameter("courseId") != null) {
            MixpanelUtil.mixpanelEvent("Perform_Search_FromCoursePage");
        }
        if (AppClientFactory.getPlaceManager().getRequestParameter("page") != null && AppClientFactory
                .getPlaceManager().getRequestParameter("page").equalsIgnoreCase("featured-contributors")) {
            MixpanelUtil.mixpanelEvent("Perform_Search_FromContributorsPage");
        }
    }
    if (hasAutoSelected) {
        MixpanelUtil.mixpanelEvent("Select_Autocomplete_Search");
    }

}

From source file:org.ednovo.gooru.client.mvp.home.HeaderUc.java

License:Open Source License

@Override
public void onSelection(SelectionEvent<Suggestion> event) {
    String searchText = editSearchTxtBox.getText();
    searchText = searchText.replaceAll("-<n> Gooru Search</n>", "");
    editSearchTxtBox.setText(searchText.trim());
    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
    if (editSearchTxtBox.getText() != null && editSearchTxtBox.getText().length() > 0) {
        MixpanelUtil.Perform_Search(editSearchTxtBox.getText().trim().toLowerCase(), "HeaderUc");
        Map<String, String> params = new HashMap<String, String>();
        params = updateParams(params);/*from   w  w w  .j  a v  a 2s  . co  m*/
        savePlaceRequest();
        if (AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens.COLLECTION_SEARCH)) {
            AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.COLLECTION_SEARCH, params);
        } else {
            String queryVal = params.get("query");
            //queryVal = queryVal.replaceAll("%5C1", "&");
            Map<String, String> map = params;
            map.put("query", queryVal);
            AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.RESOURCE_SEARCH, map);
        }
        editSearchTxtBox.setText("");
        AppClientFactory.fireEvent(new HomeEvent(HeaderTabType.DISCOVER));
        editSearchTxtBox.hideSuggestionList();
    }

    hasAutoSelected = true;
    MixpanelUtil.mixpanelEvent("Select_Autocomplete_Search");
    getEditSearchTxtBox().setText(searchText.trim());

}

From source file:org.ednovo.gooru.client.mvp.home.HomePresenter.java

License:Open Source License

private void callBackMethods() {

    if (AppClientFactory.getLoggedInUser().getConfirmStatus() == 0) {
        AppClientFactory.fireEvent(new ConfirmStatusPopupEvent(true));
    }//from   w  w  w  . ja va  2  s .  co  m
    if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("registration")) {
        this.getUserService().getRegistredUserDetails(
                AppClientFactory.getPlaceManager().getRequestParameter(GOORU_UID),
                getRegisterdUserAsyncCallback());
        parentGooruUID = AppClientFactory.getPlaceManager().getRequestParameter(GOORU_UID);
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("changePassword")) {
        getView().resetPassword(AppClientFactory.getPlaceManager().getRequestParameter("resetToken"));
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("register")) {
        getView().registerPopup();
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("signup")) {
        //To show SignUp (Registration popup)
        if (AppClientFactory.isAnonymous()) {
            Window.enableScrolling(false);
            AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false));
            String type = getPlaceManager().getRequestParameter("type");
            int displayScreen = getPlaceManager().getRequestParameter("type") != null ? Integer.parseInt(type)
                    : 1;
            signUpViewPresenter.displayPopup(displayScreen);
            addToPopupSlot(signUpViewPresenter);
        }
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("registerChild")) {
        if (getPlaceManager().getRequestParameter("dob") != null
                && getPlaceManager().getRequestParameter("userName") != null) {
            String externalId = AppClientFactory.getLoggedInUser().getExternalId();
            String email = AppClientFactory.getLoggedInUser().getEmailId();

            String parentEmailId = email != null && !email.equalsIgnoreCase("") ? email
                    : externalId != null && externalId.equalsIgnoreCase("") ? externalId : null;
            String parameterEmailId = getPlaceManager().getRequestParameter("emailId", null);
            parentEmailId = parameterEmailId != null && !parameterEmailId.equalsIgnoreCase("")
                    ? parameterEmailId
                    : parentEmailId;

            StudentSignUpUc studentSignUp = new StudentSignUpUc(parentEmailId,
                    getPlaceManager().getRequestParameter("userName"),
                    getPlaceManager().getRequestParameter("dob").replaceAll("D", "\\/"),
                    AppClientFactory.isAnonymous() ? getPlaceManager().getRequestParameter("privateGooruUId")
                            : AppClientFactory.getLoggedInUser().getGooruUId());
            studentSignUp.center();
            studentSignUp.show();
        }
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("guide")) {

    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("profileUpdate")) {
        if (AppClientFactory.isAnonymous()) {
            AppClientFactory.fireEvent(new InvokeLoginEvent());
        } else {
            signUpCompletePresenter.displayView();
            addToPopupSlot(signUpCompletePresenter);
        }
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("turn13")) {
        if (AppClientFactory.isAnonymous()) {
            AppClientFactory.fireEvent(new InvokeLoginEvent());
        } else {
            if (!signUpAfterThirteenPresenter.isVisible()) {
                signUpAfterThirteenPresenter.displayView();
                addToPopupSlot(signUpAfterThirteenPresenter);
            }
        }
    } else if (getPlaceManager().getRequestParameter(CALLBACK) != null
            && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("confirmUser")) {
        //SignUpGradeCourseView gradeCourseView = new SignUpGradeCourseView(AppClientFactory.getLoggedInUser());
        //Check if user is logged or not.
        if (AppClientFactory.isAnonymous()) {
            //If not Open Login Popup
            AppClientFactory.fireEvent(new InvokeLoginEvent());
        } else {
            if (AppClientFactory.getLoggedInUser().getConfirmStatus() == 0) {
                String gooruUid = getPlaceManager().getRequestParameter("gooruuid") != null
                        ? getPlaceManager().getRequestParameter("gooruuid")
                        : "";
                String token = getPlaceManager().getRequestParameter("sessionid") != null
                        ? getPlaceManager().getRequestParameter("sessionid")
                        : "";
                Map<String, String> params = new HashMap<String, String>();
                params.put("confirmUser", "true");
                params.put("gooruUid", AppClientFactory.getLoggedInUser().getGooruUId());
                // Confirm User and remove/hide Not confirmed Popup.
                AppClientFactory.getInjector().getUserService().updateUserDetails(gooruUid, token, params,
                        new SimpleAsyncCallback<ProfileDo>() {
                            @Override
                            public void onSuccess(ProfileDo result) {
                                //Display thanks popup if required.
                                //Set Visiblity to false
                                AppClientFactory.setLoggedInUser(result.getUser());
                                boolean isConfirmed = result.getUser().getConfirmStatus() == 1 ? true : false;
                                if (isConfirmed) {
                                    AppClientFactory.fireEvent(new ConfirmStatusPopupEvent(isConfirmed));
                                    ThanksEmailConfirmPopupUc confirmPopup = new ThanksEmailConfirmPopupUc();
                                    confirmPopup.center();
                                    confirmPopup.show();
                                }
                            }
                        });
            }
        }
    }

    if (getPlaceManager().getRequestParameter(LOGINEVENT) != null
            && getPlaceManager().getRequestParameter(LOGINEVENT).equalsIgnoreCase("true")
            && AppClientFactory.isAnonymous()) {
        AppClientFactory.fireEvent(new InvokeLoginEvent());
    }

    final UserDo userDo = AppClientFactory.getLoggedInUser();
    int flag = userDo.getViewFlag();
    final String loginType = AppClientFactory.getLoggedInUser().getLoginType() != null
            ? AppClientFactory.getLoggedInUser().getLoginType()
            : "";
    if (!AppClientFactory.isAnonymous() && loginType.equalsIgnoreCase("apps")) {
        //         AppClientFactory.getInjector().getUserService().getUserProfileDetails(userDo.getGooruUId(), new SimpleAsyncCallback<SettingDo>(){
        //
        //            @Override
        //            public void onSuccess(SettingDo result) {
        ////               MixpanelUtil.Arrive_AlmostDone_Popup();
        ////               String email = result.getExternalId();
        ////               AppClientFactory.getLoggedInUser().setEmailId(result.getExternalId());
        ////               SignUpRoleView signUpRoleView = new SignUpRoleView(email, userDo);
        ////               AlmostDoneUc popup = new AlmostDoneUc(email,userDo);  
        ////               popup.setGlassEnabled(true);
        ////               popup.show();
        ////               popup.center();
        //            }            
        //         });

    } else if (flag <= 8 && !AppClientFactory.isAnonymous()) {
        showMarketingPopup(userDo);
    }
    AppClientFactory.fireEvent(
            new SetFooterEvent(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken()));
}

From source file:org.ednovo.gooru.client.mvp.home.ImprovedGooruPopUpView.java

License:Open Source License

public ImprovedGooruPopUpView() {
    super(false);
    setWidget(uiBinder.createAndBindUi(this));
    // this.setSize("704px", " ");
    this.setStyleName(HomeCBundle.INSTANCE.css().setAsCenterPopup());
    this.setGlassEnabled(true);
    this.show();/*from  ww  w .  j  av a  2s . co m*/
    this.center();
    Window.enableScrolling(false);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false));
    //      MixpanelUtil.New_in_Gooru_5_10_Views();

    MixpanelUtil.mixpanelEvent("New_In_Gooru_" + version);

    lblSupportLink.getElement().getStyle().setColor("#4d9645");
    headertext.setText(GL0285);

    goorutext.setText(GL0287);
    headersubtext.setText(GL0288);

    contenttext.setText(GL0292);
    contenttextlbl.setText(GL0293);

    mobileLearnMore.setText(GL1239);
    mobileLearnMore.getElement().setId("lnkContent");
    mobileLearnMore.setHref("http://support.goorulearning.org/hc/en-us/articles/201896353");

    termsofuselbl.setText(GL0295);
    termsofusetxt.setText(GL0296);
    termsofuselearnmore.setText(GL1239);
    termsofuselearnmore.getElement().setId("lnkLearnMore");
    termsofuselearnmore.setHref("http://support.goorulearning.org/hc/en-us/articles/201480617");

    lblTitleThree.setText(GL0629);
    aboutThree.setText(GL0625);
    descLinkThree.setText(GL1239);
    descLinkThree.setHref("http://support.goorulearning.org/hc/en-us/articles/201897547");

    lblTitleFour.setText(GL0630);
    aboutFour.setText(GL0627);

    //      lblTitleFive.setText(GL0630_1);
    //      aboutFive.setText(GL0627_1);
    //      descLinkFive.setText(GL1239);
    //      descLinkFive.setHref("http://support.goorulearning.org/hc/en-us/articles/200688096");

    questiontxt.setHTML(GL0298);
    lblSupportLink.setText(GL0299);
    lblSupportLink.getElement().setId("lnkSupports");
    lblSupportLink.setHref("mailto:support@goorulearning.org");

}

From source file:org.ednovo.gooru.client.mvp.home.ImprovedGooruPopUpView.java

License:Open Source License

@UiHandler("closeButton")
public void oncloseButton(ClickEvent clickEvent) {
    MixpanelUtil.New_in_Gooru_x();//from  w  w  w . jav  a 2 s  .  co  m
    AppClientFactory.getInjector().getUserService().updateUserViewFlag(
            AppClientFactory.getLoggedInUser().getGooruUId(), 9, new SimpleAsyncCallback<UserDo>() {
                @Override
                public void onSuccess(UserDo newUser) {
                    UserDo user = AppClientFactory.getLoggedInUser();
                    user.setViewFlag(newUser.getViewFlag());
                    AppClientFactory.setLoggedInUser(user);
                }
            });

    this.removeFromParent();
    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
}

From source file:org.ednovo.gooru.client.mvp.home.landingpage.YoutubePopupVc.java

License:Open Source License

public YoutubePopupVc(String title, String youtubeVideoUrl) {
    super(true);/*from   w  w w .  j a  va 2  s. c  o  m*/
    setWidget(uiBinder.createAndBindUi(this));
    this.setGlassEnabled(true);
    MixpanelUtil.Landing_Page_video();
    youtubeVideoContainer.add(new HTML(youtubeVideoUrl));
    setModal(true);
    this.setSize("808px", "544px");
    Window.enableScrolling(false);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(99, false));
    this.show();
    this.center();
    titleText.setText(GL1331);
}

From source file:org.ednovo.gooru.client.mvp.home.landingpage.YoutubePopupVc.java

License:Open Source License

@Override
public void hide(boolean autoClose) {
    super.hide(true);
    Window.enableScrolling(true);
}