1

scout eclipse でテーブルに合計行を追加したい。

新しい行を追加して最後に合計を追加できることはわかっていますが、必要なのは、その行がテーブルの一番下に浮かぶことです。

これは、合計が最後の行ではなく、常に一番下にあることを意味します。(行が 1 つしかない場合でも)。

4

1 に答える 1

0

You can add a row and calculate the sum after having imported the table data (eg: in execLoadData).

In order to keep the row at the bottom, add a non-displayable column of the type AbstractIntegerColumn and add the lowest sort index 0. Then, fill the values of all regular rows with 0 and the value if the sum column with 1.

@Order(5.0)
public class SortColumn extends AbstractIntegerColumn {

  @Override
  protected boolean getConfiguredDisplayable() {
    return false;
  }

  @Override
  protected int getConfiguredSortIndex() {
    return 0;
  }
}
于 2015-01-20T13:55:49.167 に答える