Package io.github.jonestimd.swing.table
Class TableFactory
- java.lang.Object
-
- io.github.jonestimd.swing.table.TableFactory
-
public class TableFactory extends java.lang.Object
Provides factory methods for creating sorted and validated tables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TableFactory.TableBuilder<B,M extends BeanTableModel<B>,T extends DecoratedTable<B,M>>
-
Constructor Summary
Constructors Constructor Description TableFactory(TableInitializer tableInitializer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addDoubleClickHandler(javax.swing.JTable table, java.util.function.Consumer<java.awt.event.MouseEvent> handler)
static javax.swing.table.TableCellEditor
createEnumCellEditor(java.lang.Class<? extends java.lang.Enum<?>> enumType)
<B,M extends BeanTableModel<B>,T extends DecoratedTable<B,M>>
Tinitialize(T table)
javax.swing.RowSorter<BeanTableModel<?>>
newRowSorter(BeanTableModel<?> model, java.util.List<javax.swing.RowSorter.SortKey> sortColumns)
<G,T,M extends BeanListMultimapTableModel<G,T>>
TableFactory.TableBuilder<T,M,SectionTable<T,M>>sectionTableBuilder(M model)
<B,M extends BeanListTableModel<B>>
TableFactory.TableBuilder<B,M,DecoratedTable<B,M>>tableBuilder(M model)
<B,M extends ValidatedBeanListTableModel<B>>
TableFactory.TableBuilder<B,M,DecoratedTable<B,M>>validatedTableBuilder(M model)
-
-
-
Constructor Detail
-
TableFactory
public TableFactory(TableInitializer tableInitializer)
-
-
Method Detail
-
tableBuilder
public <B,M extends BeanListTableModel<B>> TableFactory.TableBuilder<B,M,DecoratedTable<B,M>> tableBuilder(M model)
-
validatedTableBuilder
public <B,M extends ValidatedBeanListTableModel<B>> TableFactory.TableBuilder<B,M,DecoratedTable<B,M>> validatedTableBuilder(M model)
-
initialize
public <B,M extends BeanTableModel<B>,T extends DecoratedTable<B,M>> T initialize(T table)
-
newRowSorter
public javax.swing.RowSorter<BeanTableModel<?>> newRowSorter(BeanTableModel<?> model, java.util.List<javax.swing.RowSorter.SortKey> sortColumns)
-
sectionTableBuilder
public <G,T,M extends BeanListMultimapTableModel<G,T>> TableFactory.TableBuilder<T,M,SectionTable<T,M>> sectionTableBuilder(M model)
-
createEnumCellEditor
public static javax.swing.table.TableCellEditor createEnumCellEditor(java.lang.Class<? extends java.lang.Enum<?>> enumType)
-
addDoubleClickHandler
public static void addDoubleClickHandler(javax.swing.JTable table, java.util.function.Consumer<java.awt.event.MouseEvent> handler)
-
-