List of usage examples for com.google.gwt.user.client Window scrollTo
public static void scrollTo(int left, int top)
From source file:org.ednovo.gooru.client.mvp.library.district.ycl.YumaCountryLibraryPresenter.java
License:Open Source License
@Override public void onBind() { super.onBind(); Window.scrollTo(0, 0); }
From source file:org.ednovo.gooru.client.mvp.library.district.ycl.YumaCountryLibraryPresenter.java
License:Open Source License
@Override public void onReveal() { super.onReveal(); Window.scrollTo(0, 0); }
From source file:org.ednovo.gooru.client.mvp.library.district.ycl.YumaCountryLibraryPresenter.java
License:Open Source License
@Override public void onReset() { super.onReset(); Window.scrollTo(0, 0); }
From source file:org.ednovo.gooru.client.mvp.library.partner.yesdlibrary.YesdLibraryPresenter.java
License:Open Source License
@Override public void onReveal() { super.onReveal(); Window.enableScrolling(true); Window.scrollTo(0, 0); }
From source file:org.ednovo.gooru.client.mvp.library.partner.yesdlibrary.YesdLibraryPresenter.java
License:Open Source License
@Override public void onReset() { super.onReset(); Window.enableScrolling(true); Window.scrollTo(0, 0); }
From source file:org.ednovo.gooru.client.mvp.play.collection.end.study.CollectionHomeMetadataView.java
License:Open Source License
/** * /*from w w w . j a v a 2 s . c o m*/ * @function oncustomizeCollectionBtnClicked * * @created_date : 11-Dec-2013 * * @description * * * @parm(s) : @param clickEvent * * @return : void * * @throws : <Mentioned if any exceptions> * */ @UiHandler("customizeCollectionBtn") public void oncustomizeCollectionBtnClicked(ClickEvent clickEvent) { String collectionId = clickEvent.getRelativeElement().getAttribute("collectionId"); if (!isCustomizePopup) { isCustomizePopup = true; Boolean loginFlag = false; if (AppClientFactory.isAnonymous()) { loginFlag = true; } else { loginFlag = false; } RenameCustomizePopUp successPopupVc = new RenameCustomizePopUp(collectionId, loginFlag, collectionTitle) { @Override public void closePoup() { // Window.enableScrolling(true); this.hide(); isCustomizePopup = false; } }; Window.scrollTo(0, 0); successPopupVc.setWidth("500px"); successPopupVc.setHeight("471px"); successPopupVc.show(); successPopupVc.center(); Map<String, String> params = new HashMap<String, String>(); params.put("id", AppClientFactory.getPlaceManager().getRequestParameter("id")); if (AppClientFactory.getPlaceManager().getRequestParameter("subject") != null) params.put("subject", AppClientFactory.getPlaceManager().getRequestParameter("subject")); if (AppClientFactory.getPlaceManager().getRequestParameter("lessonId") != null) params.put("lessonId", AppClientFactory.getPlaceManager().getRequestParameter("lessonId")); params.put("customize", "yes"); PlaceRequest placeRequest = AppClientFactory.getPlaceManager() .preparePlaceRequest(PlaceTokens.COLLECTION_PLAY, params); AppClientFactory.getPlaceManager().revealPlace(false, placeRequest, true); } }
From source file:org.ednovo.gooru.client.mvp.play.collection.end.study.CollectionHomeMetadataView.java
License:Open Source License
/** * /*from ww w .ja v a 2 s. co m*/ * Showing Customize or Assign popup after login with gmail account. * */ private void showPopupAfterGmailSignin() { // TODO Auto-generated method stub String collectionId = AppClientFactory.getPlaceManager().getRequestParameter("id") != null ? AppClientFactory.getPlaceManager().getRequestParameter("id") : null; String customize = AppClientFactory.getPlaceManager().getRequestParameter("customize") != null ? AppClientFactory.getPlaceManager().getRequestParameter("customize") : null; String assign = AppClientFactory.getPlaceManager().getRequestParameter("assign") != null ? AppClientFactory.getPlaceManager().getRequestParameter("assign") : null; String emailId = AppClientFactory.getPlaceManager().getRequestParameter("emailId") != null ? AppClientFactory.getPlaceManager().getRequestParameter("emailId") : null; if (customize != null && customize.equals("yes") && emailId != null) { Boolean loginFlag = false; if (AppClientFactory.isAnonymous()) { loginFlag = true; } else { loginFlag = false; } RenameCustomizePopUp successPopupVc = new RenameCustomizePopUp(collectionId, loginFlag, collectionTitle) { @Override public void closePoup() { Window.enableScrolling(true); this.hide(); isCustomizePopup = false; } }; Window.scrollTo(0, 0); successPopupVc.setWidth("500px"); successPopupVc.setHeight("471px"); successPopupVc.show(); successPopupVc.center(); } if (assign != null && assign.equals("yes") && emailId != null) { AssignPopupPlayerVc successPopupVc = new AssignPopupPlayerVc(collectionId) { @Override public void closePoup() { Window.enableScrolling(true); this.hide(); isAssignPopup = false; } }; Window.scrollTo(0, 0); successPopupVc.setWidth("500px"); successPopupVc.setHeight("635px"); successPopupVc.show(); successPopupVc.center(); if (AppClientFactory.isAnonymous()) { successPopupVc.setPopupPosition(successPopupVc.getAbsoluteLeft(), 30); } else { successPopupVc.setPopupPosition(successPopupVc.getAbsoluteLeft(), 30); } } }
From source file:org.ednovo.gooru.client.mvp.play.collection.preview.end.PreviewEndView.java
License:Open Source License
/** * //from w ww .j a v a 2s.c o m * @function onassignCollectionBtnClicked * * @created_date : 11-Dec-2013 * * @description * * * @parm(s) : @param clickEvent * * @return : void * * @throws : <Mentioned if any exceptions> * * */ @UiHandler("assignCollectionBtn") public void onassignCollectionBtnClicked(ClickEvent clickEvent) { String collectionId = clickEvent.getRelativeElement().getAttribute("collectionId"); if (!isAssignPopup) { isAssignPopup = true; AssignPopupPlayerVc successPopupVc = new AssignPopupPlayerVc(collectionId) { @Override public void closePoup() { Window.enableScrolling(true); this.hide(); isAssignPopup = false; } }; Window.scrollTo(0, 0); successPopupVc.setWidth("500px"); successPopupVc.setHeight("auto"); successPopupVc.show(); successPopupVc.center(); if (AppClientFactory.isAnonymous()) { successPopupVc.setPopupPosition(successPopupVc.getAbsoluteLeft(), 30); } else { successPopupVc.setPopupPosition(successPopupVc.getAbsoluteLeft(), 30); } } }
From source file:org.ednovo.gooru.client.mvp.play.collection.preview.end.PreviewEndView.java
License:Open Source License
/** * //from w w w .j a v a 2 s. c o m * @function oncustomizeCollectionBtnClicked * * @created_date : 11-Dec-2013 * * @description * * * @parm(s) : @param clickEvent * * @return : void * * @throws : <Mentioned if any exceptions> * */ @UiHandler("customizeCollectionBtn") public void oncustomizeCollectionBtnClicked(ClickEvent clickEvent) { String collectionId = clickEvent.getRelativeElement().getAttribute("collectionId"); if (!isCustomizePopup) { isCustomizePopup = true; Boolean loginFlag = false; if (AppClientFactory.isAnonymous()) { loginFlag = true; } else { loginFlag = false; } RenameCustomizePopUp successPopupVc = new RenameCustomizePopUp(collectionId, loginFlag) { @Override public void closePoup() { Window.enableScrolling(true); this.hide(); isCustomizePopup = false; } }; Window.scrollTo(0, 0); successPopupVc.setWidth("500px"); successPopupVc.setHeight("350px"); successPopupVc.show(); successPopupVc.center(); } }
From source file:org.ednovo.gooru.client.mvp.play.collection.preview.end.PreviewEndView.java
License:Open Source License
/** * /*from w w w . j av a2s.c o m*/ * @function oncustomizeCollectionBtnClicked * * @created_date : 11-Dec-2013 * * @description * * * @parm(s) : @param clickEvent * * @return : void * * @throws : <Mentioned if any exceptions> * */ @UiHandler("shareCollectionBtn") public void onshareCollectionBtnClicked(ClickEvent clickEvent) { String collectionId = clickEvent.getRelativeElement().getAttribute("collectionId"); if (!isSharePopup) { isSharePopup = true; SharePlayerVc successPopupVc = new SharePlayerVc(collectionId) { @Override public void closePoup() { Window.enableScrolling(true); this.hide(); isSharePopup = false; } }; Window.scrollTo(0, 0); successPopupVc.setWidth("500px"); successPopupVc.setHeight("350px"); successPopupVc.show(); successPopupVc.center(); } }