List of usage examples for com.google.gwt.user.client Window enableScrolling
public static void enableScrolling(boolean enable)
From source file:org.ednovo.gooru.client.mvp.authentication.uc.ThankPopUpForUpdateProfile.java
License:Open Source License
@UiHandler("lblCancel") public void onClickLblCancel(ClickEvent event) { MixpanelUtil.close_signUp();// w w w . ja v a2 s. co m if (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken() .equalsIgnoreCase(PlaceTokens.PREVIEW_PLAY)) { } else { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); } this.hide(); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.ThanksEmailConfirmPopupUc.java
License:Open Source License
/** * // w w w .j a v a 2s. c om * @function setHandlers * * @created_date : 15-09-2013 * * @description * * * @parm(s) : * * @return : void * * @throws : <Mentioned if any exceptions> * * * * */ private void setHandlers() { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); this.removeStyleName("gwt-PopupPanel"); this.getElement().getStyle().setZIndex(99999); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.ThanksEmailConfirmPopupUc.java
License:Open Source License
/** * //from ww w . jav a 2 s . c om * @function closePopUp * * @created_date : Dec 13, 2013 * * @description * This method is used to close the popup. * * @parm(s) : * * @return : void * * @throws : <Mentioned if any exceptions> * * * * */ public void closePopUp() { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); Map<String, String> params = StringUtil.splitQuery(Window.Location.getHref()); params.remove("gooruuid"); params.remove("dob"); params.remove("callback"); params.remove("sessionid"); params.remove("type"); AppClientFactory.getPlaceManager().revealPlace(AppClientFactory.getCurrentPlaceToken(), params); hide(); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.ThanksPopupUc.java
License:Open Source License
/** * /* w w w .j a va2 s . c o m*/ * @function setHandlers * * @created_date : 15-09-2013 * * @description * * * @parm(s) : * * @return : void * * @throws : <Mentioned if any exceptions> * * * * */ private void setHandlers() { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); // this.setStyleName(res.css().thanksPopup()); this.removeStyleName("gwt-PopupPanel"); this.addStyleName(SignUpCBundle.INSTANCE.css().popupBackground()); this.setGlassStyleName(SignUpCBundle.INSTANCE.css().signUpPopUpGlassCss()); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.ThanksPopupUc.java
License:Open Source License
@UiHandler("lblClose") public void clickOnClose(ClickEvent event) { if (account.equalsIgnoreCase("parent")) { startCreatingStudent();/*from www .j a v a2s. co m*/ } if (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken() .equalsIgnoreCase(PlaceTokens.PREVIEW_PLAY)) { } else { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); } hide(); }
From source file:org.ednovo.gooru.client.mvp.classpage.studentclassview.StudentClassPresenter.java
License:Open Source License
@Override public void onBind() { super.onBind(); Window.enableScrolling(true); Window.scrollTo(0, 0); }
From source file:org.ednovo.gooru.client.mvp.classpage.studentclassview.StudentClassPresenter.java
License:Open Source License
@Override protected void onReveal() { super.onReveal(); Window.enableScrolling(true); Window.scrollTo(0, 0);/*from w w w .ja v a 2 s . c o m*/ AppClientFactory.setBrowserWindowTitle(SeoTokens.STUDY_TITLE); AppClientFactory.setMetaDataDescription(SeoTokens.HOME_META_DESCRIPTION); AppClientFactory.fireEvent(new HomeEvent(HeaderTabType.TEACH)); classpageDo = null; getClasspageDetails(); //Call Event for Setting Confirm popup AppClientFactory.fireEvent(new ConfirmStatusPopupEvent(true)); AppClientFactory.fireEvent( new SetFooterEvent(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken())); }
From source file:org.ednovo.gooru.client.mvp.classpage.studentclassview.StudentClassPresenter.java
License:Open Source License
@Override protected void onReset() { super.onReset(); Window.enableScrolling(true); Window.scrollTo(0, 0);//from w w w . j av a 2s . c o m //Call Event for Setting Confirm popup AppClientFactory.fireEvent(new ConfirmStatusPopupEvent(true)); AppClientFactory.fireEvent( new SetFooterEvent(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken())); if (getPlaceManager().getRequestParameter("callback") != null && getPlaceManager().getRequestParameter("callback").equalsIgnoreCase("signup")) { //To show SignUp (Registration popup) 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); } int flag = AppClientFactory.getLoggedInUser().getViewFlag(); final String loginType = AppClientFactory.getLoggedInUser().getLoginType() != null ? AppClientFactory.getLoggedInUser().getLoginType() : ""; if (!AppClientFactory.isAnonymous() && flag == 0 && !loginType.equalsIgnoreCase("Credential")) { AlmostDoneUc update = new AlmostDoneUc(AppClientFactory.getLoggedInUser().getEmailId(), AppClientFactory.getLoggedInUser()); update.setGlassEnabled(true); update.show(); update.center(); } if (classpageDo != null) { loadNavigationPage(); } }
From source file:org.ednovo.gooru.client.mvp.classpage.studentclassview.StudentClassView.java
License:Open Source License
@Override public void initiateJoinClassPopup() { if (AppClientFactory.isAnonymous()) { LoginPopupUc loginPopupUc = new LoginPopupUc() { @Override//from w ww .j av a 2 s . c om public void onLoginSuccess() { // TODO Auto-generated method stub } }; } else { joinClassPopup = new StudentJoinClassPopup(classpageDo) { @Override void joinIntoClass() { getUiHandlers().studentJoinClassPoup(classpageDo.getClassUid()); } @Override public void closePoup() { hide(); Window.enableScrolling(true); if (!classpageDo.isVisibility()) { AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.HOME); } } }; int windowHeight = Window.getClientHeight() / 2; //I subtract 10 from the client height so the window isn't maximized. int windowWidth = Window.getClientWidth() / 2; joinClassPopup.setPopupPosition(windowWidth - 253, windowHeight - 70); joinClassPopup.setPixelSize(506, 261); //joinPopup.center(); joinClassPopup.show(); } }
From source file:org.ednovo.gooru.client.mvp.classpage.studentclassview.StudentClassView.java
License:Open Source License
@Override public void setSuccesspopup() { //joinClassPopup.setVisible(false); joinClassPopup.hide();/*www.j ava 2s . com*/ SuccessPopupViewVc success = new SuccessPopupViewVc() { @Override public void onClickPositiveButton(ClickEvent event) { if (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken() .equalsIgnoreCase(PlaceTokens.SEARCH_COLLECTION) || AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken() .equalsIgnoreCase(PlaceTokens.SEARCH_RESOURCE)) { Window.enableScrolling(false); } else { Window.enableScrolling(true); } this.hide(); setPreviewClassMode(false); } }; success.setWidth("450px"); success.setPopupTitle(i18n.GL1553()); success.setDescText(i18n.GL1554() + " " + classpageDo.getName() + StudentAssignmentView.i18n.GL_SPL_EXCLAMATION() + '\n' + StudentAssignmentView.i18n.GL1552()); success.setPositiveButtonText(i18n.GL0190()); success.center(); success.show(); }