Class SortHeaderLayer<T>

    • Constructor Detail

      • SortHeaderLayer

        public SortHeaderLayer​(ILayer underlyingLayer,
                               ISortModel sortModel)
      • SortHeaderLayer

        public SortHeaderLayer​(ILayer underlyingLayer,
                               ISortModel sortModel,
                               boolean useDefaultConfiguration)
    • Method Detail

      • 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 AbstractLayerTransform
        Parameters:
        columnPosition - The column position of the cell.
        rowPosition - The row position of the cell.
        Returns:
        adds a special configuration label to the stack taking into account the following:
        1. Is the column sorted ?
        2. What is the sort order of the column
        A special painter is registered against the above labels to render the sort arrows
      • getSortModel

        public ISortModel getSortModel()
        Returns:
        The ISortModel that is used to handle the sorting of the underlying data.