Interface ITableFilter<ROW,​ROW_CELL>

  • All Known Implementing Classes:
    DefaultTableFilter

    public interface ITableFilter<ROW,​ROW_CELL>
    Interface for the UITable content provider.
    Author:
    Christopher Mindus
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  ITableFilter.Op
      Filtering option enum.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Called when the content provider is no longer required by the table.
      void initializeFilter()
      Called before filtering process begins to initialize values such as filtering columns, filter text, etc.
      void onInitialize​(UITable table)
      Called to initialize the content provider for the UITable instance.
      void onReinitialized()
      This method is called when the table needs re-initialization due to e.g.
      boolean select​(ROW row, ROW_CELL[] cells)
      Returns whether the given row makes it through this filter.
    • Method Detail

      • onInitialize

        void onInitialize​(UITable table)
        Called to initialize the content provider for the UITable instance.
      • initializeFilter

        void initializeFilter()
        Called before filtering process begins to initialize values such as filtering columns, filter text, etc.
      • onReinitialized

        void onReinitialized()
        This method is called when the table needs re-initialization due to e.g. a change of the VSTable or one of the columns.
      • dispose

        void dispose()
        Called when the content provider is no longer required by the table.
      • select

        boolean select​(ROW row,
                       ROW_CELL[] cells)
        Returns whether the given row makes it through this filter.
        Parameters:
        row - The row.
        cells - The cells of the row. Note: the array of cells may very well be shorter or longer than the actual number of columns in table.
        Returns:
        true if row is included in the filtered set, and false if excluded.