Class DefaultColumnSetFactory

java.lang.Object
com.illumon.iris.console.db.DefaultColumnSetFactory
All Implemented Interfaces:
ColumnSetFactory

public class DefaultColumnSetFactory extends Object implements ColumnSetFactory
A ColumnSetFactory that simply builds a WColumnSet from columns created by the specified GuiColumnFactory. If the rendererClass should override the default renderer, it will update the columns.
  • Constructor Details

    • DefaultColumnSetFactory

      public DefaultColumnSetFactory()
      Create an instance using the GuiColumnFactory.DEFAULT column factory.
    • DefaultColumnSetFactory

      public DefaultColumnSetFactory(GuiColumnFactory columnFactory)
      Create an instance using the passed in GuiColumnFactory to create columns.
      Parameters:
      columnFactory - The column factory to use.
  • Method Details

    • columnSet

      @NotNull public com.fishlib.dataobjects.WColumnSet columnSet(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition, @NotNull Set<String> keySet, @NotNull ColumnRenderersBuilder columnRenderersBuilder)
      Description copied from interface: ColumnSetFactory
      Create a column set.
      Specified by:
      columnSet in interface ColumnSetFactory
      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.