3.2.1: 2012-12-13

net.sf.basedb.clients.web.extensions.list
Class PropertyPathActionFactory.PropertyPathAction<I,V>

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean<I,V>
      extended by 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.


Field Summary
private  Metadata.PropertyPath<I,V> path
           
 
Constructor Summary
PropertyPathActionFactory.PropertyPathAction(Metadata.PropertyPath<I,V> path)
           
 
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
 

Field Detail

path

private final Metadata.PropertyPath<I,V> path
Constructor Detail

PropertyPathActionFactory.PropertyPathAction

PropertyPathActionFactory.PropertyPathAction(Metadata.PropertyPath<I,V> path)
Method Detail

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 database
item - The current item
Returns:
The value that should be displayed

3.2.1: 2012-12-13