List of usage examples for com.google.gwt.gwtpages.client.page AsyncPageCallback onSuccess
void onSuccess();
From source file:hudson.gwtmarketplace.client.pages.MainPage.java
License:Open Source License
@Override public void onEnterPage(PageParameters parameters, PageRequestSession session, final AsyncPageCallback callback) { callback.waitForAsync();/* w ww.j a v a2s . c o m*/ new GetTopsCommand() { @Override public void onSuccess(Top10Lists result) { callback.onSuccess(); refresh(result); } public void onFailure(Throwable e) { super.onFailure(e); callback.onFailure(e); }; }.execute(); if (!blogfeedLoaded) { Feed f = new Feed(); f.getFeed("http://feeds.feedburner.com/blogspot/NWLT?format=xml", this); } }
From source file:hudson.gwtmarketplace.client.pages.product.EditProductPage.java
License:Open Source License
@Override public void onEnterPage(PageParameters parameters, PageRequestSession session, final AsyncPageCallback callback) { callback.waitForAsync();//from w w w .ja v a 2 s.c om if (parameters.getParameters().length > 0) { productService.getForEditing(parameters.asString(0), new AsyncCallback<Pair<Product, String>>() { @Override public void onSuccess(Pair<Product, String> result) { show(result); callback.onSuccess(); } @Override public void onFailure(Throwable caught) { Messages.get().error(caught.getMessage(), null); } }); } }
From source file:hudson.gwtmarketplace.client.pages.product.ViewProductPage.java
License:Open Source License
public void show(Product product, AsyncPageCallback callback) { this.product = product; tabs.selectTab(0);/*www. j a v a 2 s. co m*/ if (null != product) siteTitle.setInnerText(product.getName()); else siteTitle.setInnerText("Loading Details..."); productDetails.show(product); resetCommentTabTitle(); callback.onSuccess(); }