Package com.illumon.iris.console.db
Class DefaultColumnSetFactory
java.lang.Object
com.illumon.iris.console.db.DefaultColumnSetFactory
- All Implemented Interfaces:
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.-
Field Summary
Fields inherited from interface com.illumon.iris.console.db.ColumnSetFactory
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance using theGuiColumnFactory.DEFAULTcolumn factory.DefaultColumnSetFactory(GuiColumnFactory columnFactory) Create an instance using the passed inGuiColumnFactoryto create columns. -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.dataobjects.WColumnSetcolumnSet(String tableName, com.illumon.dataobjects.ColumnDefinition[] columnDefinition, Set<String> keySet, ColumnRenderersBuilder columnRenderersBuilder) Create a column set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.console.db.ColumnSetFactory
columnSet, columnSet, columnSet, columnSet, columnSet, createColumnSet
-
Constructor Details
-
DefaultColumnSetFactory
public DefaultColumnSetFactory()Create an instance using theGuiColumnFactory.DEFAULTcolumn factory. -
DefaultColumnSetFactory
Create an instance using the passed inGuiColumnFactoryto 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:ColumnSetFactoryCreate a column set.- Specified by:
columnSetin interfaceColumnSetFactory- 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.
-