public class TableFormBuilder extends AbstractFormBuilder
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static int |
DEFAULT_N_ROWS |
protected Map<String,TextFormat> |
headerTextFormats |
protected Map<String,TextFormat> |
hrefTextFormats |
static org.slf4j.Logger |
logger |
protected int |
nRows |
protected List<PropertyAccessor> |
propertyAccessors |
protected List<Map<String[],SelectionProvider>> |
rowSelectionProviders |
protected Map<String,TextFormat> |
titleTextFormats |
classAccessor, manager, mode, prefix, selectionProviders
Constructor and Description |
---|
TableFormBuilder(Class aClass) |
TableFormBuilder(ClassAccessor classAccessor) |
buildField, buildSelectField, isPropertyEnabled, removeUnusedSelectionProviders
public static final String copyright
public static final int DEFAULT_N_ROWS
protected final Map<String,TextFormat> headerTextFormats
protected final Map<String,TextFormat> hrefTextFormats
protected final Map<String,TextFormat> titleTextFormats
protected List<PropertyAccessor> propertyAccessors
protected int nRows
protected final List<Map<String[],SelectionProvider>> rowSelectionProviders
public static final org.slf4j.Logger logger
public TableFormBuilder(Class aClass)
public TableFormBuilder(ClassAccessor classAccessor)
public TableFormBuilder configFields(String... fieldNames)
public TableFormBuilder configPrefix(String prefix)
public TableFormBuilder configNRows(int nRows)
public TableFormBuilder configMode(Mode mode)
public TableFormBuilder configSelectionProvider(SelectionProvider selectionProvider, String... fieldNames)
public TableFormBuilder configSelectionProvider(int row, SelectionProvider selectionProvider, String... fieldNames)
public void configReflectiveFields()
public boolean isPropertyVisible(PropertyAccessor current)
public TableFormBuilder configHeaderTextFormat(String fieldName, TextFormat hrefTextFormat)
public TableFormBuilder configHrefTextFormat(String fieldName, TextFormat hrefTextFormat)
public TableFormBuilder configTitleTextFormat(String fieldName, TextFormat titleTextFormat)
public TableForm build()
protected void setupColumns(TableForm tableForm)
protected void setupRows(TableForm tableForm)
protected void setupSelectionProvidersForRow(TableForm tableForm, TableForm.Row row, Map.Entry<String[],SelectionProvider> current)
protected Field buildField(PropertyAccessor propertyAccessor, String rowPrefix)
public List<PropertyAccessor> getPropertyAccessors()