示例#1
0
  public void removePortlet(DashboardPortlet portlet) {
    storedDashboard.removePortlet(portlet);

    // portlet remove means the portlet locations may have changed. The selenium testing locators
    // include
    // positioning info. So, in this case we have to take the hit and completely refresh the dash.
    AsyncCallback<Dashboard> callback =
        SeleniumUtility.getUseDefaultIds()
            ? null
            : new AsyncCallback<Dashboard>() {

              @Override
              public void onFailure(Throwable caught) {
                rebuild();
              }

              @Override
              public void onSuccess(Dashboard result) {
                rebuild();
              }
            };
    save(callback);
  }
 @Override
 public void destroy() {
   SeleniumUtility.destroyMembers(contents);
   super.destroy();
 }