Class PropertyPathActionFactory.PropertyPathAction<I,V>
java.lang.Object
net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean<I,V>
net.sf.basedb.clients.web.extensions.list.PropertyPathActionFactory.PropertyPathAction<I,V>
- All Implemented Interfaces:
ListColumnAction<I,
,V> Action
- Enclosing class:
- PropertyPathActionFactory<I,
V>
A concrete implementation of the ListColumnAction
interface. We subclass the
AbstractListColumnBean
and then use the Metadata.PropertyPath
in the getValue(DbControl, Object)
and getExportValue(DbControl, Object)
methods.-
Field Summary
Modifier and TypeFieldDescriptionprivate final Metadata.PropertyPath<I,
?> private final Metadata.PropertyPath<I,
V> -
Constructor Summary
ConstructorDescriptionPropertyPathAction
(Metadata.PropertyPath<I, V> path, Metadata.PropertyPath<I, ?> exportPath) -
Method Summary
Modifier and TypeMethodDescriptiongetExportValue
(DbControl dc, I item) This implementation simply forward toListColumnAction.getValue(DbControl, Object)
.Get the value that should be displayed in the column.Methods inherited from class net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean
getCellClass, getCellStyle, getClazz, getCollectionFormatter, getDisableOverflowCheck, getEnumeration, getExportFormatter, getExportProperty, getExportTitle, getFilterProperty, getFormatter, getId, getProperty, getSortProperty, getStyle, getSubtitle, getTitle, getTooltip, getValueType, isExportable, isFilterable, isSortable, setCellClass, setCellStyle, setClazz, setCollectionFormatter, setDisableOverflowCheck, setEnumeration, setExportable, setExportFormatter, setExportProperty, setExportTitle, setFilterable, setFilterProperty, setFormatter, setId, setProperty, setSortable, setSortProperty, setStyle, setSubtitle, setTitle, setTooltip, setValueType
-
Field Details
-
path
-
exportPath
-
-
Constructor Details
-
PropertyPathAction
PropertyPathAction(Metadata.PropertyPath<I, V> path, Metadata.PropertyPath<I, ?> exportPath)
-
-
Method Details
-
getValue
Description copied from interface:ListColumnAction
Get the value that should be displayed in the column. This method is called once for every item that is listed in the table. The returned value is then passed to the formatter (if any) that is retrieved fromListColumnAction.getFormatter()
.- Parameters:
dc
- An open DbControl than can be used to query the databaseitem
- The current item- Returns:
- The value that should be displayed
-
getExportValue
Description copied from class:AbstractListColumnBean
This implementation simply forward toListColumnAction.getValue(DbControl, Object)
. If the exported value should be different from the regular value the subclass must override this method as well.- Specified by:
getExportValue
in interfaceListColumnAction<I,
V> - Overrides:
getExportValue
in classAbstractListColumnBean<I,
V> - Parameters:
dc
- An open DbControl than can be used to query the databaseitem
- The current item- Returns:
- The value that should be exported
-