Ejemplo n.º 1
0
  /**
   * Creates and shows a details panel for the passed user DTO.<br>
   *
   * @param user
   */
  private void showDetailsPanel(PortalUserDTO user) {
    UserEditorPanel wDetails = UsersAppFactory.getInstance().getUserEditorPanel();
    wDetails.init(user);

    Listener<BaseEvent> lChange =
        new Listener<BaseEvent>() {
          /**
           * (non-Javadoc)
           *
           * @see
           *     com.extjs.gxt.ui.client.event.Listener#handleEvent(com.extjs.gxt.ui.client.event.BaseEvent)
           */
          public void handleEvent(BaseEvent be) {
            tryGetUsers();
          }
        };
    wDetails.addListener(Events.Add, lChange);
    wDetails.addListener(Events.Change, lChange);
    wDetails.show();
  }
Ejemplo n.º 2
0
 /**
  * Creates and shows the "change password" window for the passed user model data.<br>
  *
  * @param portalUser
  */
 private void openChangePwdWindow(PortalUserSelModelData portalUser) {
   ChangePwdWindow pwdWin =
       UsersAppFactory.getInstance().getChangePwdWindow().init(portalUser.getDTO());
   pwdWin.show();
 }