public class TableAMBuilder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
TableAMBuilder() |
|
TableAMBuilder(Object modelRoot,
String elementCollectionPath,
Class<?> modelRowClass) |
| Modifier and Type | Method and Description |
|---|---|
TableAMBuilder |
addColumn(String path)
This is a convenience method that determines the type of the field / column via reflection on the model.
|
TableAMBuilder |
addColumn(String path,
Class<?> typeAfterConversion) |
TableAMBuilder |
addColumn(String path,
IFValueConverter converter)
This is a convenience method that determines the type of the column based on the converter and reflection
on the model.
|
TableAMBuilder |
addDerivedColumn(String columnName,
String pattern,
String... paths)
This is a convenience method that adds a readonly 'derived' column that can reference one or more model values
|
TableAM |
build() |
ColumnDefinition |
getColumn(int index) |
ColumnDefinition |
getColumn(String path) |
protected void |
init(Object pModelRoot,
String pElementCollectionPath,
Class<?> pModelRowClass) |
public TableAMBuilder(Object modelRoot, String elementCollectionPath, Class<?> modelRowClass)
protected TableAMBuilder()
public TableAMBuilder addColumn(String path)
public TableAMBuilder addColumn(String path, IFValueConverter converter)
public TableAMBuilder addColumn(String path, Class<?> typeAfterConversion)
public TableAMBuilder addDerivedColumn(String columnName, String pattern, String... paths)
public ColumnDefinition getColumn(int index)
public ColumnDefinition getColumn(String path)
public TableAM build()
Copyright © 2013. All Rights Reserved.