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.assessments.play.collection.preview.home.customize.RenameCustomizePopUp.java
License:Open Source License
public RenameCustomizePopUp(String dragId) { super(false); this.res = AssignPopUpCBundle.INSTANCE; res.css().ensureInjected();/* w ww.j a va2s . com*/ add(binder.createAndBindUi(this)); errorLabel.setVisible(false); this.setGlassEnabled(true); customizeText.getElement().setInnerHTML(i18n.GL0322()); customizeText.getElement().setAttribute("alt", i18n.GL0322()); customizeText.getElement().setAttribute("title", i18n.GL0322()); isDraggedFromSearch = true; copyCollectionSuccess.getElement().getStyle().setPadding(0, Unit.PX); backtoLibrary.setText(i18n.GL0142()); editCollection.setText(i18n.GL0190()); panelAssign.getElement().getStyle().setMarginBottom(4, Unit.PX); loginCustom.getElement().getStyle().setMarginBottom(15, Unit.PX); buttonsContainer.setStyleName(res.css().collectionSearchRenamePopupButtons()); loadingLbl.getElement().getStyle().setMarginTop(5, Unit.PCT); loadingLbl.getElement().getStyle().setMarginLeft(25, Unit.PCT); errorLabel.getElement().getStyle().setPaddingTop(30, Unit.PX); errorLabel.getElement().getStyle().setColor("orange"); Window.enableScrolling(false); copycollectionTextbox.addKeyPressHandler(new OnkeyPress()); copycollectionTextbox.addBlurHandler(new OnBlurr()); copycollectionTextbox.setMaxLength(50); popupcontentCustomize.setVisible(false); loadingImageLabel.setVisible(true); editCollection.getElement().setAttribute("collectionId", dragId); assignDes.getElement().getStyle().setDisplay(Display.NONE); lblpopupTitle.getElement().getStyle().setDisplay(Display.NONE); lbltxtBoxTitle.setText(i18n.GL0553()); lbltxtBoxTitle.getElement().setAttribute("alt", i18n.GL0553()); lbltxtBoxTitle.getElement().setAttribute("title", i18n.GL0553()); copycollectionTextbox.getElement().getStyle().setWidth(275, Unit.PX); AppClientFactory.getInjector().getClasspageService().getSCollIdClasspageById(dragId, new SimpleAsyncCallback<CollectionDo>() { @Override public void onSuccess(CollectionDo result) { collectionDo = result; copycollectionTextbox.setText(result.getTitle()); loginCustom.setVisible(false); copyCollectionSuccess.setVisible(true); loadingImageLabel.setVisible(false); popupcontentCustomize.setVisible(true); } }); setId(); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.home.share.SharePlayerVc.java
License:Open Source License
/** * *//* ww w.j av a 2 s . c o m*/ public SharePlayerVc(String collectionIdVal) { super(false); res = AssignPopUpCBundle.INSTANCE; AssignPopUpCBundle.INSTANCE.css().ensureInjected(); add(uiBinder.createAndBindUi(this)); this.setGlassEnabled(true); sharetext.getElement().setInnerHTML(i18n.GL0638()); sharetext.getElement().setId("pnlSharetext"); sharetext.getElement().setAttribute("alt", i18n.GL0638()); sharetext.getElement().setAttribute("title", i18n.GL0638()); swithUrlLbl.setText(i18n.GL0639()); swithUrlLbl.getElement().setId("lblSwithUrlLbl"); swithUrlLbl.getElement().setAttribute("alt", i18n.GL0639()); swithUrlLbl.getElement().setAttribute("title", i18n.GL0639()); swithToEmbedLbl.setText(i18n.GL0640()); swithToEmbedLbl.getElement().setId("lblSwithToEmbedLbl"); swithToEmbedLbl.getElement().setAttribute("alt", i18n.GL0640()); swithToEmbedLbl.getElement().setAttribute("title", i18n.GL0640()); setLabelsAndIds(); shareContainer = new ShareViewUc("", ""); ftmPanel = new HTMLPanel(""); loadingImageLabel.setVisible(true); popupContentAssign.setVisible(false); try { AppClientFactory.getInjector().getClasspageService().getSCollIdClasspageById(collectionIdVal, new SimpleAsyncCallback<CollectionDo>() { @Override public void onSuccess(CollectionDo result) { if (result != null) { String collectionId = ""; if (result.getGooruOid() != null) { collectionId = result.getGooruOid(); } toAssignStr = collectionId; if (collectionId != null) { collectionDoGlobal = result; generateShareLink(toAssignStr); } loadingImageLabel.setVisible(false); popupContentAssign.setVisible(true); } } }); } catch (Exception ex) { AppClientFactory.printSevereLogger("SharePlayerVc : Constructor : " + ex.getMessage()); } setShareUrlGenerationAsyncCallback(new SimpleAsyncCallback<Map<String, String>>() { @Override public void onSuccess(Map<String, String> result) { if (result != null && result.size() > 0) if (result.containsKey("decodeRawUrl")) { embedBitlyLink = result.get("decodeRawUrl"); } } }); Window.enableScrolling(false); this.getElement().setAttribute("style", "z-index:99999;"); this.getGlassElement().setAttribute("style", "z-index:99999; position:absolute; left:0px; top:0px;"); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(99999, false)); this.setHeight("500px"); this.show(); this.center(); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.share.email.CollectionEmailShareView.java
License:Open Source License
@UiHandler("ancprivacy") public void onClickPrivacyAnchor(ClickEvent clickEvent) { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); termsOfUse = new TermsOfUse() { @Override/* w w w . j a v a2 s.c o m*/ public void openParentPopup() { Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); } }; termsOfUse.show(); termsOfUse.center(); termsOfUse.getElement().getStyle().setZIndex(999999);//To display the view in collection player. }
From source file:org.ednovo.gooru.client.mvp.assessments.play.resource.AssessmentsResourcePlayerPresenter.java
License:Open Source License
public void setAddResourceCollectionView(String resourceId) { if (AppClientFactory.isAnonymous()) { clearSlot(TAB_PRESENTER_SLOT);//from w w w . jav a 2s . c o m showLoginPopupWidget(i18n.GL0590().toUpperCase()); } else { clearSlot(TAB_PRESENTER_SLOT); searchAddResourceToCollectionPresenter.DisableMyCollectionsPanelData(false); String resourcePlayId = AppClientFactory.getPlaceManager().getRequestParameter("id"); ResourceSearchResultDo resourceSearchResultDo = new ResourceSearchResultDo(); resourceSearchResultDo.setGooruOid(resourcePlayId); resourceSearchResultDo.setQuestionType(collectionItemDo.getResource().getTypeName()); SearchResourceFormatDO searchResourceFormatDO = new SearchResourceFormatDO(); searchResourceFormatDO.setValue(collectionItemDo.getResource().getResourceFormat().getValue()); resourceSearchResultDo.setResourceFormat(searchResourceFormatDO); shelfMainPresenter.SetDefaultTypeAndVersion(); searchAddResourceToCollectionPresenter.getLoadingImage(); searchAddResourceToCollectionPresenter.getUserShelfData(resourceSearchResultDo, "coursebuilder", null); searchAddResourceToCollectionPresenter.getView().getAppPopUp().show(); searchAddResourceToCollectionPresenter.getView().getAppPopUp().center(); searchAddResourceToCollectionPresenter.getView().getAppPopUp().setGlassEnabled(true); searchAddResourceToCollectionPresenter.getView().getAppPopUp().setGlassStyleName("setGlassPanelZIndex"); searchAddResourceToCollectionPresenter.getView().getAppPopUp() .addCloseHandler(new CloseHandler<PopupPanel>() { @Override public void onClose(CloseEvent<PopupPanel> event) { Window.enableScrolling(false); searchAddResourceToCollectionPresenter.getView().closeTabView(); } }); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.resource.body.AssessmentsResourcePlayerMetadataPresenter.java
License:Open Source License
/** * Receiving event to open review pop-up * *//*ww w .j a v a 2 s .c om*/ @Override public void openReviewPopUp(String assocGooruOId, String title, String createrName) { Window.enableScrolling(false); ratingAndReviewPopup.displayPopup(resourceTitle, assocGooruOId, createrName); ratingAndReviewPopup.getWidget().getElement().getStyle().setZIndex(999999); addToPopupSlot(ratingAndReviewPopup); }
From source file:org.ednovo.gooru.client.mvp.authentication.afterthirteen.SignUpCompleteProfileView.java
License:Open Source License
@Override public void displayView() { appPopUp = new AppPopUp(GL0697); appPopUp.setContent(uiBinder.createAndBindUi(this)); /*appPopUp.setStyleName(RegisterCBundle.INSTANCE.css() .registerPopupStyle());/*w w w.j av a2 s. co m*/ */ appPopUp.setGlassEnabled(true); appPopUp.addStyleName(SignUpCBundle.INSTANCE.css().popupBackground()); appPopUp.setGlassStyleName(SignUpCBundle.INSTANCE.css().signUpPopUpGlassCss()); //appPopUp.setAutoHideOnHistoryEventsEnabled(false); //appPopUp.getElement().getStyle().setZIndex(99); Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); // appPopUp.getElement().getStyle().setBackgroundColor("transparent"); setUiAndIds(); appPopUp.center(); }
From source file:org.ednovo.gooru.client.mvp.authentication.afterthirteen.SignUpCompleteProfileView.java
License:Open Source License
@UiHandler("lblCancel") public void onClickLblCancel(ClickEvent event) { MixpanelUtil.close_signUp();/*from w w w. ja v a 2s. c o m*/ Window.enableScrolling(true); 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.afterthirteen.SignUpTurnsAfterThirteenView.java
License:Open Source License
@Override public void displayView() { appPopUp = new AppPopUp(GL0697); appPopUp.setContent(uiBinder.createAndBindUi(this)); /*appPopUp.setStyleName(RegisterCBundle.INSTANCE.css() .registerPopupStyle());/*from w w w. j a va 2 s .c o m*/ */ appPopUp.setGlassEnabled(true); appPopUp.addStyleName(SignUpCBundle.INSTANCE.css().popupBackground()); appPopUp.setGlassStyleName(SignUpCBundle.INSTANCE.css().signUpPopUpGlassCss()); /*appPopUp.setAutoHideOnHistoryEventsEnabled(false); appPopUp.getElement().getStyle().setZIndex(99); */ Window.enableScrolling(false); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false)); //appPopUp.getElement().getStyle().setBackgroundColor("transparent"); setUiAndIds(); appPopUp.center(); }
From source file:org.ednovo.gooru.client.mvp.authentication.afterthirteen.SignUpTurnsAfterThirteenView.java
License:Open Source License
@UiHandler("lblCancel") public void onClickLblCancel(ClickEvent event) { this.hide();/*from ww w . ja v a 2 s. com*/ 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.SignUpRoleView.java
License:Open Source License
@UiHandler("lblCancel") public void onCancelClick(ClickEvent clickEvent) { AppClientFactory.getPlaceManager().revealPlace(PlaceTokens.HOME); Window.enableScrolling(true); AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true)); this.hide();/*ww w . java2 s.c o m*/ }