Interface FilterTable.Builder<R,C>

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

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

    • summaryValuesFactory

      FilterTable.Builder<R,C> summaryValuesFactory(SummaryModel.SummaryValues.Factory<C> summaryValuesFactory)
      Parameters:
      summaryValuesFactory - the column summary values factory
      Returns:
      this builder instance
    • filterPanelFactory

      FilterTable.Builder<R,C> filterPanelFactory(TableConditionPanel.Factory<C> filterPanelFactory)
      Parameters:
      filterPanelFactory - the table filter condition panel factory
      Returns:
      this builder instance
    • filterFieldFactory

      FilterTable.Builder<R,C> filterFieldFactory(ColumnConditionPanel.FieldFactory filterFieldFactory)
      Parameters:
      filterFieldFactory - the column filter field factory
      Returns:
      this builder instance
      See Also:
    • cellRenderer

      <T> FilterTable.Builder<R,C> cellRenderer(C identifier, FilterTableCellRenderer<T> cellRenderer)
      The cell renderer for the given column, overrides cellRendererFactory(FilterTableCellRenderer.Factory).
      Type Parameters:
      T - the column type
      Parameters:
      identifier - the column identifier
      cellRenderer - the cell renderer to use for the given column
      Returns:
      this builder instance
    • cellRendererFactory

      FilterTable.Builder<R,C> cellRendererFactory(FilterTableCellRenderer.Factory<R,C> cellRendererFactory)
      Note that this factory is only used to create cell renderers for columns which do not already have a cell renderer and is overridden by any renderer set via cellRenderer(Object, FilterTableCellRenderer).
      Parameters:
      cellRendererFactory - the table cell renderer factory
      Returns:
      this builder instance
    • cellEditor

      <T> FilterTable.Builder<R,C> cellEditor(C identifier, FilterTableCellEditor<T> cellEditor)
      the cell renderer for the given column, overrides cellEditorFactory(FilterTableCellEditor.Factory).
      Type Parameters:
      T - the column type
      Parameters:
      identifier - the column identifier
      cellEditor - the cell editor to use for the given column
      Returns:
      this builder instance
    • cellEditorFactory

      FilterTable.Builder<R,C> cellEditorFactory(FilterTableCellEditor.Factory<C> cellEditorFactory)
      Note that this factory is only used to create cell editors for columns which do not already have a cell editor and is overridden by any editor set via cellEditor(Object, FilterTableCellEditor).
      Parameters:
      cellEditorFactory - the table cell editor factory
      Returns:
      this builder instance
    • autoStartsEdit

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

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

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

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

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

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

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

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

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

      FilterTable.Builder<R,C> resizeRowToFitEditor(boolean resizeRowToFitEditor)
      Only applicable to FilterTableCellEditor
      Parameters:
      resizeRowToFitEditor - true if the row should be resized to fit the editor
      Returns:
      this builder instance
    • filterView

      Parameters:
      filterView - the initial filter condition view
      Returns:
      this builder instance
    • keyStroke

      FilterTable.Builder<R,C> keyStroke(ControlKey<?> controlKey, KeyStroke keyStroke)
      Parameters:
      controlKey - the control key
      keyStroke - the keyStroke to assign to the given control
      Returns:
      this builder instance