コード例 #1
0
  @Override
  public void prepareFromRequest(PlaceRequest request) {
    super.prepareFromRequest(request);
    long startTime = System.currentTimeMillis();
    AppClientFactory.printInfoLogger("Entered into NXT Gen start time -- " + startTime);
    if (AppClientFactory.getPlaceManager().refreshPlace()) {
      clearSlot(TYPE_FOLDERS_SLOT);
      setInSlot(TYPE_FOLDERS_SLOT, partnerLibraryPresenter);
      partnerLibraryPresenter.setPartnerWidget();
      AppClientFactory.printInfoLogger(
          "NXT Gen End time -- " + (System.currentTimeMillis() - startTime));
    }
    if (getPlaceManager().getRequestParameter(CALLBACK) != null
        && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("signup")) {
      // To show SignUp (Registration popup)
      if (AppClientFactory.isAnonymous()) {
        Window.enableScrolling(false);
        AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false));
        String type = getPlaceManager().getRequestParameter("type");
        int displayScreen =
            getPlaceManager().getRequestParameter("type") != null ? Integer.parseInt(type) : 1;
        signUpViewPresenter.displayPopup(displayScreen);
        addToPopupSlot(signUpViewPresenter);
      }
    }

    int flag = AppClientFactory.getLoggedInUser().getViewFlag();
    final String loginType =
        AppClientFactory.getLoggedInUser().getLoginType() != null
            ? AppClientFactory.getLoggedInUser().getLoginType()
            : "";
    if (!AppClientFactory.isAnonymous() && flag == 0 && !loginType.equalsIgnoreCase("Credential")) {
      AlmostDoneUc update =
          new AlmostDoneUc(
              AppClientFactory.getLoggedInUser().getEmailId(), AppClientFactory.getLoggedInUser());
      update.setGlassEnabled(true);
      update.show();
      update.center();
    }
  }
コード例 #2
0
 @Override
 public void onHide() {
   super.onHide();
   AppClientFactory.getPlaceManager().resetLibraryEventData(PlaceTokens.FINCAPINC);
 }
コード例 #3
0
 @Override
 public void onReset() {
   super.onReset();
 }
コード例 #4
0
 @Override
 public void onReveal() {
   super.onReveal();
   Window.scrollTo(0, 0);
 }
コード例 #5
0
 @Override
 public void onBind() {
   super.onBind();
 }
コード例 #6
0
 @Override
 public void onBind() {
   super.onBind();
   Window.scrollTo(0, 0);
 }