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.home.ResetPasswordVc.java
License:Open Source License
/** * Takes to reset password link//from ww w . j ava2s.c o m * @param clickEvent instance of {@link ClickEvent} */ @UiHandler("resetPwdCancelAnr") public void onFormSubmit(ClickEvent clickEvent) { Window.enableScrolling(true); AppClientFactory.getEventBus().fireEvent(new SetHeaderZIndexEvent(0, true)); appPopUp.hide(); AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.HOME); }
From source file:org.ednovo.gooru.client.mvp.home.ResetPwdSuccessVc.java
License:Open Source License
/** * Class constructor , assign user name in reset password success popup * // w ww . ja v a 2s . c o m * @param userName of password request user */ public ResetPwdSuccessVc(String userName) { initWidget(uiBinder.createAndBindUi(this)); appPopUp = new AppPopUp(); appPopUp.setStyleName("removeResourcePopup"); appPopUp.setContent(GL0062, uiBinder.createAndBindUi(this)); resetPasswordLbl.setText(userName + LOGIN_WITH_NEW_PWD); appPopUp.show(); appPopUp.center(); okBtnUc.setText(GL0190); Window.enableScrolling(false); AppClientFactory.getEventBus().fireEvent(new SetHeaderZIndexEvent(99, false)); }
From source file:org.ednovo.gooru.client.mvp.home.ResetPwdSuccessVc.java
License:Open Source License
/** * Redirect to home page while clicking ok button on reset password success popup * @param clickEvent instance of {@link ClickEvent} *///from w w w . jav a 2 s. c o m @UiHandler("okBtnUc") public void onCancelClick(ClickEvent clickEvent) { Window.enableScrolling(true); AppClientFactory.getEventBus().fireEvent(new SetHeaderZIndexEvent(0, true)); appPopUp.hide(); AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.HOME); }
From source file:org.ednovo.gooru.client.mvp.home.WaitPopupVc.java
License:Open Source License
/** * Class constructor to set title and content text for pop up * // w ww.j av a2 s . c om * @param title * is the header of the pop up * @param entityInfo * is the content text of the pop up */ public WaitPopupVc(String title, String entityInfo) { super(); setContent(title, uiBinder.createAndBindUi(this)); setStyleName("deleteResourcePopup"); //okButtonUc.setStyleName("overRideBlueButtonDelete"); messageTextLabel.setText(entityInfo); cancelAnr.setText(GL0142); okButtonUc.setText(GL0190); okButtonUc.getElement().setId("btnOk"); cancelAnr.getElement().setId("lnkCancel"); removingText.setText(GL1021); removingText.setVisible(false); setModal(true); Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(99, false)); show(); center(); }
From source file:org.ednovo.gooru.client.mvp.home.WaitPopupVc.java
License:Open Source License
/** * Hide {@link WaitPopupVc} popup//from w w w .ja v a2s .c o m * * @param clickEvent * instance of {@link ClickEvent} */ @UiHandler("cancelAnr") public void onCancelClick(ClickEvent clickEvent) { hide(); Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); }
From source file:org.ednovo.gooru.client.mvp.home.WaitPopupVc.java
License:Open Source License
public void hide() { super.hide(); Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); }
From source file:org.ednovo.gooru.client.mvp.image.upload.ImageUploadView.java
License:Open Source License
/** * Hide {@link AppPopUp}//from w ww . ja va 2s . c o m * @param clickEvent instance of {@link ClickEvent} */ @UiHandler("onSystemCancelBtn") public void onSystemCancelClick(ClickEvent clickEvent) { appPopUp.hide(); resetImageUploadWidget(); if (isEdit) { Window.enableScrolling(false); } else { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); } }
From source file:org.ednovo.gooru.client.mvp.image.upload.ImageUploadView.java
License:Open Source License
@UiHandler("cancelButtonOnUploadGooruImages") public void cancelOnGooruImages(ClickEvent event) { appPopUp.hide();//from w w w. ja va2 s . c om resetImageUploadWidget(); if (isEdit) { Window.enableScrolling(false); } else { Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); } }
From source file:org.ednovo.gooru.client.mvp.library.district.lifeboard.LifeboardLibraryPresenter.java
License:Open Source License
@Override public void prepareFromRequest(PlaceRequest request) { super.prepareFromRequest(request); districtPresenter.setPartnerWidget(PlaceTokens.LIFEBOARD); clearSlot(TYPE_FOLDERS_SLOT);/*from w ww. ja va 2 s . c om*/ setInSlot(TYPE_FOLDERS_SLOT, districtPresenter); 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); } } }
From source file:org.ednovo.gooru.client.mvp.library.district.lusd.LusdLibraryPresenter.java
License:Open Source License
@Override public void prepareFromRequest(PlaceRequest request) { super.prepareFromRequest(request); districtPresenter.setPartnerWidget(PlaceTokens.LUSD); clearSlot(TYPE_FOLDERS_SLOT);// w ww . ja v a 2s .co m setInSlot(TYPE_FOLDERS_SLOT, districtPresenter); 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); } } }