static class PropertyPathActionFactory.PropertyPathAction<I,V> extends AbstractListColumnBean<I,V>
AbstractListColumnBean
and then use the Metadata.PropertyPath
in the getValue(DbControl, Object)
and getExportValue(DbControl, Object)
methods.Modifier and Type | Field and Description |
---|---|
private Metadata.PropertyPath<I,?> |
exportPath |
private Metadata.PropertyPath<I,V> |
path |
Constructor and Description |
---|
PropertyPathAction(Metadata.PropertyPath<I,V> path,
Metadata.PropertyPath<I,?> exportPath) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getExportValue(DbControl dc,
I item)
This implementation simply forward to
ListColumnAction.getValue(DbControl, Object) . |
V |
getValue(DbControl dc,
I item)
Get the value that should be displayed in the column.
|
getClazz, getEnumeration, getExportFormatter, getExportProperty, getFilterProperty, getFormatter, getId, getProperty, getSortProperty, getStyle, getTitle, getTooltip, getValueType, isExportable, isFilterable, isSortable, setClazz, setEnumeration, setExportable, setExportFormatter, setExportProperty, setFilterable, setFilterProperty, setFormatter, setId, setProperty, setSortable, setSortProperty, setStyle, setTitle, setTooltip, setValueType
private final Metadata.PropertyPath<I,V> path
private final Metadata.PropertyPath<I,?> exportPath
PropertyPathAction(Metadata.PropertyPath<I,V> path, Metadata.PropertyPath<I,?> exportPath)
public V getValue(DbControl dc, I item)
ListColumnAction
ListColumnAction.getFormatter()
.dc
- An open DbControl than can be used to query the databaseitem
- The current itempublic java.lang.Object getExportValue(DbControl dc, I item)
AbstractListColumnBean
ListColumnAction.getValue(DbControl, Object)
.
If the exported value should be different from the regular value the
subclass must override this method as well.getExportValue
in interface ListColumnAction<I,V>
getExportValue
in class AbstractListColumnBean<I,V>
dc
- An open DbControl than can be used to query the databaseitem
- The current item