net.sf.basedb.clients.web.extensions.list
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>
static class PropertyPathActionFactory.PropertyPathAction<I,V>
- extends AbstractListColumnBean<I,V>
A concrete implementation of the ListColumnAction
interface. We subclass the AbstractListColumnBean
and then use the Metadata.PropertyPath
in the getValue(DbControl, Object)
method.
Method Summary |
V |
getValue(DbControl dc,
I item)
Get the value that should be displayed in the column. |
Methods inherited from class net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean |
getClazz, getEnumeration, getExportFormatter, getExportProperty, getExportValue, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
private final Metadata.PropertyPath<I,V> path
PropertyPathActionFactory.PropertyPathAction
PropertyPathActionFactory.PropertyPathAction(Metadata.PropertyPath<I,V> path)
getValue
public V getValue(DbControl dc,
I item)
- 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 from
ListColumnAction.getFormatter()
.
- Parameters:
dc
- An open DbControl than can be used to query the databaseitem
- The current item
- Returns:
- The value that should be displayed