Interface ColumnSetFactory

All Known Implementing Classes:
DefaultColumnSetFactory

public interface ColumnSetFactory
A factory that is used to create WColumnSets for use with IrisTableModel and its subclasses.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static ColumnSetFactory DEFAULT  
  • Method Summary

    Modifier and Type Method Description
    default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition)
    Create a column set from the specified column definitions, with no key columns or renderers.
    default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition, String keyCols, String columnRenderers)
    Create a column set from the specified column definitions, with the specified key columns and renderes (comma separated)
    com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition, Set<String> keySet, ColumnRenderersBuilder columnRenderersBuilder)
    Create a column set.
    default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, TableDefinition tableDefinition)
    Create a column set from the specified table definition, with no key columns or renderers.
    default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, TableDefinition tableDefinition, com.fishlib.dataobjects.WColumn[] keys)
    Create a column set from the specified table definition, key, and renderer descriptions.
    default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, TableDefinition tableDefinition, String keyCols, String columnRenderers)
    Create a column set from the specified table definition, key, and renderer descriptions.
    default com.fishlib.dataobjects.WColumnSet createColumnSet​(String tableName, Table table)
    Create a new column set from the specified table using table attributes to define key columns and renderers,
  • Field Details

  • Method Details

    • columnSet

      @NotNull com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition, @NotNull Set<String> keySet, @NotNull ColumnRenderersBuilder columnRenderersBuilder)
      Create a column set.
      Parameters:
      tableName - The name of the table.
      columnDefinition - The set of columns in the table.
      keySet - The names of any key columns.
      columnRenderersBuilder - A builder for column renderers if necessary.
      Returns:
      A new WColumnSet.
    • createColumnSet

      default com.fishlib.dataobjects.WColumnSet createColumnSet​(String tableName, Table table)
      Create a new column set from the specified table using table attributes to define key columns and renderers,
      Parameters:
      tableName - The name of the table.
      table - The table to base the column set from.
      Returns:
      A new WColumnSet.
    • columnSet

      default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, TableDefinition tableDefinition, String keyCols, String columnRenderers)
      Create a column set from the specified table definition, key, and renderer descriptions.
      Parameters:
      tableName - The name of the table
      tableDefinition - The table definition to base it off.
      keyCols - The set of key columns (comma separated).
      columnRenderers - The set of column renderers in format for ColumnRenderersBuilder.fromDirective(String)
      Returns:
      A new WColumnSet.
    • columnSet

      default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, TableDefinition tableDefinition, com.fishlib.dataobjects.WColumn[] keys)
      Create a column set from the specified table definition, key, and renderer descriptions.
      Parameters:
      tableName - The name of the table
      tableDefinition - The table definition to base it off.
      keys - The keys.
      Returns:
      A new WColumnSet.
    • columnSet

      default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, TableDefinition tableDefinition)
      Create a column set from the specified table definition, with no key columns or renderers.
      Parameters:
      tableName - The name of the table
      tableDefinition - The table definition to base it off.
      Returns:
      A new WColumnSet.
    • columnSet

      default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition)
      Create a column set from the specified column definitions, with no key columns or renderers.
      Parameters:
      tableName - The name of the table
      columnDefinition - The set of column definitions.
      Returns:
      A new WColumnSet.
    • columnSet

      default com.fishlib.dataobjects.WColumnSet columnSet​(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition, String keyCols, String columnRenderers)
      Create a column set from the specified column definitions, with the specified key columns and renderes (comma separated)
      Parameters:
      tableName - The name of the table.
      columnDefinition - The column definitions to use.
      keyCols - The set of key columns (Comma separated).
      columnRenderers - The set of renderers (comma separated).
      Returns:
      A new WColumnSet.