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.SignUpDontWorryView.java
License:Open Source License
@UiHandler("lblCancel") public void onClickLblCancel(ClickEvent event) { MixpanelUtil.close_signUp();// w ww . j a v a2 s .c o m this.hide(); if (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken() .equalsIgnoreCase(PlaceTokens.PREVIEW_PLAY)) { } else { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); } }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.SignUpDontWorryView.java
License:Open Source License
@UiHandler("btnOk") public void onClickButtonLeave(ClickEvent event) { MixpanelUtil.close_signUp();//from w w w . j a va2 s. c om this.hide(); if (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken() .equalsIgnoreCase(PlaceTokens.PREVIEW_PLAY)) { } else { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); } }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.SignUpGradeCourseView.java
License:Open Source License
public SignUpGradeCourseView(UserDo userDo) { this.userDo = userDo; SignUpCBundle.INSTANCE.css().ensureInjected(); setWidget(uiBinder.createAndBindUi(this)); signupBgPanel.setWidth("700px"); metaDataSelectionPanel.getElement().getStyle().setPadding(15, Unit.PX); lblTitle.setText(GL0186 + GL_SPL_EXCLAMATION); scienceCourseContainer = new HTMLPanel(""); mathCourseContainer = new HTMLPanel(""); socialCourseContainer = new HTMLPanel(""); elaCourseContainer = new HTMLPanel(""); // artsHumanitiesContainer = new HTMLPanel(""); // techologyEngineeringContainer = new HTMLPanel(""); imgLoading.setVisible(true);/*from ww w . ja v a2s . co m*/ imgLoading.setUrl("images/core/B-Dot.gif"); setRegisterGradeList(); setRegisterCourseList(); lblErrorMessage.setVisible(false); lblErrorMessage.setText(GL0500); lblErrorMessage.getElement().getStyle().clearMarginLeft(); lblErrorMessage.getElement().getStyle().clearWidth(); lblErrorMessage.getElement().getStyle().setFloat(Float.RIGHT); lblErrorMessage.getElement().getStyle().setFontStyle(FontStyle.ITALIC); lblErrorMessage.getElement().getStyle().setWidth(205, Unit.PX); Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); this.setGlassEnabled(true); this.removeStyleName("gwt-PopupPanel"); // this.getElement().getStyle().setZIndex(99999); this.addStyleName(SignUpCBundle.INSTANCE.css().popupBackground()); this.setGlassStyleName(SignUpCBundle.INSTANCE.css().signUpPopUpGlassCss()); this.show(); this.center(); congratsLbl.getElement().setInnerHTML(GL1159 + GL_SPL_EXCLAMATION); accountCreatedText.getElement().setInnerHTML(GL1160); imgLoading.setAltText(GL0110); imgLoading.setTitle(GL0110); skipBtn.setText(GL1004); submitBtn.setText(GL0486); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.SignUpRoleView.java
License:Open Source License
public void closeSignUpRoleView() { AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.HOME); Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); this.hide();//www .java 2 s.co m }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.SignUpRoleView.java
License:Open Source License
/** * If username exists, display alert message else proceed further. * @param result {{@link UserDo}//from w w w . ja v a2 s . c om */ public void checkUserNameAvailability(UserDo result) { if (result != null && result.isAvailability() && loginTxtBox.getText() != null) { } else { String userName = loginTxtBox.getText(); String userRole = this.userRole; final UserDo userDo = AppClientFactory.getLoggedInUser(); AppClientFactory.getInjector().getHomeService().updateUserDetails(userName, userRole, new AsyncCallback<Void>() { @Override public void onSuccess(Void result) { AppClientFactory.getInjector().getUserService().updateUserViewFlag(userDo.getGooruUId(), 1, new SimpleAsyncCallback<UserDo>() { @Override public void onSuccess(UserDo newUser) { UserDo userDo = AppClientFactory.getLoggedInUser(); userDo.setViewFlag(newUser.getViewFlag()); AppClientFactory.setLoggedInUser(userDo); AppClientFactory.fireEvent(new SetHeaderEvent(newUser)); closeSignUpRoleView(); SignUpGradeCourseView signUpGradeCourseView = new SignUpGradeCourseView( userDo); } }); Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, false)); } @Override public void onFailure(Throwable caught) { } }); } }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.StudentSignUpUc.java
License:Open Source License
/** * /*from ww w . j a v a 2 s . c o m*/ * @param emailId * @param username * @param dob */ public StudentSignUpUc(String emailId, String username, String dob, String privateGooruUId) { super(false); this.res = SignUpCBundle.INSTANCE; res.css().ensureInjected(); this.privateGooruUId = privateGooruUId; setWidget(uiBinder.createAndBindUi(this)); this.setGlassEnabled(true); this.center(); Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); this.addStyleName(SignUpCBundle.INSTANCE.css().popupBackground()); this.setGlassStyleName(SignUpCBundle.INSTANCE.css().signUpPopUpGlassCss()); //this.getElement().getStyle().setBackgroundColor("transparent"); lblTitle.getElement().setAttribute("style", "height: 17px"); lblParentEmailId.setText(emailId != null && !emailId.equalsIgnoreCase("") ? emailId : AppClientFactory.getPlaceManager().getRequestParameter("emailId")); txtChooseUsername.setText(username); txtChooseUsername.setReadOnly(true); lblPleaseWait.setVisible(false); setUiAndIds(dob); //this.setSize("500px","500px"); txtChoosePassword.setFocus(true); AppClientFactory.getInjector().getSearchService().getHomeEndPointUrl(new SimpleAsyncCallback<String>() { @Override public void onSuccess(String result) { homeEndPoint = result; } }); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.StudentSignUpUc.java
License:Open Source License
@UiHandler("ancTermsAndPrivacy") public void onClickTrems(ClickEvent event) { Window.enableScrolling(false); termsOfUse = new TermsOfUse() { @Override/*from w w w . j a va 2s . com*/ public void openParentPopup() { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); } }; termsOfUse.show(); termsOfUse.setSize("902px", "300px"); termsOfUse.center(); termsOfUse.getElement().getStyle().setZIndex(999); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.StudentSignUpUc.java
License:Open Source License
/** * Opens up Privacy pop-up./*from w w w.ja v a2s . c om*/ * * @param event instance of {@link ClickEvent} */ @UiHandler("ancPrivacy") public void onClickPrivacy(ClickEvent event) { Window.enableScrolling(false); termsAndPolicyVc = new TermsAndPolicyVc(false) { @Override public void openParentPopup() { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); } }; termsAndPolicyVc.show(); termsAndPolicyVc.setSize("902px", "300px"); termsAndPolicyVc.center(); termsAndPolicyVc.getElement().getStyle().setZIndex(999); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.StudentSignUpUc.java
License:Open Source License
/** * Opens up Copy rights pop-up.//from www.j a v a2s .com * * @param event instance of {@link ClickEvent} */ @UiHandler("ancCopyRight") public void onClickCopyright(ClickEvent event) { Window.enableScrolling(false); copyRightPolicy = new CopyRightPolicyVc() { @Override public void openParentPopup() { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); } }; copyRightPolicy.show(); copyRightPolicy.setSize("902px", "300px"); copyRightPolicy.center(); copyRightPolicy.getElement().getStyle().setZIndex(999); }
From source file:org.ednovo.gooru.client.mvp.authentication.uc.ThankPopUpForUpdateProfile.java
License:Open Source License
public ThankPopUpForUpdateProfile() { super(false); this.res = SignUpCBundle.INSTANCE; res.css().ensureInjected();/*from w ww . j av a2s.c o m*/ setWidget(uiBinder.createAndBindUi(this)); this.setGlassEnabled(true); this.center(); this.setSize("502px", "352px"); Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); this.addStyleName(SignUpCBundle.INSTANCE.css().popupBackground()); this.setGlassStyleName(SignUpCBundle.INSTANCE.css().signUpPopUpGlassCss()); //this.getElement().getStyle().setBackgroundColor("transparent"); setUiAndIds(); }