Class FixedSummaryRowHeaderLayer

All Implemented Interfaces:
ILayer, ILayerListener, IPersistable

public class FixedSummaryRowHeaderLayer extends RowHeaderLayer
Using this specialization of RowHeaderLayer adds support for configuring a fixed SummaryRowLayer in the body region of a grid.
  • Field Details

    • DEFAULT_SUMMARY_ROW_LABEL

      public static final String DEFAULT_SUMMARY_ROW_LABEL
      See Also:
    • summaryRowLabel

      protected String summaryRowLabel
  • Constructor Details

  • Method Details

    • getDataValueByPosition

      public Object getDataValueByPosition(int columnPosition, int rowPosition)
      Description copied from interface: ILayer
      Returns the data value for the cell at the given coordinates.
      Specified by:
      getDataValueByPosition in interface ILayer
      Overrides:
      getDataValueByPosition in class DimensionallyDependentLayer
      Parameters:
      columnPosition - The column position of the cell.
      rowPosition - The row position of the cell.
      Returns:
      The data value for the cell at the given coordinates.
    • getDisplayModeByPosition

      public DisplayMode getDisplayModeByPosition(int columnPosition, int rowPosition)
      Description copied from interface: ILayer
      Returns the active DisplayMode for the cell at the given coordinates. Needed to retrieve the corresponding configurations out of the IConfigRegistry. The default value is DisplayMode.NORMAL. The SelectionLayer for example overrides this to return DisplayMode.SELECT for cells that are currently selected.
      Specified by:
      getDisplayModeByPosition in interface ILayer
      Overrides:
      getDisplayModeByPosition in class RowHeaderLayer
      Parameters:
      columnPosition - The column position of the cell.
      rowPosition - The row position of the cell.
      Returns:
      DisplayMode for the cell at the given coordinates.
    • getConfigLabelsByPosition

      public LabelStack getConfigLabelsByPosition(int columnPosition, int rowPosition)
      Description copied from interface: ILayer
      Returns the config labels for the cell at the given coordinates. Needed to retrieve the corresponding configurations out of the IConfigRegistry.
      Specified by:
      getConfigLabelsByPosition in interface ILayer
      Overrides:
      getConfigLabelsByPosition in class RowHeaderLayer
      Parameters:
      columnPosition - The column position of the cell.
      rowPosition - The row position of the cell.
      Returns:
      The LabelStack with the config labels for the cell at the given coordinates.
    • getSummaryRowLabel

      public String getSummaryRowLabel()
      Returns:
      The label that is used as data value for the horizontal dependent cell to the row header column.
    • setSummaryRowLabel

      public void setSummaryRowLabel(String summaryRowLabel)
      Parameters:
      summaryRowLabel - The label that should be used as data value for the horizontal dependent cell to the row header column.