コード例 #1
0
  /** @param userModelList */
  private void fillPanel(List<UserModel> userModelList) {

    int currRow = 0;
    table.setWidget(currRow++, 0, new Label(Msg.consts.name()));
    for (Iterator<UserModel> iter = userModelList.iterator(); iter.hasNext(); ) {
      table.setWidget(currRow++, 0, new Label(iter.next().getFullname()));
    }
  }
コード例 #2
0
  public void onLoad(String senderSpace, String receiverSpace) {

    SecurityControllerAsync securityControl = ControllerFactory.getSecurityController();
    securityControl.getSpaceGroupUsers(senderSpace, receiverSpace, this);

    title.setText(Msg.params.group_users(receiverSpace));

    // clean display
    int rowSize = table.getRowCount();
    for (int idx = rowSize - 1; idx >= 0; idx--) {
      table.removeRow(idx);
    }
  }