Interface FilteredTable.Builder<R,C>

Type Parameters:
R - the type representing rows
C - the type used to identify columns
All Superinterfaces:
ComponentBuilder<Void,FilteredTable<R,C>,FilteredTable.Builder<R,C>>
Enclosing class:
FilteredTable<R,C>

public static interface FilteredTable.Builder<R,C> extends ComponentBuilder<Void,FilteredTable<R,C>,FilteredTable.Builder<R,C>>
A builder for a FilteredTable
  • Method Details

    • filterPanelFactory

      FilteredTable.Builder<R,C> filterPanelFactory(ColumnConditionPanel.Factory<C> filterPanelFactory)
      Parameters:
      filterPanelFactory - the column filter panel factory
      Returns:
      this builder instance
    • cellRendererFactory

      FilteredTable.Builder<R,C> cellRendererFactory(FilteredTableCellRendererFactory<C> cellRendererFactory)
      Note that this factory is only used to create cell renderers for columns which do not already have a cell renderer set.
      Parameters:
      cellRendererFactory - the table cell renderer factory
      Returns:
      this builder instance
    • autoStartsEdit

      FilteredTable.Builder<R,C> autoStartsEdit(boolean autoStartsEdit)
      Parameters:
      autoStartsEdit - true if editing should start automatically
      Returns:
      this builder instance
    • centerOnScroll

      FilteredTable.Builder<R,C> centerOnScroll(FilteredTable.CenterOnScroll centerOnScroll)
      Parameters:
      centerOnScroll - the center on scroll behavious
      Returns:
      this builder instance
    • doubleClickAction

      FilteredTable.Builder<R,C> doubleClickAction(Action doubleClickAction)
      Parameters:
      doubleClickAction - the double click action
      Returns:
      this builder instance
    • scrollToSelectedItem

      FilteredTable.Builder<R,C> scrollToSelectedItem(boolean scrollToSelectedItem)
      Parameters:
      scrollToSelectedItem - true if this table should scroll to the selected item
      Returns:
      this builder instance
    • sortingEnabled

      FilteredTable.Builder<R,C> sortingEnabled(boolean sortingEnabled)
      Parameters:
      sortingEnabled - true if sorting via clicking the header should be enbled
      Returns:
      this builder instance
    • selectionMode

      FilteredTable.Builder<R,C> selectionMode(int selectionMode)
      Parameters:
      selectionMode - the table selection mode
      Returns:
      this builder instance
    • columnReorderingAllowed

      FilteredTable.Builder<R,C> columnReorderingAllowed(boolean columnReorderingAllowed)
      Parameters:
      columnReorderingAllowed - true if column reordering should be allowed
      Returns:
      this builder instance
    • columnResizingAllowed

      FilteredTable.Builder<R,C> columnResizingAllowed(boolean columnResizingAllowed)
      Parameters:
      columnResizingAllowed - true if column resizing should be allowed
      Returns:
      this builder instance
    • autoResizeMode

      FilteredTable.Builder<R,C> autoResizeMode(int autoResizeMode)
      Parameters:
      autoResizeMode - the table auto column resizing mode
      Returns:
      this builder instance