本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
}
示例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);
}
示例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();
}
示例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);
}
示例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]));
}
}
示例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);
}
示例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);
}
示例13: hide
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void hide() {
setVisible(false);
onHide();
Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}
示例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);
}
示例15: hide
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
private void hide(boolean refresh) {
setVisible(false);
onHide(refresh);
Window.scrollTo(iLastScrollLeft, iLastScrollTop);
}