本文整理了Java中com.google.gwt.user.client.History.back()
方法的一些代码示例,展示了History.back()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。History.back()
方法的具体详情如下:
包路径:com.google.gwt.user.client.History
类名称:History
方法名:back
[英]Programmatic equivalent to the user pressing the browser's 'back' button.
[中]编程等效于用户按下浏览器的“后退”按钮。
代码示例来源:origin: dankurka/mgwt
@Override
public void back() {
History.back();
}
代码示例来源:origin: fr.putnami.pwt/pwt
public void goBack() {
History.back();
}
代码示例来源:origin: com.googlecode.mgwt/mgwt
@Override
public void back() {
History.back();
}
代码示例来源:origin: ArcBees/GWTP
@Override
public void navigateBack() {
History.back();
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
@Override
public void goBack(Object returnValue) {
History.back();
}
代码示例来源:origin: com.googlecode.mvp4g/mvp4g
public void back() {
History.back();
}
代码示例来源:origin: Putnami/putnami-web-toolkit
public void goBack() {
History.back();
}
代码示例来源:origin: mvp4g/mvp4g
public void back() {
History.back();
}
代码示例来源:origin: com.googlecode.mgwt/mgwt
@Override
public void go(int number) {
if (number > 0) {
History.forward();
} else {
History.back();
}
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
@Override
public void onClick(ClickEvent event) {
popupPanel.hide();
History.back();
isShowing = false;
}
});
代码示例来源:origin: net.sf.javaprinciples.client/client-presentation
@Override
public void gotoPlace(Place place)
{
if (place == null)
{
History.back();
return;
}
placeController.goTo(place);
}
代码示例来源:origin: dankurka/mgwt
@Override
public void go(int number) {
if (number > 0) {
History.forward();
} else {
History.back();
}
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
@Override
public void onFailure( final Throwable caught ) {
super.onFailure( caught );
log.debug( "Failed to claim instance" );
History.back();
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
Window.alert("Invalid URL, cannot display resource.");
log.severe("Expecting exactly 2 parts after split, found: " + parts.length + ". Parts: " + parts);
History.back();
return;
Window.alert("Invalid URL, cannot display resource.");
log.severe("Expecting first part to be " + URI_KEY + ", found: " + parts[0]);
History.back();
return;
Window.alert("Invalid URL, cannot display resource.");
log.severe("Unexpected page token: "+pageMode);
History.back();
return;
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
instancePanel.clear();
Window.alert("Invalid URL, cannot display resource.");
History.back();
return;
instancePanel.clear();
Window.alert("Invalid URL, cannot display resource.");
History.back();
return;
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
@Override
public void onFailure(final Throwable caught) {
if ( context.isInstitution() ) {
super.onFailure( caught );
History.back();
} else {
// check to see if failure is because node is down if central
ClientSearchProxy.getInstance().getNodeStatusForInstance(instanceID, new RootAsyncCallback<String>() {
@Override
public void onSuccess(String result) {
if ( result.equals( STATUS_RUNNING ) ) {
// node is fine, propagate failure up
super.onFailure( caught );
History.back();
} else {
displayNodeErrorMsg();
}
}
/**
* Something is wrong with the node that this instance belongs to
* Generate a helpful message to the user.
*/
private void displayNodeErrorMsg() {
final NodeStatusPanel nodeStatusPanel = new NodeStatusPanel();
nodeStatusPanel.showPopup();
}
});
}
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
private void cancel() {
if ( formType == EditFormType.New ) {
if ( ApplicationState.getInstance().getMode() == Mode.duplicate ) {
History.back();
} else if ( ResourceProvider.isResourceProviderType( eiInstance.getInstanceType() ) ) {
ApplicationState.getInstance().updateApplicationState( Mode.workbench, EIEntity.NULL_ENTITY, EIEntity.NULL_ENTITY, EIEntity.NULL_ENTITY );
} else {
final EIEntity typeEntity = eiInstance.getRootSuperType().getEntity();
ApplicationState.getInstance().updateApplicationState( Mode.list, EIEntity.NULL_ENTITY, typeEntity, ApplicationState.getInstance().getResourceProviderEntity() );
}
} else {
ClientSweetProxy.getInstance().getInstance( eiInstance.getInstanceURI(), new RootAsyncCallback<EIInstance>() {
@Override
public void onSuccess(final EIInstance fetched) {
formRedisplayCallbacks.drawAfterCancel( fetched );
}
@Override
public void onFailure(final Throwable caught) {
formRedisplayCallbacks.drawAfterCancel( eiInstance );
}
} );
}
}
内容来源于网络,如有侵权,请联系作者删除!