コード例 #1
0
  @Override
  protected void configureTable() {
    updateSelectionStyle();
    getListGrid()
        .addCellClickHandler(
            new CellClickHandler() {
              public void onCellClick(CellClickEvent event) {
                updateSelectionStyle();
              }
            });

    List<ListGridField> fields = createFields();
    setListGridFields(fields.toArray(new ListGridField[fields.size()]));

    addTableAction(extendLocatorId("New"), MSG.common_button_new(), createNewAction());
    addTableAction(
        extendLocatorId("Delete"),
        MSG.common_button_delete(),
        getDeleteConfirmMessage(),
        createDeleteAction());

    super.configureTable();
  }
コード例 #2
0
  @Override
  public void refresh() {
    super.refresh();

    updateSelectionStyle();
  }