当前位置: 首页>>代码示例>>Java>>正文


Java Window.scrollTo方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.Window.scrollTo方法的典型用法代码示例。如果您正苦于以下问题:Java Window.scrollTo方法的具体用法?Java Window.scrollTo怎么用?Java Window.scrollTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.Window的用法示例。


在下文中一共展示了Window.scrollTo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(iAttribute.getId() == null ? MESSAGES.pageAddInstructorAttribute() : MESSAGES.pageEditInstructorAttribute());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:9,代码来源:InstructorAttributeEdit.java

示例2: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(iGroup.getId() == null ? MESSAGES.pageAddRoomGroup() : MESSAGES.pageEditRoomGroup());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:9,代码来源:RoomGroupEdit.java

示例3: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(MESSAGES.pageRoomDetail());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:9,代码来源:RoomDetail.java

示例4: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(iFeature.getId() == null ? MESSAGES.pageAddRoomFeature() : MESSAGES.pageEditRoomFeature());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:9,代码来源:RoomFeatureEdit.java

示例5: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(MESSAGES.pageEditRoomsDepartments());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:9,代码来源:RoomDepartmentsEdit.java

示例6: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(iRoom.getUniqueId() == null ? MESSAGES.pageAddRoom() : MESSAGES.pageEditRoom());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
	
	if (iGoogleMap != null) {
		if (isGoogleMapEditable() || iRoom.hasCoordinates()) {
			iGoogleMap.setVisible(true);
			if (!iGoogleMapInitialized) {
				iGoogleMapInitialized = true;
				ScriptInjector.fromUrl("https://maps.googleapis.com/maps/api/js?" + (iProperties != null && iProperties.hasGoogleMapApiKey() ? "key=" + iProperties.getGoogleMapApiKey() + "&" : "") +
						"sensor=false&callback=setupGoogleMap").setWindow(ScriptInjector.TOP_WINDOW).setCallback(
						new Callback<Void, Exception>() {
							@Override
							public void onSuccess(Void result) {
							}
							@Override
							public void onFailure(Exception e) {
								UniTimeNotifications.error(e.getMessage(), e);
								iGoogleMap = null;
								iGoogleMapControl = null;
							}
						}).inject();
			} else if (iGoogleMap != null) {
				setMarker();
			}
		} else {
			iGoogleMap.setVisible(false);
		}
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:35,代码来源:RoomEdit.java

示例7: openDialog

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
@Override
public void openDialog(String title, String source, String width, String height, boolean noCacheTS) {
	if (isShowing()) hideDialog();
	GwtHint.hideHint();
	
	iScrollLeft = Window.getScrollLeft(); iScrollTop = Window.getScrollTop();
	Window.scrollTo(0, 0);

	LoadingWidget.getInstance().show("Loading " + title + " ...");
	setText(title);
	if (noCacheTS) {
		String hash = null;
		int hashIdx = source.lastIndexOf('#');
		if (hashIdx >= 0) {
			hash = source.substring(hashIdx);
			source = source.substring(0, hashIdx);
		}
		iFrame.setUrl(source + (source.indexOf('?') >= 0 ? "&" : "?") + "noCacheTS=" + new Date().getTime() + (hash == null ? "" : hash));
	} else {
		iFrame.setUrl(source);
	}
	iCheckLoadingWidgetIsShowing.schedule(30000);
	
	History.newItem(title, false);
	iPopup.setPopupPosition(0, 0);
	iPopup.show();
	RootPanel.getBodyElement().getStyle().setOverflow(Overflow.HIDDEN);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:29,代码来源:MobileUniTimeFrameDialogImpl.java

示例8: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(iEvent.getId() == null ? MESSAGES.pageAddEvent() : MESSAGES.pageEditEvent());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
	if (iForm.getRowFormatter().isVisible(iSessionRow)) {
		iSession.setFilter(this);
		iForm.setWidget(iSessionRow, 1, iSession);
	}
	iFileUpload.check();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:14,代码来源:EventAdd.java

示例9: show

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void show() {
	UniTimePageLabel.getInstance().setPageName(MESSAGES.pageEventDetail());
	setVisible(true);
	iLastScrollLeft = Window.getScrollLeft();
	iLastScrollTop = Window.getScrollTop();
	onShow();
	Window.scrollTo(0, 0);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:9,代码来源:EventDetail.java

示例10: scrollDown

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public static void scrollDown() {
	String hash = Window.Location.getHash();
	if (hash != null && hash.matches("#[0-9]+:[0-9]+")) {
		String[] scroll = hash.substring(1).split(":");
		Window.scrollTo(Integer.parseInt(scroll[0]), Integer.parseInt(scroll[1]));
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:8,代码来源:Refresh.java

示例11: hide

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
private void hide(boolean refresh, AttributeInterface attribute) {
	setVisible(false);
	onHide(refresh, attribute);
	Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:InstructorAttributeEdit.java

示例12: hide

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
private void hide(boolean refresh, GroupInterface group) {
	setVisible(false);
	onHide(refresh, group);
	Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:RoomGroupEdit.java

示例13: hide

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void hide() {
	setVisible(false);
	onHide();
	Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:RoomDetail.java

示例14: hide

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
private void hide(boolean refresh, FeatureInterface feature) {
	setVisible(false);
	onHide(refresh, feature);
	Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:RoomFeatureEdit.java

示例15: hide

import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
private void hide(boolean refresh) {
	setVisible(false);
	onHide(refresh);
	Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:RoomDepartmentsEdit.java


注:本文中的com.google.gwt.user.client.Window.scrollTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。